쉘스크립트애들
숫자 더하기
혜룐
2016. 3. 15. 10:48
vagrant@master:~$ echo $(($((5760793064+29263516))/5760793064))
1
When using Redis as a cache, monitoring the cache hit rate can tell you if your cache is being used effectively or not. A low hit rate means that clients are looking for keys that no longer exist. Redis does not offer a hit rate metric directly. We can still calculate it like this:
The keyspace_misses
metric is discussed in the Error metrics section.
A low cache hit rate can be caused by a number of factors, including data expiration and insufficient memory allocated to Redis (which could cause key eviction). Low hit rates could cause increases in the latency of your applications, because they have to fetch data from a slower, alternative resource.