mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 00:26:30 +00:00
Comment out configuration items in sample config file
The configured values are either the defaults, or examples which may not work in a real environment. If this file is being used as a template, the onus is on the user to uncomment and check all desired parameters.
This commit is contained in:
@@ -15,21 +15,21 @@
|
|||||||
# schema (pattern: "repmgr_{cluster}"); while this name will be quoted
|
# schema (pattern: "repmgr_{cluster}"); while this name will be quoted
|
||||||
# to preserve case, we recommend using lower case and avoiding whitespace
|
# to preserve case, we recommend using lower case and avoiding whitespace
|
||||||
# to facilitate easier querying of the repmgr views and tables.
|
# to facilitate easier querying of the repmgr views and tables.
|
||||||
cluster=example_cluster
|
#cluster=example_cluster
|
||||||
|
|
||||||
# Node ID and name
|
# Node ID and name
|
||||||
# (Note: we recommend to avoid naming nodes after their initial
|
# (Note: we recommend to avoid naming nodes after their initial
|
||||||
# replication funcion, as this will cause confusion when e.g.
|
# replication funcion, as this will cause confusion when e.g.
|
||||||
# "standby2" is promoted to primary)
|
# "standby2" is promoted to primary)
|
||||||
node=2 # a unique integer
|
#node=2 # a unique integer
|
||||||
node_name=node2 # an arbitrary (but unique) string; we recommend using
|
#node_name=node2 # an arbitrary (but unique) string; we recommend using
|
||||||
# the server's hostname or another identifier unambiguously
|
# the server's hostname or another identifier unambiguously
|
||||||
# associated with the server to avoid confusion
|
# associated with the server to avoid confusion
|
||||||
|
|
||||||
# Database connection information as a conninfo string
|
# Database connection information as a conninfo string
|
||||||
# This must be accessible to all servers in the cluster; for details see:
|
# This must be accessible to all servers in the cluster; for details see:
|
||||||
# http://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
|
# http://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-CONNSTRING
|
||||||
conninfo='host=192.168.204.104 dbname=repmgr_db user=repmgr_usr'
|
#conninfo='host=192.168.204.104 dbname=repmgr_db user=repmgr_usr'
|
||||||
|
|
||||||
# Optional configuration items
|
# Optional configuration items
|
||||||
# ============================
|
# ============================
|
||||||
@@ -40,13 +40,13 @@ conninfo='host=192.168.204.104 dbname=repmgr_db user=repmgr_usr'
|
|||||||
# When using cascading replication, a standby can connect to another
|
# When using cascading replication, a standby can connect to another
|
||||||
# upstream standby node which is specified by setting 'upstream_node'.
|
# upstream standby node which is specified by setting 'upstream_node'.
|
||||||
# In that case, the upstream node must exist before the new standby
|
# In that case, the upstream node must exist before the new standby
|
||||||
# can be registered. If 'upstream_node' is unset, then the standby
|
# can be registered. If 'upstream_node' is not set, then the standby
|
||||||
# will connect to the primary node.
|
# will connect directly to the primary node.
|
||||||
upstream_node=1
|
#upstream_node=1
|
||||||
|
|
||||||
# use physical replication slots - PostgreSQL 9.4 and later only
|
# use physical replication slots - PostgreSQL 9.4 and later only
|
||||||
# (default: 0)
|
# (default: 0)
|
||||||
use_replication_slots=0
|
#use_replication_slots=0
|
||||||
|
|
||||||
# NOTE: 'max_replication_slots' should be configured for at least the
|
# NOTE: 'max_replication_slots' should be configured for at least the
|
||||||
# number of standbys which will connect to the primary.
|
# number of standbys which will connect to the primary.
|
||||||
@@ -56,15 +56,15 @@ use_replication_slots=0
|
|||||||
|
|
||||||
# Log level: possible values are DEBUG, INFO, NOTICE, WARNING, ERR, ALERT, CRIT or EMERG
|
# Log level: possible values are DEBUG, INFO, NOTICE, WARNING, ERR, ALERT, CRIT or EMERG
|
||||||
# (default: NOTICE)
|
# (default: NOTICE)
|
||||||
loglevel=NOTICE
|
#loglevel=NOTICE
|
||||||
|
|
||||||
# Logging facility: possible values are STDERR or - for Syslog integration - one of LOCAL0, LOCAL1, ..., LOCAL7, USER
|
# Logging facility: possible values are STDERR or - for Syslog integration - one of LOCAL0, LOCAL1, ..., LOCAL7, USER
|
||||||
# (default: STDERR)
|
# (default: STDERR)
|
||||||
logfacility=STDERR
|
#logfacility=STDERR
|
||||||
|
|
||||||
# stderr can be redirected to an arbitrary file:
|
# stderr can be redirected to an arbitrary file:
|
||||||
#
|
#
|
||||||
logfile='/var/log/repmgr/repmgr.log'
|
#logfile='/var/log/repmgr/repmgr.log'
|
||||||
|
|
||||||
# event notifications can be passed to an arbitrary external program
|
# event notifications can be passed to an arbitrary external program
|
||||||
# together with the following parameters:
|
# together with the following parameters:
|
||||||
@@ -78,12 +78,12 @@ logfile='/var/log/repmgr/repmgr.log'
|
|||||||
# the values provided for "%t" and "%d" will probably contain spaces,
|
# the values provided for "%t" and "%d" will probably contain spaces,
|
||||||
# so should be quoted in the provided command configuration, e.g.:
|
# so should be quoted in the provided command configuration, e.g.:
|
||||||
#
|
#
|
||||||
event_notification_command='/path/to/some/script %n %e %s "%t" "%d"'
|
#event_notification_command='/path/to/some/script %n %e %s "%t" "%d"'
|
||||||
|
|
||||||
# By default, all notifications will be passed; the notification types
|
# By default, all notifications will be passed; the notification types
|
||||||
# can be filtered to explicitly named ones:
|
# can be filtered to explicitly named ones:
|
||||||
#
|
#
|
||||||
event_notifications=master_register,standby_register,witness_create
|
#event_notifications=master_register,standby_register,witness_create
|
||||||
|
|
||||||
|
|
||||||
# Environment/command settings
|
# Environment/command settings
|
||||||
@@ -91,17 +91,17 @@ event_notifications=master_register,standby_register,witness_create
|
|||||||
|
|
||||||
# path to PostgreSQL binary directory (location of pg_ctl, pg_basebackup etc.)
|
# path to PostgreSQL binary directory (location of pg_ctl, pg_basebackup etc.)
|
||||||
# (if not provided, defaults to system $PATH)
|
# (if not provided, defaults to system $PATH)
|
||||||
pg_bindir=/usr/bin/
|
#pg_bindir=/usr/bin/
|
||||||
|
|
||||||
# external command options
|
# external command options
|
||||||
|
|
||||||
rsync_options=--archive --checksum --compress --progress --rsh="ssh -o \"StrictHostKeyChecking no\""
|
#rsync_options=--archive --checksum --compress --progress --rsh="ssh -o \"StrictHostKeyChecking no\""
|
||||||
ssh_options=-o "StrictHostKeyChecking no"
|
#ssh_options=-o "StrictHostKeyChecking no"
|
||||||
|
|
||||||
# external command arguments. Values shown are examples.
|
# external command arguments. Values shown are examples.
|
||||||
|
|
||||||
pg_ctl_options='-s'
|
#pg_ctl_options='-s'
|
||||||
pg_basebackup_options='--xlog-method=s'
|
#pg_basebackup_options='--xlog-method=s'
|
||||||
|
|
||||||
|
|
||||||
# Standby clone settings
|
# Standby clone settings
|
||||||
@@ -123,30 +123,30 @@ pg_basebackup_options='--xlog-method=s'
|
|||||||
# Number of seconds to wait for a response from the primary server before
|
# Number of seconds to wait for a response from the primary server before
|
||||||
# deciding it has failed.
|
# deciding it has failed.
|
||||||
|
|
||||||
master_response_timeout=60
|
#master_response_timeout=60
|
||||||
|
|
||||||
# Number of attempts at what interval (in seconds) to try and
|
# Number of attempts at what interval (in seconds) to try and
|
||||||
# connect to a server to establish its status (e.g. master
|
# connect to a server to establish its status (e.g. master
|
||||||
# during failover)
|
# during failover)
|
||||||
reconnect_attempts=6
|
#reconnect_attempts=6
|
||||||
reconnect_interval=10
|
#reconnect_interval=10
|
||||||
|
|
||||||
# Autofailover options
|
# Autofailover options
|
||||||
failover=manual # one of 'automatic', 'manual'
|
#failover=manual # one of 'automatic', 'manual'
|
||||||
# (default: manual)
|
# (default: manual)
|
||||||
priority=100 # a value of zero or less prevents the node being promoted to primary
|
#priority=100 # a value of zero or less prevents the node being promoted to primary
|
||||||
# (default: 100)
|
# (default: 100)
|
||||||
promote_command='repmgr standby promote -f /path/to/repmgr.conf'
|
#promote_command='repmgr standby promote -f /path/to/repmgr.conf'
|
||||||
follow_command='repmgr standby follow -f /path/to/repmgr.conf -W'
|
#follow_command='repmgr standby follow -f /path/to/repmgr.conf -W'
|
||||||
|
|
||||||
# monitoring interval in seconds; default is 2
|
# monitoring interval in seconds; default is 2
|
||||||
monitor_interval_secs=2
|
#monitor_interval_secs=2
|
||||||
|
|
||||||
# change wait time for primary; before we bail out and exit when the primary
|
# change wait time for primary; before we bail out and exit when the primary
|
||||||
# disappears, we wait 'reconnect_attempts' * 'retry_promote_interval_secs'
|
# disappears, we wait 'reconnect_attempts' * 'retry_promote_interval_secs'
|
||||||
# seconds; by default this would be half an hour, as 'retry_promote_interval_secs'
|
# seconds; by default this would be half an hour, as 'retry_promote_interval_secs'
|
||||||
# default value is 300)
|
# default value is 300)
|
||||||
retry_promote_interval_secs=300
|
#retry_promote_interval_secs=300
|
||||||
|
|
||||||
# Number of seconds after which the witness server resyncs the repl_nodes table
|
# Number of seconds after which the witness server resyncs the repl_nodes table
|
||||||
witness_repl_nodes_sync_interval_secs=15
|
#witness_repl_nodes_sync_interval_secs=15
|
||||||
|
|||||||
Reference in New Issue
Block a user