-
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 flag --min-output-buffer-timeout with default 25ms #1133
Conversation
Lower timeouts are more expensive for nsqd, so it seems odd to put a maximum on the timeout a client can request, but not a minimum. Also change --max-output-buffer-timeout default to 30 seconds, up from 1 second. Again, it's cheaper/easier for nsqd. But we may still want to help people avoid unwittingly setting it close to (or above) the default --message-timeout (60 seconds).
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
(The reason I was a bit confused about disabling the timeout is because I thought I read somewhere that |
This makes me think that if either |
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.
Seems reasonable, LGTM.
I'm going to let it sit for just a bit, then re-review and manually test a bit, before merge. |
Ha, it seemed like the conversation (with yourself) sort of concluded 😜? The changes don't seem controversial, what do you feel like we need to discuss? |
Maybe nothing :) Just maybe, for backwards compatibility, or some other practical reason, we should be careful changing some bit here. Anyway I'll just do a sanity check (min/max is enforced) sometime in the next few days. |
Did some local testing, looked good. Side note: pynsq does not currently allow |
Lower timeouts are more expensive for nsqd, so it seems odd to put
a maximum on the timeout a client can request, but not a minimum.
Also change
--max-output-buffer-timeout
default to 30 seconds,up from 1 second. Again, it's cheaper/easier for nsqd.
But we may still want to help people avoid unwittingly setting
it close to (or above) the default
--msg-timeout
(60 seconds).I wasn't familiar with
output_buffer_timeout
until #1125 came up. I don't have a real need for these options changes, they just seem to make a bit more sense. But what do you think @mreiferson ?possibly useful links to refresh memory:
043b79a
https://nsq.io/clients/tcp_protocol_spec.html#identify