1, memcached Introduction, install self Google
2. memcached Monitoring and data export
A Perl-language script in the scripts directory under the memcached source directory, which can be used to perform some daily query and monitoring of memcache.
Use the following:
#./memcached-tool usage: memcached-tool 2.1 memcache status query
#./memcached-tool 192.168.10.1:11211 stats#192.168.10.1:11211 field Value accepting_conns 1 bytes 0 bytes_ read 20 bytes_written 5 cmd_flush 0 cmd_get 0 cmd_set 0 connection_structures 3 curr_ connections 2 curr_items 0 evictions 0 get_hits 0 get_misses 0 limit_maxbytes 67108864 listen_disabled_num 0 pid 18088 pointer_ size 32 rusage_system 0.000999 rusage_user 0.000000 threads 2 time 1422969575 total_connections 4 total_items 0 uptime 25344 version 1.2.8
is not so Eay
2.2 Export the key and value values inside the Memcache, with the following command:
#./memcached-tool 192.168.10.1:11211 Dump >./memcachekeys
is not very simple, I was in the same mood as you, but don't be happy too early, after a lot of data testing, found that the key and intrinsic key number of different, much less; later, after a lot of Google, memcached itself has a buffer size limit, the maximum 2M. This problem has not been solved so far, if there is a big God or passing brothers have this problem solution, please mail [email protected].
2.3 memcached Data Import
#nc 192.168.10.1 11211 <./memcachekeys
right! Key-value Import is so simple
This article is from the "Embrace Open source" blog, be sure to keep this source http://junit.blog.51cto.com/9897514/1611277
memcached Data storage