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
I want a total maximum timeout of 5 seconds (5000ms) for this synchronous write in Kafka.
The documentation say "Default timeout for network requests. Producer: ProduceRequests will use the lesser value of socket.timeout.ms and remaining message.timeout.ms for the first message in the batch".
Is it ok to configure "socket.timeout.ms" like this ? :
What is the exact mean of "timeout for network requests" in this context ? If a broker is busy or unavailable, does it mean that it will wait socket.timeout.ms (50ms in my example) and then retry again and again on all brokers until i reach 5000ms (or message correctly produced and flushed) ?
Or does it mean that my producer will permanently failed if it reach one time 50ms timeout on a network request ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have some troubles to understand and configure a correct value for the conf variable "socket.timeout.ms" for my producers.
Important note : my producer are synchronous (it's a design requirement), so i do something like (sorry it's PHP :)).
I want a total maximum timeout of 5 seconds (5000ms) for this synchronous write in Kafka.
The documentation say "Default timeout for network requests. Producer: ProduceRequests will use the lesser value of socket.timeout.ms and remaining message.timeout.ms for the first message in the batch".
Is it ok to configure "socket.timeout.ms" like this ? :
What is the exact mean of "timeout for network requests" in this context ? If a broker is busy or unavailable, does it mean that it will wait socket.timeout.ms (50ms in my example) and then retry again and again on all brokers until i reach 5000ms (or message correctly produced and flushed) ?
Or does it mean that my producer will permanently failed if it reach one time 50ms timeout on a network request ?
Beta Was this translation helpful? Give feedback.
All reactions