HotStandby --Advice needed

From: chinnaobi <chinnaobi(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: HotStandby --Advice needed
Date: 2012-05-15 07:45:55
Message-ID: 1337067955113-5708740.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chris Angelico 2012-05-15 07:57:00 Re: Uppercase to lowercase trigger?
Previous Message Albe Laurenz 2012-05-15 07:26:12 Re: Cannot find installers for 9.2 Beta