Lesti_Fpc icon indicating copy to clipboard operation
Lesti_Fpc copied to clipboard

Redis Memory Limit

Open stoopman opened this issue 9 years ago • 3 comments

Hi Gordon,

I am using Rackspace Object Rocket (Redis) in combination with Lesti FPC. The redis storage Rackspace provides has a limit (mine has 2.5GB). The magento store on which this is running has alot of products and store views which fills the redis up to 2.44GB. This causes the magento cron to throw the following exception:

exception 'CredisException' with message 'OOM command not allowed when used memory > 'maxmemory'.' in /var/www/vhosts/apotheeken/webroot/lib/Credis/Client.php:1100

Is there any way to configure the plugin to check the used up memory and not try to cache anything further? When the memory limit is reached almost all product pages show the Maintenance page. When redis cache is flushed everything works fine again.

Rick

stoopman avatar Feb 24 '16 08:02 stoopman

Hello @rickstoopman I made a small research and maybe that would be possible, I guess the function Zend_Cache_Backend_ExtendedInterface::getFillingPercentage can be helpful. Luckily Cm_Cache_Backend_Redis is implementing this function. Maybe I can include that in the next version.

GordonLesti avatar Feb 24 '16 10:02 GordonLesti

Hi Gordon,

If you could build that in the next version is would be really great! Now I have to disable the fpc or increase the object rocket size.

When do you expect to release the next version?

stoopman avatar Feb 24 '16 10:02 stoopman

You could also define a memory limit in your Redis service config

Quazz avatar Nov 29 '16 11:11 Quazz