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

feat:Add a batch incremental Add rule for the Circuit Breaker manager #3365

Open
wants to merge 1 commit into
base: 1.8
Choose a base branch
from

Conversation

aliyx
Copy link

@aliyx aliyx commented Mar 28, 2024

Describe what this PR does / why we need it

The gateway integrates sentinel and needs to initialize a circuit breaker for each resource (api+ip) at startup. The ip corresponding to the api is obtained by the service registry in batches. When there are a large number of apis, the set method of the degree manager is frequently invoked, resulting in a very slow startup and a batch new method is required.

Does this pull request fix one issue?

Describe how you did it

Added the method of adding rules incrementally in batches.

Describe how to verify it

Special notes for reviews

@CLAassistant
Copy link

CLAassistant commented Mar 28, 2024

CLA assistant check
All committers have signed the CLA.

@LearningGp LearningGp added to-review To review area/circuit-breaking Issues or PRs related to circuit breaking labels May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/circuit-breaking Issues or PRs related to circuit breaking to-review To review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants