Skip to content
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

feature: plugin limit-count support to use redis cluster #2406

Merged
merged 8 commits into from
Oct 17, 2020
Merged

feature: plugin limit-count support to use redis cluster #2406

merged 8 commits into from
Oct 17, 2020

Conversation

membphis
Copy link
Member

@membphis membphis commented Oct 13, 2020

What this PR does / why we need it:

Support for using redis cluster in limit-count plugin.

fix #638

continue PR: #2340

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible?

t/plugin/limit-count-redis-cluster.t Outdated Show resolved Hide resolved
return setmetatable(self, mt)
end


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think copy-paste is good

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in limit-count-redis, the main process of incoming is connect -> process -> keepalive.

but in limit-count-redis-cluster, the main process of incomingis only the process . they were different.

I think it is acceptable for those copied code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@moonming I think we can merge this PR now. please take a look at this PR.

t/plugin/limit-count-redis-cluster.t Show resolved Hide resolved
@membphis membphis merged commit c65f5c9 into apache:master Oct 17, 2020
@membphis membphis deleted the req-count-redis-cluster branch October 17, 2020 00:21
@moonming moonming added this to the 2.0 milestone Oct 19, 2020
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.

feature: supported cluster limit-req with redis server.
5 participants