You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users expect the sendAsync call to be non blocking even when broker is in a bad shape (Restart or GC pause etc) but since blockIfQueueFull is true by default the sendAsync call block which ends up blocking their entire application.
We are planning to change the default blockIfQueueFull to false in our internal wrapper - let me know what you think about this and if you want me to do the same in Pulsar (open source).
👍
at Yahoo, we may want to communicate this change loudly. for most applications, it's likely to make things work the way the developers expected, but there's always seems to be someone who depends upon bizarre semantics.
@merlimat - I agree that the number of publish failures may go up in case broker is unresponsive even for a second. @saandrews@rdhabalia - Does 5K seem a good number - I don't think any property publishes more than 1K mps so 5K limit will give the broker 5 seconds breathing space in case of GC pauses.
Activity
jai1 commentedon May 18, 2017
@merlimat @rdhabalia @saandrews @msb-at-yahoo @sschepens
sschepens commentedon May 19, 2017
Totally agree,
blockIfQUeueFullshould default tofalsesaandrews commentedon May 19, 2017
msb-at-yahoo commentedon May 19, 2017
👍
at Yahoo, we may want to communicate this change loudly. for most applications, it's likely to make things work the way the developers expected, but there's always seems to be someone who depends upon bizarre semantics.
merlimat commentedon May 19, 2017
I agree too. Would it make sense to increase the default queue size as well?
If you're publishing 1K msg/s, a queue size of 1K will buffer up for 1 seconds. After that you will start seeing publish failures.
jai1 commentedon May 24, 2017
@merlimat - I agree that the number of publish failures may go up in case broker is unresponsive even for a second.
@saandrews @rdhabalia - Does 5K seem a good number - I don't think any property publishes more than 1K mps so 5K limit will give the broker 5 seconds breathing space in case of GC pauses.
saandrews commentedon May 24, 2017
I was thinking 30k which covers our timeout duration. But client mem usage will shoot up. Any thoughts @merlimat ?