amazon web services - AWS Elasticache - increase memcached item size limit -
im using memcached
module on aws elasticache
in python flask app (with flask-cache
)
when try set file less 1mb
need repeatedly access cache, have no issues. when file size increases more mb (the file text file/csv/xlsx etc), following error
error: error 37 memcached_set: success
im guessing because of size limit on memcached item capped @ 1mb. how increase item limit 5-6 mb in aws elasticache ?
are there issues in increasing item size limit in memcached ?
this page lists parameters can tinker in memcached http://docs.aws.amazon.com/amazonelasticache/latest/userguide/cacheparametergroups.memcached.html
if not specify parameter group memcached cluster, default parameter group (default.memcached1.4) used. cannot change values of parameters in default parameter group; however, can create custom parameter group , assign cluster @ time.
create new cache parameter group either aws console or using aws cli , set max_item_size size fits needs. reboot cache cluster change kickin.
on local testing machine, if have memcache installed, can increase object size adding line @ /etc/memcached.conf
# increase object size limit -i 128m
then reboot memcache sudo service memcached restart
changes settle in
Comments
Post a Comment