memcached Data storage

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.