-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Redis health indicator requests more information than it needs resulting in unnecessarily large responses from Redis #24208
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
Conversation
Thanks for the PR. Regardless of the outcome of this issue, a call to See also https://redis.io/commands/info |
I find a little odd that we have to hardcode |
Given that |
It's my pleasure to make Spring Boot better. Yes, I've made another PR for improving decoding performance in Redisson. |
I agree with @wilkinsona. I' wondering where we should target this one. Do we consider it a bug? |
I was about to ask that, believe it or not. I think this can be considered as such and targeted to |
@xJoeWoo thank you for making your first contribution to Spring Boot. It has been applied to |
Health check of Redis only uses
redis_version
field inserver
section, however,info
command without any section is used so that all sections of information of Redis will be returned. The size of responded result can be up to 3.5KB for each query. If health check interval is set low like 2 seconds, decoding/processing the result may cost unnecessary CPU time.This PR adds section argument
server
ofinfo
command for reducing sections to be queried.