doveadm-cluster-health-check(1) - Health check of the local Palomar cluster process
SYNOPSIS
doveadm [GLOBAL OPTIONS] cluster health-check
DESCRIPTION
doveadm cluster health-check asks the local cluster process, over its admin socket, how it sees itself. The reply is built entirely from the process memory: no GeoDB (Cassandra) queries are made, so the command is cheap and safe to run frequently, e.g. from monitoring. The Cluster Controller uses it to probe backend reachability.
The command works on both proxies and backends. It fails with exit code 75 (EX_TEMPFAIL) when the cluster process can't be reached, and with exit code 76 (EX_PROTOCOL) when that process answers something unexpected. Nothing else makes it fail.
GLOBAL OPTIONS
Global doveadm(1) options:
- -D
- Enables verbosity and debug messages.
- -O
- Do not read any config file, just use defaults. The
dovecot_storage_versiondefaults to the latest version, but can be overridden with -o. - -k
- Preserve entire environment for doveadm, not just
import_environment. - -v
- Enables verbosity, including progress counter.
- -i instance-name
If using multiple Dovecot instances, choose the config file based on this instance name.
See
instance_namefor more information.- -c config-file
- Read configuration from the given config-file. By default it first reads config socket, and then falls back to /etc/dovecot/dovecot.conf. You can also point this to config socket of some instance running compatible version.
- -o setting=value
- Overrides the configuration setting from /etc/dovecot/dovecot.conf and from the userdb with the given value. In order to override multiple settings, the -o option may be specified multiple times.
- -f formatter
Specifies the formatter for formatting the output. Supported formatters are:
- flow
- prints each line with key=value pairs.
- json
- prints a JSON array of JSON objects.
- pager
- prints each key: value pair on its own line and separates records with form feed character (^L).
- tab
- prints a table header followed by tab separated value lines.
- table
- prints a table header followed by adjusted value lines.
OUTPUT
One row with the following fields:
- site_id: UUID of the local site
- site_name: Name of the local site (
cluster_local_site) - backend_id: UUID of the local backend. Empty on a proxy.
- backend_host: Host name of the local backend (
cluster_backend_name). Empty on a proxy. - backend_status: Status of the local backend as the cluster process sees it. See
doveadm-cluster-backend(1). Empty on a proxy. - geodb_refresh_age_secs: Seconds since the last successful GeoDB refresh. The cluster process reads GeoDB at startup and doesn't start if that fails, so this field always has a value.
- geodb_refresh_error: Error of the last GeoDB refresh. Empty if the last refresh succeeded.
REPORTING BUGS
Report bugs, including doveconf -n output, to the Dovecot Mailing List dovecot@dovecot.org. Information about reporting bugs is available at: https://dovecot.org/bugreport.html
SEE ALSO
doveadm-cluster(1), doveadm-cluster-backend(1), doveadm-cluster-geodb(1)