Configuration options can be configured in the Gerrit config file.
[plugin "@PLUGIN@"] server = nats://localhost:4222
The @PLUGIN@ plugin configuration can be defined in gerrit.config.
plugin.@[email protected]
: URL of NATS server, for productive use it is recommended to use a cluster of NATS servers to improve availability and allow zero downtime updates of NATS. Repeat this option for the URL of each NATS server in the NATS cluster. Default: nats://localhost:4222
plugin.@[email protected]
: Name of the NATS JetStream stream all events will be published on, the Gerrit serverId will be appended to ensure the stream name is unique. Example: gerrit-f2f21467-a3db-4bb0-a5d0-1da41c09a6e8
. Default: gerrit
plugin.@[email protected]
: Whether to send stream events to the streamEventsSubject
subject. Default: false
plugin.@[email protected]
: Name of the NATS subject gerrit stream-events will be published on. Default: gerrit_stream_events
plugin.@[email protected]
: Whether to publish events asynchronously to NATS. Default: false
plugin.@[email protected]
: Number of threads used for asynchronous publishing of events. Default: 1
plugin.@[email protected]
: Timeout in milliseconds for graceful shutdown. Default: 30000
plugin.@[email protected]
: The duration in milliseconds that the server will wait for an ack for any individual message once it has been delivered to a consumer. If an ack is not received in time, the message will be redelivered. Default: 30000
plugin.@[email protected]
: Defines the maximum number of messages, without an acknowledgement, that can be outstanding. Once this limit is reached message delivery will be suspended. Default: 1000