The @PLUGIN@ plugin registers the pull-replication-outstanding-tasks
healthcheck. This check will mark a gerrit instance as healthy only when the node has caught up with all the outstanding pull-replication tasks. The goal is to mark the node as healthy when it is ready to receive write traffic. “Caught up” means:
See Healthcheck based on replication tasks for more details.
The configuration of the health check is split across two files.
healthcheck
plugin. These are set in the healthcheck
plugin's config file.The health check can be configured as follows:
healthcheck.@PLUGIN@-outstanding-tasks.projects
: The repo(s) that the health check will track outstanding replication tasks against. Multiple entries are supported.healthcheck.@PLUGIN@-outstanding-tasks.periodOfTime
: The time for which the check needs to be successful, in order for the instance to be marked healthy. If the time unit is omitted it defaults to seconds. Values should use common unit suffixes to express their setting:healthcheck
plugin is not installed, then the check registration is skipped during load of the pull-replication plugin.healthcheck
plugin, renaming/removing the healthcheck
jar file is not supported during runtime. Doing so can lead to unpredictable behaviour of your gerrit instance.