Default Redis setting causes Out of Memory crashes
Environment
self-hosted (https://develop.sentry.dev/self-hosted/)
Steps to Reproduce
- Have plenty of CPU and RAM (16 cores) - 128gb
- Have a busy server
- Watch RAM usage by Redis climb to 70% of the total RAM
- Other non Redis tasks tip the usage up to 100%
- See that the OOM process clears down most of the processes
- Find that you can't ssh on to the server, and after reboot; everything is a mess
Expected Result
A busy server can run for multiple hours without infinity growing in RAM
Actual Result
The busy server allows Redis to use most of the Ram, and other processes push it to 100%.
We have capped it at about 40% redis.conf
maxmemory 45gb
I would suggest being able to set this as a sensible number by percentage would be great, and shipping at infinite is bad
maxmemory 0
Product Area
Settings
Link
No response
DSN
No response
Version
25.11.1
Assigning to @getsentry/support for routing ⏲️
We have this PR if you want to provide some arguments on why we should merge it https://github.com/getsentry/self-hosted/pull/3907
I personally set it to somewhere on 16GB mark, but that would be horrendous for folks running a standard spec server.