HotStandby --Advice needed - Mailing list pgsql-general

From chinnaobi
Subject HotStandby --Advice needed
Date
Msg-id 1337067955113-5708740.post@n5.nabble.com
Whole thread Raw
Responses Re: HotStandby --Advice needed
List pgsql-general
Configured server1 to be primary archiving on and server2 as standby with
base backup(only first time) to replicate from primary. If Primary(server1)
is down standby(server2) is configured as primary and starts archiving to
the same WAL archive.

If the previous primary(Server1) comes up it will be configured as standby
and one time recovery is done using restore_command from WAL archive (This
is done to speed up streaming replication if there is huge gap).

*This switching of roles continues... Is there any problem with this
procedure ?? *

Primary server postgresql conf settings:

max_wal_senders = 5
wal_level = hot_standby
archive_mode = on
archive_command = 'copy %p $DBstreamshare\\%f'
wal_keep_segments = 32
replication_timeout = 0

Standby server postgresql conf settings:
max_standby_streaming_delay = 30s
hot_standby = on
standby recovery.conf settings:
standby_mode = 'on'
restore_command = 'copy $DBstreamshare\\%f %p'
primary_conninfo = 'host=$Primaryserver port=5432 user=postgres'



--
View this message in context: http://postgresql.1045698.n5.nabble.com/HotStandby-Advice-needed-tp5708740.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: Cannot find installers for 9.2 Beta
Next
From: Chris Angelico
Date:
Subject: Re: Uppercase to lowercase trigger?