Page 1 of 6

Question about cache

Posted: Mon Aug 26, 2019 9:55 am
by tubeman
Hi,
I see that Redis is taking up all the cached RAM on the server, Whenever Redis is restarted alot of memory in the server gets freed up. After restart again the cached RAM usage starts growing and once it gets full in a few days the sites start throwing 502 Bad Gateway Errors. Any idea how to determine how much RAM Redis exactly needs on a server? From 64 GB I upgraded to 128 GB RAM on the server, but I see everyday the RAM usuage is going up.

Re: Question about cache

Posted: Mon Aug 26, 2019 2:33 pm
by admin
Hi,
you can limit memory size for Redis and it'll live within those limits
otherwise it can use up all the memory

Re: Question about cache

Posted: Mon Aug 26, 2019 2:54 pm
by tubeman
Hi,
If I limit the size will it affect traffic of sites in any way? Also what parameters in Redis do I ask admin to change exactly?

Re: Question about cache

Posted: Mon Aug 26, 2019 3:48 pm
by admin

Re: Question about cache

Posted: Mon Aug 26, 2019 3:49 pm
by admin
max memory parameter

Re: Question about cache

Posted: Mon Aug 26, 2019 4:00 pm
by tubeman
Hi,
Thanks, the problem is that when memory is set low OOM errors start happening and I also see that at times Swap memory on server gets used. It would be really hard to calculate how much max memory 10 sites on each server would need, is there anyway to check in Redis would be the correct max memory parameter to set?

Re: Question about cache

Posted: Mon Aug 26, 2019 4:04 pm
by admin
ok, how do you define correct max memory ?

Re: Question about cache

Posted: Mon Aug 26, 2019 4:07 pm
by tubeman
Just assume for example 12 GB and ask admin to set max memory parameter, thats why I'm confused how much to set it to, maybe Redis needs more memory. Is there any way to check this?

Re: Question about cache

Posted: Mon Aug 26, 2019 4:09 pm
by admin
Redis itself needs 2 mb may be

the rest - is your data

Re: Question about cache

Posted: Mon Aug 26, 2019 4:33 pm
by tubeman
Does this data include thumbs on a site also? What to do when Redis does not free memory on its own?