<p><strong>Steps</strong></p>
<ul>
<li>I have used two kafka brokers and I have started zookeeper,kafka server and kafka connect services.</li>
<li>I have one source type kafka connector which can be used for getting data from Database.</li>
<li>If i start the connector[connector 1] by using the rest API, then it will hit any one kafka server [Server 1] using load balancer.After that server 1 will store and running the connector.But server 2 does not know the connector [connector 1] which is running in the server 1.</li>
</ul>
<p><strong>Expectation</strong></p>
<ul>
<li><p>So if the kafka server 1 is down, then the another kafka server 2 should be able to run the connector in the failed kafka server 1.</p>
</li>
<li><p>While starting the connector, kafka server should know how many connectors are in running, so that if any one broker failed to do the job then another server will be able to continue the job.</p>
</li>
</ul>
<p><strong>Reality</strong></p>
<ul>
<li>Another Kafka server 2 which is not doing the job as per the requirement.</li>
</ul>
<p>is there any thing to make it by configuration setup with kafka?.</p>
<p>Kindly suggest me some ideas.</p>
<p>Kafka Server 1</p>
<p><a href="https://i.stack.imgur.com/VpIjv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VpIjv.png" alt="enter image description here" /></a></p>
<p>Kafka Server 2</p>
<p><a href="https://i.stack.imgur.com/hLTdd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hLTdd.png" alt="enter image description here" /></a></p>

Rabeesh
<p>It appears that you have started all processes in single pods.</p>
<p>You should run Kafka, Zookeeper, and Connect all as separate services in different pods.</p>
<p>I suggest you refer the Confluent or Strimzi sites to find Kafka Kubernetes Helm Charts / Operators</p>
<hr />
<p>But to answer the question - You could give one or more broker to connect-distributed.properties <code>bootstrap.server</code> value. Then each broker is connected to as part of the Kafka cluster, and will reconnect in the event that one broker is unavailable</p>
<p>&quot;Kakfa servers&quot; (brokers) do not run Connectors</p>
<p>If you want to run a cluster of connect workers, you also need to setup their <code>rest.advertised.listener</code> address so that they can communicate with each other.</p>
