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 ![]() |
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.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/0f5099bf-2460-4181-9e13-063c8beaba7b%40googlegroups.com.