Failover configuration options reference

Reference of available configuration options for OpsCenter failover.

opscenterd.conf

The location of the opscenterd.conf file depends on the type of installation:
  • Package installations: /etc/opscenter/opscenterd.conf
  • Tarball installations: install_location/conf/opscenterd.conf

Reference of available configuration options in opscenterd.conf for OpsCenter failover.

[failover] heartbeat_period
How often OpsCenter should heartbeat to the backup. Default: 10 seconds.
[failover] heartbeat_reply_period
How often a backup OpsCenter should heartbeat to the primary Opscenter. Default: 300 seconds.
[failover] heartbeat_fail_window
The amount of time required before a lack of heartbeat triggers failover. Default: 60 seconds.
[failover] failover_configuration_directory
The directory where failover specific configuration is stored. This directory should not be mirrored/replicated across OpsCenter installs when configuring OpsCenter to support failover. The default location is /var/lib/opscenter/failover/ for package installations and install_location/opscenterd/failover/ for tarball installations.
[failover] override_primary_redirect_url
If set, overrides the primary OpsCenter URL automatically generated during failover. Example: https://opscenter:80

Example non-default configuration 

The default values for failover configuration can be adjusted for your environment requirements. Open opscenterd.conf for editing and add a [failover] section:

[failover]
heartbeat_period = 20
heartbeat_reply_period = 360
heartbeat_fail_window = 120
failover_configuration_directory = /myrsyncdir/opscenter/failover/
override_primary_redirect_url = https://opscenter:9999
The example increases the default values, sets a custom directory location for failover configuration (package installation), and overrides the primary redirect URL with a non-standard port.

Restart OpsCenter after making configuration changes.