Memcached provides a range of commands for optimized viewing, allowing us to adjust our storage policies to see our usage, memory usage, and waste.Common commands are stats, stats settings, stats items, stats slabs, and so on.1. Stats Command Server information statisticsSta
httplog #日志类别http日志格式 #option httpclose #每次请求完毕后主动关闭http通道 #option dontlognull #不记录健康检查的日志信息 #option
Forwardfor #如果后端服务器需要获得客户端真实ip需要配置的参数, you can obtain client IP option Redispatch #当serverId对应的服务器挂掉后 from the HTTP header, and force directed to other healthy servers Option Abortonclose #当服务器负载很高的时候 to automatically end the current queue processing comparisonLong links #stats Refresh #统计页面刷新间隔 #balance roundrobin #默认的负载均衡的方式, polling way #balance so
file, the INIT option does not initialize the media Header, only the backup set is initialized, the default option is Noinit, and the backup is stored to the end of the backup file;
SKIP option: No checks are made, the media header is not checked for validity, and the backup set expiration is not checked, the default option is Noskip;
5, Backup progress (stats) With the stats option, whenever a b
13shanghaiENDset first 0 0 7chengduSTOREDcas first 0 0 7 13 // 因为gets后set了,所以cas id改变了,cas失败chengduEXISTS
Delete command deletes key/value pair, only one key/value pair can be deleted at a time; if the key to be removed does not exist, the operation fails: Delete key
delete first secondCLIENT_ERROR bad command line format. Usage: delete
INCR/DECR: If the value of key represents a 64-bit integer, the value can be increased or decreased by the incr and DECR command
-- "/oracle/product/10.2.0/db_1/rdbms/admin/" is the script directoryAfter running the script, enter perfstat_password, default_tablespace, temporary_tablespace10. test whether a database snapshot is generated successfully.SQL> execute statspack. snap11. Generate a snapshotSQL> execute statspack. snap12. Take the Statspack report for the time period between two snapshotsSQL> @/oracle/product/10.2.0/db_1/rdbms/admin/spreport. SQLEnter the start point and end point for generating the Statspack re
+value+flags default is 48-H Display HelpOperation Memcached
Command
Description
Example
Get
Reads a value
Get MyKey
Set
Set a key unconditionally
Set MyKey 0 60 5
Add
ADD a new key
Add Newkey 0 60 5
Replace
Overwrite existing Key
Replace key 0 60 5
Append
Append data to existing key
Append key 0 60 15
Prepend
Prepend data to existing
Invalidate specific items immediately
Flush_all
Invalidate all items in n seconds
Flush_all 900
Stats
Prints general statistics
Stats
Prints memory statistics
Stats slabs
Prints memory statistics
Stats malloc
Print higher level all
ACCEPTIptables-a input-p udp-s 192.168.1.111-dpost 11211-j ACCEPT Install. then start memcached-d start
Command
Description
Example
Get
Reads a value
Get mykey
Set
Set a key unconditionally
Set mykey 0 60 5
Add
Add a new key
Add newkey 0 60 5
Replace
Overwrite existing key
Replace key 0 60 5
Append
Append data to existing key
Append key 0 60 15
Prepend
Prepend
provides data preprocessing and visualization functions for the classification, such as checking the redundancy and standardization of variables. The dist () in the base package and the Daisy () function in the cluster package provide a distance calculation function, and the proxy package provides more distance measures, including the distance between matrices. The Simba package handles both the existing and missing data, including the similarity matrix and the reshape.2) hypothesis test (hypot
= "access_combined_wcookie"
1. log requests whose source type is access_combined_wcookie and whose IP address is 10.2.1.44
-- 81
Sourcetype = "access_combined_wcookie" 10.2.1.44
2. Search for 63 requests for "purchase"
Sourcetype = "access_combined_wcookie" 10.2.1.44 purchase
3. Further search for purchase requests whose HTTP return code is not 200
Sourcetype = "access_combined_wcookie" 10.2.1.44 purchase not 200
4. Further search for requests that are not 404 error
Sourcetype = "access_combine
other Slab
After knowing this, we can understand why memcached has lost cache data when the total memory is not fully occupied.
-P
Connection: Telnet 127.0.0.1 11211.
Stats \ r \ nHere we can see the number of times memcache is obtained, the current number of connections, the number of writes, the hit rate, and so on;
PID: process IDUptime: total running time, in secondsTime: Current TimeVersion: Version Number......Curr_items: Number of keyva
----> customize a response header. You can view the HTTP packet to know that the request is responded by the group of backend servers. Cookie webserver insert nocache option httpchk server S1 172.16.0.99 cookie S1 check port 80 weight 1 server B1 127.0.0.1: 8080 backup stats enable --------> stats hide-version stats uri/haproxy?
Add
Add a new key
Add newkey 0 60 5
Replace
Overwrite existing key
Replace Key 0 60 5
Append
Append data to existing key
Append Key 0 60 15
Prepend
Prepend data to existing key
Prepend Key 0 60 15
Incr
Increments numerical key value by given number
Incr mykey 2
Decr
Decrements numerical key value by given number
Decr mykey 5
Delete
Deletes an existing key
Delete mykey
Flush_all
I
Memcached status analysis, memcached status
1. memcache status stats description:
Pid memcache server process ID uptime server has run seconds time server current unix timestamp version memcache version pointer_size pointer size of the current operating system (32-bit systems are generally 32bit) cumulative user time of the rusage_user process the cumulative system time of the rusage_system process the number of items currently stored on the curr_item
/spcreate. SQL -- "/oracle/product/10.2.0/db_1/rdbms/admin/" is the script directoryAfter running the script, enter perfstat_password, default_tablespace, temporary_tablespace10. test whether a database snapshot is generated successfully.SQL> execute statspack. snap11. Generate a snapshotSQL> execute statspack. snap12. Take the Statspack report for the time period between two snapshotsSQL> @/oracle/product/10.2.0/db_1/rdbms/admin/spreport. SQLEnter the start point and end point for generating th
1. Memcached Stats command: The Memcached Stats command is used to return statistics such as PID ( process number ), version number, number of connections, and so on. Grammar:StatsOutput Information Description:PID: memcache server process IDUptime: Number of seconds the server has been runningTime: Server current Unix timestampVersion:memcache versionsPointer_size: Operating system pointer sizeRusage_u
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.