Skip to content

Cache slots info & Removing "master_nodes" module variable #96

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

shuxiao9058
Copy link

refer #86

also fix a potential bug caused with limit pool when tcp connect failed with too many waiting connect operations.

more details:

https://github.com/openresty/lua-nginx-module#tcpsockconnect

Alejandro Gonzalez and others added 2 commits July 8, 2021 19:11
* info in this table was not "per client" (like slot_cache) so it was containing a list of all master nodes of all cluster-clients ever instantiated
* list was always growing (there were just appends to the table)
* list of master nodes can be already obtained from the slots info already cached per client (this eliminates the need of an extra "nodes" query to redis)
@shuxiao9058
Copy link
Author

@steve0511 please have a review, thanks.

@shuxiao9058
Copy link
Author

@toredash any suggestion about this pr?

@toredash
Copy link
Contributor

I quickly looked over it, seems correct but I only spent a solid minute to review it.

I haven't used this tool for a few years now.

Did you so any noticeable performance benefit after this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants