3.4. Optional configuration file settings

config_directory (string)

If LightDB configuration files are located outside the data directory, specify the directory where the main lightdb.conf file is located.

This enables explicit provision of an external configuration file directory, which if set will be passed to lt_ctl as the -D parameter. Otherwise lt_ctl will default to using the data directory, which will cause some operations to fail if the configuration files are not present there.

Note

This is implemented primarily for feature completeness and for development/testing purposes. Users who have installed ltcluster from a package should not rely on to stop/start/restart LightDB, instead they should set the appropriate service_..._command for their operating system. For more details see service command settings.

replication_user (string)

LightDB user to make replication connections with. If not set defaults, to the user defined in conninfo.

replication_type (string)

Must be physical (the default).

location (string)

An arbitrary string defining the location of the node; this is used during failover to check visibility of the current primary node.

For more details see Handling network splits with ltclusterd.

use_replication_slots (boolean)

Whether to use physical replication slots.

Note

When using replication slots, max_replication_slots should be configured for at least the number of standbys which will connect to the primary.

ssh_options (string)

Options to append to the ssh command when executed by ltcluster.

We recommend adding -q to suppress any superfluous SSH chatter such as login banners, and also an explicit ConnectTimeout value, e.g.:

ssh_options='-q -o ConnectTimeout=10'