AWS Elasticache - increase memcached item size limit AWS Elasticache - increase memcached item size limit flask flask

AWS Elasticache - increase memcached item size limit


This page lists the parameters that we can tinker with in memcachedhttp://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheParameterGroups.Memcached.html

If you do not specify a parameter group for your Memcached cluster, then a default parameter group (default.memcached1.4) will be used. You cannot change the values of any parameters in the default parameter group; however, you can always create a custom parameter group and assign it to your cluster at any time.

Create a new Cache Parameter group either from the AWS Console or using the AWS CLI and set the max_item_size to the size that fits your needs. Reboot your cache cluster for this change to kickin.

enter image description here

On your local testing machine, if you have memcache installed, then you can increase the object size by adding this line at /etc/memcached.conf

# Increase object size limit-I 128M

Then reboot your memcache with sudo service memcached restart for the changes to settle in