Kill lui lei Dog---memcache no:03 start display status and save mechanism, etc.

Source: Internet
Author: User

Stats display status, if he will pop up a lot of things after carriage return, some data we need to pay attention to

Such as:

Get_hits is a get query, the number of times it is queried

Get_misses with Get query, the number of times not queried

Cmd_get total number of queries executed

Curr_items the number of keys currently present (including expired)

Main view hit rate problem:

Get_hits/cmd_get the higher the ratio, the better the system.

Note that the setting of the data validity period

There are two kinds of settings

  • Set the number of seconds directly, set the cache time using the number of seconds, you can not 30 days
  • Set a time-out point for the time stamp to expire.

Regardless of the time stamp or the number of seconds are integers, how to distinguish and?

If less than 30*24*3600 is the number of seconds to set, if the value is more than the timestamp,

If the set cache validity period is greater than 30*24*3600 less than the current timestamp, it indicates that it is invalid

Kill lui lei Dog---memcache no:03 start display status and save mechanism, etc.

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.