QuestionQ7

VerifiedDesign scalable and highly available cloud database solutions

You use Memorystore for Redis to cache frequently accessed data and enhance your application's performance. Recently, the application has experienced sudden latency spikes while interacting with the Memorystore for Redis instance. After reviewing the logs, you find a large number of "evicted keys" messages. You want to reduce both the frequency of latency spikes and their effect on the application. What should you do?

Explanation

Evicted keys indicate that the instance has reached its maxmemory limit. Evictions can remove frequently used cached data and degrade application performance; increasing the instance’s memory capacity reduces memory pressure and lowers eviction frequency. Google Cloud recommends scaling up when cache capacity is insufficient for the workload.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!