Some parameters can be configured using Gerrit config file.
[plugin "@PLUGIN@"]
bootstrapServers = localhost:9092
All the Apache Kafka properties configuration needs to be defined in gerrit.config using a lower camel-case notation.
Example: bootstrapServers correspond to the Apache Kafka property bootstrap.servers.
See Apache Kafka Producer Config for a full list of available settings and the values allowed.
| name | value |
|---|---|
| acks | all |
| retries | 0 |
| batchSize | 16384 |
| lingerMs | 1 |
| bufferMemory | 33554432 |
| keySerializer | org.apache.kafka.common.serialization.StringSerializer |
| valueSerializer | org.apache.kafka.common.serialization.StringSerializer |
plugin.@PLUGIN@.clientType : Client stack for connecting to Kafka broker: - NATIVE for using the Kafka client to connect to the broker directory - REST for using a simple HTTP client to connect to Confluent REST-API Proxy. NOTE: plugin.@PLUGIN@.restApiUri is mandatory when using a REST client type. Default: NATIVE
plugin.@PLUGIN@.groupId : Kafka consumer group for receiving messages. Default: Gerrit instance-id
plugin.@PLUGIN@.httpWireLog : Enable the HTTP wire protocol logging in error_log for all the communication with the Confluent REST-API Proxy. NOTE: when plugin.@PLUGIN@.restApiUri is unset or set to NATIVE, this setting is ignored. Default: false
plugin.@PLUGIN@.pollingIntervalMs : Polling interval in msec for receiving messages from Kafka topic subscription. Default: 1000
plugin.@PLUGIN@.restApiUri : URL of the Confluent REST-API Proxy for sending/receiving messages through REST-API instead of using the native Kafka client. NOTE: when plugin.@PLUGIN@.restApiUri is unset or set to NATIVE, this setting is ignored. Default: unset
plugin.@PLUGIN@.sendAsync : Send messages to Kafka asynchronously, detaching the calling process from the acknowledge of the message being sent. Default: true