Is it safe to flush redis?


(Stephen R Foster) #1

Hi, I’m experiencing the problem described here – high RAM use on redis:

https://meta.discourse.org/t/redis-server-hogging-ram/6415?source_topic_id=29035

I see that this bug was fixed, so I’ll update my discourse installation shortly. Before doing so, I was considering flushing redis to clear up space (I’m almost at the limit). But I don’t know exactly what discourse uses redis for. Is it safe to just flush it? Will my users see any disruption if I do so?

Thanks!


(Michael - DiscourseHosting.com) #2

Sidekiq uses it for event scheduling. You need to restart Sidekiq after flushing Redis.


(Jeff Atwood) #3

I recall an issue with Sidekiq where we have to kill it when memory use gets high, is that still true @sam?


(Sam Saffron) #4

Sidekiq is safe to flush, BUT you will lose a few jobs when it is flushed (people will miss some emails) AND all clients will lose position in message bus, so blue bubble will stop working till they refresh browser.


(Stephen R Foster) #5

Thanks! Flushed with no issues. :smile: