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
specify the version number. When the local version number is the same as the server version number, update will be valid xEXISTScas a 0 0 1 2 ySTORED
Ii. stats items and stats cachedump
Have you ever wondered what data is stored in memcached? Have you ever been looking for a way to traverse all memcached keys like redis?
It is actually the stats method that w
haproxy Group Haproxy daemon # turn On stats UNIX socket stats socket/var/lib/haproxy/stats#----------------------------------------------------------- ----------# Common defaults that all the ' listen ' and ' backend ' sections will# with if not designated in their block#------ ---------------------------------------------------------------D
####################Python脚本性能剖析###################Cprofile/profile/hotshot is used to count statistics such as how often each part of a Python script runs and how long it takes. Pstats can be used to format this informationCProfile is a C extension. Low overhead, suitable for parsing long-executed Python programs, recommended for use with this moduleProfile Pure Python module, there is significant overhead, but want to extend the relatively easyHotshot, experimental C module. Primary focus on o
Memcached Performance TestingMemcached as a memory Key-value storage container has excellent performance, but in the last use of the discovery of a large number of data loss occurred, resulting in the function of the cache basically disappeared. The specific detection methods are as follows: Test hit ratioDetection hit rate is the most basic, most macroscopic way, using Telnet to connect to the memcached server, and then execute the stats command to s
####################Python脚本性能剖析###################Cprofile/profile/hotshot is used to count statistics on the frequency and time of execution of each part of a Python script, pstats can be used to format this informationCProfile, which is a C extension, has a small overhead and is suitable for profiling a long-running Python program, recommended for use with this moduleProfile, a pure Python module, has significant overhead, but it's relatively easy to extend it.Hotshot, the experimental C modu
value we mentioned above.
Then the CAS command is similar to the set command, but a parameter is added at the end, that is, the key version number. Only when the version number is consistent with the version number of the stored data, the update operation takes effect.
Set a 0 0 1 xstoredgets avalue a 0 1 1 // The last bit is version A xendset a 0 0 1 ystoredgets avalue a 0 1 2 // after adding or modifying, ycas a 0 0 1 1 // when CAS is updated, unlike the set operation, the last digit mu
Flush_all
Invalidate specific items immediately
Flush_all
Invalidate all items in n seconds
Flush_all 900
Stats
Prints general statistics
Stats
Prints memory statistics
Stat
more than the GET command. This number is the version number of the KEY value we mentioned above.
Then the CAS command is similar to the SET command, but a parameter is added at the end, that is, the key version number. Only when the version number is consistent with the version number of the stored data, the update operation takes effect.
Set a 0 0 1 xSTOREDgets aVALUE a 0 1 1 // The last bit is version a xENDset a 0 0 1 ySTOREDgets aVALUE a 0 1 2 // after adding or modifying, ycas a 0 0
PASS auth_pass 11112222} track_script {Chk_haproxy} virtual_ipaddress { 192.168.1.200 native Virtual IP} notify_master "/etc/keepalived/notify.sh master" scripts run in a different state notify_backup "/etc/ keepalived/notify.sh backup "Notify_fault"/etc/keepalived/notify.sh Fault "}VRRp_instance vi_2 {Another master keepalived from state BACKUP interface eth0 virtual_router_id 99 is set to a different Primary keepalived Priority Low Advert_int 1 authentication {auth_type PASS auth_pass
version: Revision number ... Curr_items: number of keyvalue in the current cache total_items: KeyValue number bytes: The amount of memory used by all caches curr_connections the current number of connections .... cmd_get: Total fetches Cmd_set: Total number of writes Get_hits: Total hits Miss_hits: Get the number of failures ... Bytes_read : Total bytes of traffic read Bytes_written: Total bytes of write trafficLimit_maxbytes: Maximum allowable amount of memory, bytesStats ResetClear statistic
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 allocation statistics
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 allocation statistics
/spcreate.sql--"/oracle/product/10.2.0/db_1/rdbms/admin/" as script directory
After you run the script, enter Perfstat_password, Default_tablespace, Temporary_tablespace
10, test whether successful, generate a snapshot of the database
Sql> Execute Statspack.snap
11. Regenerate into a snapshot
Sql> Execute Statspack.snap
12, take two snapshots between the time period of the Statspack report
Sql> @/oracle/product/10.2.0/db_1/rdbms/admin/spreport.sql
Enter the starting and ending points for generat
process, which should be less than the number of CPU cores. Daemon #进程后台运行, (recommended mode) Defaults mode HTTP #实例的默认运行模式 retries 3 #连接后端服务器的失败重试次数 timeout Connect 10s #连接服务器的最长等待时间 , the default unit is milliseconds, you can use other time units Timeout client 20s #连接客户端发送数据时最长等待时间, the default is milliseconds, you can use other time units timeout server 30s #服务器回应给客户端数据发送的最长等待时间, The unit is milliseconds, you can use other time units timeout Check 5s #对后端服务器的检查超时时间, the default unit is mil
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.