-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
nsqd: add max_channel_client_connection_count #1136
nsqd: add max_channel_client_connection_count #1136
Conversation
29a78f0
to
f2ef52c
Compare
/cc @mreiferson @ploxiln |
b59975d
to
b871a1c
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.
Thanks for the PR @andyxning! |
a34f08b
to
623684c
Compare
All comments are addressed. PTAL. @mreiferson @ploxiln |
623684c
to
c858fb7
Compare
nsqd/channel.go
Outdated
} | ||
c.clients[clientID] = client | ||
|
||
return errors.New("E_TOO_MANY_CHANNEL_SUBSCRIPTIONS") |
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.
style nit-pick, I'd prefer the non-error case to be the default path and the error case to be the branch, please :)
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.
Will do.
2dae48d
to
a277e0a
Compare
/cc @ploxiln @mreiferson Comments are addressed. PTAL. :) |
a277e0a
to
95221cd
Compare
LGTM, I'll leave it for @ploxiln to take a final pass. Thanks @andyxning! 💯 |
BTW, do you have a slack id for other IM id that is available for me to give you a DM about PR #1137 . |
Yes, I'm |
@ploxiln PTAL. |
👍 |
I'm not on gophers slack ... but I am occasionally on Freenode IRC #nsq channel, using the same name, when I remember to start up my irc client :) It's very late here at the moment so I won't be on within the next 10 hours probably. |
This PR adds
max_channel_client_connection_count
to nsqd to limit the client connection count per channel.This is mainly used to limit the channel consumer connections per channel.