Adding elastic cache Redis AWS into a java service. Elastic cache is configured to clustered mode. Client used - Redisson. Symptom There are times in the POC where the CPU spikes and only in a single nodes in the cluster. When reading this troubleshooting article from AWS https://aws.amazon.com/premiumsupport/knowledge-center/elasticache-redis-high-cpu-usage/ it suggested looking at new connections and I did find new connections spikes correlate to the cluster node's CPU spiking to 90+%. The thing is I don't control when redisson (at least have not added any redisson configuration for this) creates new connections.
- Why is it seeing some connection (maybe to support increase in throughput? ) ?
- What could be configured to avoid this CPU spike (likely due to new connections) which slows down all queries to the cluster?
- Am I in the right direction with new connections as the cause of CPU Spikes. Adding the graphs showing CPU spikes correlating to new connection AWS metric.
The question is very open-ended because an increase in connection can be due to multiple reasons. I suggest you check the following-
I think point 1 might solve your issue. Just a hunch.