You can adjust request.timeout.ms, which is shared between both new producer and new consumer. I don't think its quite what you want, but probably the closest that exists across both clients. There's not much more than that -- when you say "when the connection to the entire broker cluster is lost" that's not really something that we'd expect to happen; you might lose connectivity to some brokers, but even determining that the connection "to the entire broker cluster" is lost is not something you can easily determine (and often times requires long timeouts to determine anyway).
-Ewen On Fri, Jun 17, 2016 at 3:27 AM, Spico Florin <spicoflo...@gmail.com> wrote: > Hello! > I would like to know what are the configurations/properties for the > producer/consumer in order fail fast when the connection to the entire > broker cluster is lost. > For example if we can set up a parameter that when the connection trial > reached a treshold then disconnect and throw an exception. > > I look forward for your answers. > Regards, > Florin > -- Thanks, Ewen