Memcached - Connection timeout

0

I am seeking guidance on how to resolve the problem with Elasticache Memcached that we are currently encountering. Our setup consists of a 2-node cluster, and our application is based on Lambda. To ensure read availability, we write requests to both nodes. However, we are facing random connection timeouts that last for 10 to 30 seconds, and we receive "get_misses" errors. Upon checking the metrics, the CPU usage is low (around 5%) and there is sufficient available memory. Can someone offer suggestions on how to troubleshoot this issue?

Ashish
asked a year ago1234 views
1 Answer
2

Use the CloudWatch metrics to monitor the metrics such as network traffic, number of connections, and cache hit rate. This can help you to identify any spikes or anomalies that may be causing the connection timeouts and "get_misses" errors.

Make sure that the Elasticache Memcached configuration is optimized for your workload. You can review the Elasticache Memcached parameters and adjust them as necessary to optimize performance.

Make sure that your Lambda function code is correctly interacting with the Elasticache Memcached cluster. Check that your code is handling errors correctly and retrying failed requests when necessary.

Adding more nodes to the Elasticache Memcached cluster can help to distribute the workload and reduce the likelihood of connection timeouts and "get_misses" errors.

profile picture
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions