Question about cache

tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Question about cache

Post 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.
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Question about cache

Post 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
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Question about cache

Post 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?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Question about cache

Post by admin »

Don't forget to run script update
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Question about cache

Post by admin »

max memory parameter
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Question about cache

Post 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?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Question about cache

Post by admin »

ok, how do you define correct max memory ?
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Question about cache

Post 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?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Question about cache

Post by admin »

Redis itself needs 2 mb may be

the rest - is your data
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Question about cache

Post by tubeman »

Does this data include thumbs on a site also? What to do when Redis does not free memory on its own?
Post Reply