Is it better to restart all the instances in a Redis cluster or just flush the cache when we restart other services in the application

821 views
Skip to first unread message

riya agarwal

unread,
May 25, 2020, 3:26:46 AM5/25/20
to Redis DB
As a part of our application we have multiple services running. We are newly introducing redis cluster. The services are all restarted weekl, sometimes daily in testing env. Just wanted to understand if it is ok to just clear the redis cache when other services are restarted or it's good to restart the redis services as well. We are not using persistence so restart would also clear the cache, but is there any other additional benefit of restarting.

Thanks a lot!!

Itamar Haber

unread,
May 25, 2020, 8:45:29 AM5/25/20
to redi...@googlegroups.com
Hello Riya,

In this scenario, using Redis' `FLUSHALL ASYNC` instead of restarting would save you the time it takes to restart the host/service - although Redis is quite a fast booter. so that's a negligible benefit. On the other hand, when you restart Redis, any memory fragmentation is magically gone and that may be a bonus.

The bottom line is that both options are valid imo.

Cheers,

On Mon, May 25, 2020 at 10:26 AM riya agarwal <riya...@gmail.com> wrote:
As a part of our application we have multiple services running. We are newly introducing redis cluster. The services are all restarted weekl, sometimes daily in testing env. Just wanted to understand if it is ok to just clear the redis cache when other services are restarted or it's good to restart the redis services as well. We are not using persistence so restart would also clear the cache, but is there any other additional benefit of restarting.

Thanks a lot!!

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/0f5099bf-2460-4181-9e13-063c8beaba7b%40googlegroups.com.


--

Itamar Haber
Technicalist Evangely

Phone: +972.54.567.9692

Redis Labs



Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast Ltd, an innovator in Software as a Service (SaaS) for business. Providing a safer and more useful place for your human generated data. Specializing in; Security, archiving and compliance. To find out more Click Here.

riya agarwal

unread,
May 26, 2020, 12:51:59 PM5/26/20
to Redis DB
Thanks a lot!!


On Monday, May 25, 2020 at 8:45:29 PM UTC+8, Itamar Haber wrote:
Hello Riya,

In this scenario, using Redis' `FLUSHALL ASYNC` instead of restarting would save you the time it takes to restart the host/service - although Redis is quite a fast booter. so that's a negligible benefit. On the other hand, when you restart Redis, any memory fragmentation is magically gone and that may be a bonus.

The bottom line is that both options are valid imo.

Cheers,

On Mon, May 25, 2020 at 10:26 AM riya agarwal <riy...@gmail.com> wrote:
As a part of our application we have multiple services running. We are newly introducing redis cluster. The services are all restarted weekl, sometimes daily in testing env. Just wanted to understand if it is ok to just clear the redis cache when other services are restarted or it's good to restart the redis services as well. We are not using persistence so restart would also clear the cache, but is there any other additional benefit of restarting.

Thanks a lot!!

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redi...@googlegroups.com.


--

Itamar Haber
Technicalist Evangely

Phone: +972.54.567.9692

Redis Labs

Reply all
Reply to author
Forward
0 new messages