C # memcache monitoring and management tool

Source: Internet
Author: User

I have been searching for a memcache monitoring tool written in C # on the Internet. Instead, it is all written in PHP (memadmin is a good monitoring tool ), so I spent a week implementing some memadmin functions, and then added some of the functions that I needed. The following describes in detail, mainly through

Common commands
Stats
Display Server Information and statistical data

Stats Reset
Clear statistics

Stats
Malloc
Display memory allocation data

Stats cachedump slab_id
Limit_num
Displays the list of the first limit_num keys in an slab. The format is as follows:
Item key_name [value_length
B; expire_time | access_time S]
Among them, memcached 1.2.2 and earlier versions show
Access time (timestamp)
1.2.4 or later versions, including 1.2.4 display
Expiration time (timestamp)
If it is a key that never expires, expire_time is displayed as the start time of the server.

Stats cachedump 7
2
Itemcopy_test1 [250 B; 1207795754 S]
Item copy_test [248 B; 1207793649
S]

Stats Slabs
Displays information about each slab, including the chunk size, quantity, and usage.

Stats
Items
Display the number of items in each slab and the age of the oldest item (the number of seconds from the last visit)

Stats detail
[On | off | dump]
Set or display detailed operation records

The parameter is on.
The parameter is off. Disable detailed operation records.
The parameter is dump, and detailed operation records are displayed (the number of times each key value is get, set, hit, and del)

The following describes the basic functions:

 

    1. Display basic memcache Information
    2. Memcache monitoring statistics
    3. Make statistics on the blocks of memcache
    4. Data Maintenance in memcache
    5. Calculate the hit rate of each server
    6. Monitor the Server LIST
    7. Server Data Backup
    8. Server data restoration
    9. Add Server
    10. Email Notification

 

Basic Information

Displays the basic data information of memcache since it was started. By selecting different servers, the current basic information of different servers is displayed;

 

Statistical Monitoring

1) Select the server to monitor;

2) enter the refresh frequency (numbers only) and click Start monitoring to monitor the information of the selected server from time to time;

3) The Monitoring Service prohibits server switching. You can switch tabs and query other tab information;

4) after you click "Stop monitoring", a monitoring cycle ends and the server can be switched to monitor again;

 

Block Query

1) Select the server to query;

2) After selecting a block, you can count the total data volume of each block;

3) enter the data volume to be queried, And you can query data in different blocks (Note: Do not query too much data as far as possible; otherwise, performance may be affected );

4) double-click the data queried in the list to query the details of each key;

5) The details page supports the previous page and the next page, and supports searching and replacement. The ESC closes the form;

6)ProgramTo automatically identify JSON data, click format to view the data structure more clearly;

7) Click format to cancel the format;

8) Click Delete to delete the current data from the selected server;

9) Click Save to save the data to the selected server;

 

Data Maintenance

1) Select the memcache server to query;

2) enter the key to be queried and separate multiple keys by commas;

3) double-click the data queried in the list to query the details of each key;

4) The details page supports the previous page and the next page, and supports searching and replacement. The ESC closes the form;

5) The program automatically identifies JSON data. You can click format to view the data structure more clearly;

6) Click format to cancel the format;

7) Click Delete to delete the current data from the selected server;

8) Click Save to save the data again;

 

9) Click each cell to enter the editing status. You can right-click to copy data;

10) create data. Enter the key and value and click Submit. The data will be submitted to the selected server;

 

Hit rate Query

1) Select the server to be queried (switch the server to collect statistics on the data of different servers );

2) collect statistics on get, delete, incr, decr, and CAS commands on the server, and calculate the hit rate of various commands;

 

Server monitoring list

Lists the details of all the currently monitored servers;

 

Server Data Backup

1) Click Tools and select backup;

2) Select the server to be backed up;

3) Select the backup path;

4) Click Backup to automatically back up data in the multi-threaded background. The details of the current backup are displayed below the main form;

 

Server data restoration

1) Click "Tools" and select "Restore;

2) Select the restored server in the pop-up form;

3) Select the path to restore;

4) Click "Restore" to automatically determine whether the current server needs to be restored. If the server meets the requirements, it will be restored automatically. The restored details are shown below the main form;

 

Add Server

1) Click Tools and select Add Server;

2) In the pop-up form, enter the Server IP address and save the port;

3) During saving, the server to be saved will be verified once. If the connection fails, the server cannot be saved;

4) When a server is added, it cannot be added multiple times and will be verified;

5) double-click a row of data in the list to edit the data or delete the current server;

6) Click Reset to return to the Add status;

 

Email Notification

1) You can configure the email server in APP. config;

2) For recipients and CC recipients, open usermailconfig. ini for configuration;

3) Different memcache servers can define different recipients and CC recipients. Multiple recipients or CC recipients are separated by commas;

More than 70 users who have left their mailboxes can send emails by email, but they will not send emails later. If you need them, please download them at the following address. Thank you!

Download csdn

Download 51cto

 

Related Article

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.