Best practices for memcached
Multiple get
operations are now possible with the InnoDB
memcached plugin, which will really help in improving the read performance. Now, multiple key value pairs can be fetched in a single memcached query. Frequent communication traffic has also been minimized, as we can get multiple data in a single shot.
The key takeaways that you should consider for memcached configuration best practices are what we will be going through now.
Resource allocation
Memory allocation for memcached shouldn't be allocated over the available physical memory or without considering other resources that would be utilizing memory. If we over-allocate memory, there is a high chance that memcached would have memory allocated from the swap space. This may lead to delays while inserting or fetching values because the swap space is stored on the disk, which is slower than in-memory.
Operating system architecture
As the operating system architecture has 32-bits, one needs to be cautious. As we...