-
Notifications
You must be signed in to change notification settings - Fork 876
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
Add option to only run check and counts on replicas #931
Comments
Good questions!
I don't have time to investigate option (2) but that could be an easy win if that performs a lot better than GET'ing each key. (the results wouldn't be equivalent cause MEMORY USAGE reports key + val size but it's still a god approximation and can be useful. I'd put that functionality on a cmd line flag and keep the current functionality by default for backwards compatibility) |
Thanks for taking a look @oliver006!
We use a fork of the DandyDeveloper redis-ha helm-chart. Each pod in the statefulset has the same configuration, one of the pods will be a master and the rest would be replicas.
This frequently shows up in the slow log on workloads today where we execute it on our replicas (for troubleshooting high memory issues) - so I would avoid running it on a master |
Interesting - so the master vs replica decision is made on the fly and not pre-determined? |
Correct. On StatefulSet provision, the first ordinal pod would be the master (as there is nothing to replicate from). Subsequent pods would be instructed to replicate from the master. However, we have AZ affinity in our set up, this ordinal pod may not be running in the desired AZ. For that we have a separate process to invoke a failover to the pod running in the desired AZ.
That would be ideal, I won't have time to pick it up until later this year though. |
Describe the problem
redis-exporter has these arguments available for exporting the length of particular keys:
It's described in the docs that these commands may not perform well on large databases, and that it can affect production environments.
My questions:
REDIS_EXPORTER_SCRIPT
?What version of redis_exporter are you running?
Please run
redis_exporter --version
if you're not sure what version you're running.[x] 1.6.2
Running the exporter
N/A
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: