-
Notifications
You must be signed in to change notification settings - Fork 8.1k
More resources can be added.Adjust the resource limit by csp.sentinel.context.max.size #2109
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
….context.max.size
| if (maxContextNameSize < 0) { | ||
| maxContextNameSize = DEFAULT_MAX_CONTEXT_NAME_SIZE; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe log a warning message here to tell the user that we had overwritten the maxContextNameSize value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need a standard warning message
| } catch (Exception ex) { | ||
| maxContextNameSize = DEFAULT_MAX_CONTEXT_NAME_SIZE; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log an error message here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, I wrote it with reference to the resolveAppType method. There is no warning message in the resolveAppType method
|
|
||
| private static int maxContextNameSize = DEFAULT_MAX_CONTEXT_NAME_SIZE; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should name it maxContextSize
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It named MAX_CONTEXT_NAME_SIZE in com.alibaba.csp.sentinel.Constants
|
|
|
Due to this PR's inactivity and the unsigned CLA, we are temporarily closing it. Feel free to create a new PR if you still intend to contribute after addressing the CLA requirement. |
Describe what this PR does / why we need it
当资源数大于2000时限流不可用
Does this pull request fix one issue?
Fixed #2108
Describe how you did it
Describe how to verify it
编写相关测试
Special notes for reviews
@sczyh30