AWS ElastiCache for Redis Engine CPU Utilization metrics, how to interpret?
Asked Answered
B

2

14

We are using AWS ElastiCache for Redis for our application, and we need some help in understanding the metrics. During high load, we saw a CPU utilization of 30%, But Engine CPU Utilization was showing almost 80%. Could someone please elaborate on the difference between these metrics and what are the optimum limits for those metrics for a better performance.

Thanks in advance.

Bisulfate answered 12/7, 2018 at 10:46 Comment(0)
B
21

Now I got a better understanding of both the metrics. When it is CPU Utilization, it is total cpu utilization of that system. And Engine Utilization is specific to the redis process thread which handles all the redis queries. So in a system with 4 cores, as we all know redis processing happens in a single thread, only one core will be used by the redis for processing the queries. So in that case the maximum CPU Utilization by redis will be 25 %.

Bisulfate answered 17/7, 2018 at 10:1 Comment(1)
Official explanation here: aws.amazon.com/about-aws/whats-new/2018/04/…Derm
S
0

The engine CPU utilization show you the entire value of the CPU resources being consumed by the host. Whereas the Engine CPU utilization shows you the value of the CPU resource consumed for a particular core. In this case as Redis is single thread and assuming that there are two cores. If the threshold for CPU utilization is 90% then the actual threshold per core would 90/2 or 45%. For reference, you can check out: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/CacheMetrics.WhichShouldIMonitor.html

Subclavian answered 12/12, 2022 at 6:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.