# Stream replication recovery configuration

# Specifies whether to start the server as a standby. In streaming replication,
# this parameter must to be set to on.
standby_mode          = 'on'

# Specifies a connection string which is used for the standby server to connect
# with the primary.
primary_conninfo      = 'host=<%= master_host %> port=<%= master_port %> user=postgres'

# Specifies a trigger file whose presence should cause streaming replication to
# end (i.e., failover)
trigger_file = '/var/lib/postgresql/<%= version %>/trigger'

# Specifies a command to load archive segments from the WAL archive. If
# wal_keep_segments is a high enough number to retain the WAL segments
# required for the standby server, this may not be necessary. But
# a large workload can cause segments to be recycled before the standby
# is fully synchronized, requiring you to start again from a new base backup.
restore_command = '<%= real_restore_command %>'

# Stream replication recovery configuration

# Specifies whether to start the server as a standby. In streaming replication,
# this parameter must to be set to on.
standby_mode          = 'on'

# Specifies a connection string which is used for the standby server to connect
# with the primary.
primary_conninfo      = 'host=<%= master_host %> port=<%= master_port %> user=postgres'

# Specifies a trigger file whose presence should cause streaming replication to
# end (i.e., failover)
trigger_file = '/var/lib/postgresql/<%= version %>/main/trigger'

# Specifies a command to load archive segments from the WAL archive. If
# wal_keep_segments is a high enough number to retain the WAL segments
# required for the standby server, this may not be necessary. But
# a large workload can cause segments to be recycled before the standby
# is fully synchronized, requiring you to start again from a new base backup.
restore_command = '<%= real_restore_command %>'

Put trigger file in the main cluster.
Put trigger file in the main cluster.
