Saturday, October 22, 2011

Memcached - Points to ponder

Few points to watch out in Memcached implementation and testing

  1. Decide between Early loading v/s Lazy loading or combination
  2. Size of Memory & CPU (not CPU intensive)
  3. Set LRU policy (will help Memory sizing)
  4. Latency
  5. What to cache and what to skip?
  6. Identify no. of Memcached instances and banks
  7. Select appropriate log levels
  8. Separate & manage Memcached logs
  9. Monitor Memcached servers (CPU, Memory,hits & misses of database and cache, etc)
  10. Ensure code coverage to leverage caching
  11. Test for thread contention
  12. Identify when to use get v/s multi-get
  13. Memcached allows us to scale out Application server instances. In case of multiple we need to take care of synchronization blocks (if any) used in our code.

No comments:

Post a Comment