(PECL rdkafka >= 0.9.1)
RdKafka::addBrokers — Add brokers
$broker_list) : integer
Adds one or more brokers to the kafka handle's list of initial boostrap brokers.
Additional brokers will be discovered automatically as soon as rdkafka connects to a broker by querying the broker metadata.
If a broker name resolves to multiple addresses (and possibly address families) all will be used for connection attempts in round-robin fashion.
Comma-separated list of brokers in the format:
Each broker is in either the host or URL based format:
<proto> is either
The two formats can be mixed but ultimately the value of the
security.protocol config property decides what brokers are allowed.
Brokers may also be defined with the
bootstrap.serversconfiguration property (preferred method).
Returns the number of brokers successfully added.
Example #1 RdKafka::addBrokers() example