-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
config: warn if connmgr limits conflict with rcmgr #2527
config: warn if connmgr limits conflict with rcmgr #2527
Conversation
If the high water mark of the connection manager exceeds the total connection limit of the resource manager then a warning will be issued at node startup.
0bcec1d
to
a61d291
Compare
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 actually think it would be neater to pass an int to CheckLimit as opposed to what I've currently implemented.
That could make sense. Who would own the interface that the resourcemanager implements to get the int?
I think I prefer this model because the interface is owned by the conn manager, and the resource manager is implementing it so that it can be used to check against.
I almost would consider flipping these so that the resource manager is the one checking against other things, since it's the one that is the ultimate source of truth. But I don't think it really matters.
Besides a single comment to hopefully give a nicer warning, I think this is good. Thank you!
Hi @MarcoPolo could you elaborate on how to improve the warning message? Currently the warnings would take the following format:
|
Hi @sukunrt, thanks for the review, I think I've addressed all your points. |
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.
Thank you, @piersy
Co-authored-by: Sukun <sukunrt@gmail.com>
closes: #1707
If the high water mark of the connection manager exceeds the total connection limit of the resource manager then a warning will be issued at node startup.
@MarcoPolo, I actually think it would be neater to pass an int to
CheckLimit
as opposed to what I've currently implemented.Let me know what you think