New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redis-rdb-bgsave process make cluster falling. #7345
Comments
Hi @antirez, As my colleague told, from time to time we experimented long pauses in the application. We thought it was attribuible to bgsave process, as we have high volume of key changes in short period of time. In order to solve this: We dedicated 3 CPU to data processing. We left 1 to administrative stuff. We disabled persistence, as we can live without it. We set maxmemory. We set expire on keys according to business needs. We put in place an autoscalling process to add nodes and migrate keys automatically. Adding a node works fine. Migrating keys, despite we do it in small groups of 20s, pauses the cluster one minute aprox. from time to time. Please, can you give us an advite to reduce downtimes and maximize responde times? |
Maybe |
We will try and let you know. Thanks. |
We set lazy options to yes and tunne io-threads and bgsave. And it worked very good! But, now we are experimenting trouble with cluster resharding. It is too slow for production. Adding a new cluster member and live reshard slots takes more than a day. Worst than that, the process degrades performace of the whole cluster while it is executing. Is there anyway to do this faster? We tried to disable bgsave before resharding but it did not help. |
Hi community!
I have a redis-cluster running on the stable version of redis-6.0.1. Each node is a virtual machine running on azure.
The issue is related with the cluster performance when the rdb-bgsave process is running. When the ram memory is fetching the "maxmemory" limit of redis, the bgsave process start to consume swap memory. This procedmient make the cluster fail randomly while the snapshot is running.
This is the redis-server.log at that moment:
As you can se the errors in the cluster state starts and finish while the redis-rdb-bgsave process is running.
How can we solve this? There is any config recommendation for this issue? It's important to us still have persistance on disk without degradate the service.
Regards!
The text was updated successfully, but these errors were encountered: