Oops; previously sent from the wrong eMail address, so I don't know if
this actually got sent: Two days ago I upgraded five DB boxes (for load balancing) from 8.3.0 to 9.0.1 in order to use replication. The replication configuration went reasonably well, and now all the four "hot_standby" servers are (streaming) replicating just fine from the primary DB server. If the primary fails and I "touch" the trigger file on one of the standby boxes, that goes into primary mode just as it should. Of course, I have to externally redirect updates to the new server. My question is, how do I configure the other three (still) hot_standby boxes to now use the new primary? Clearly I can change the "recovery.conf" file on each standby box, but that seems like an unnecessary nuisance. What I would like to do is put multiple "primary_conninfo" lines into the "recovery.conf" file, and have each standby server dynamically pick the one that is the primary. Further, when the primary goes down, the standby should re-choose the new primary using the multiple "primary_conninfo" lines. Such a feature (if it does not already exist) would really be useful !!! Question: While the documentation described how to switch a standby server from hot_standby to primary, I didn't see how to switch it back to hot_standby. Is the following the best (or only) method ???
Ideally, this could be done seamlessly without the (small) possibility of lost updates, but I don't see how to do that. Fortunately, it's not a big issue in my case. Here's what I think would be ideal from an update integrity standpoint:
Sincerely, Dean -- Mail to my list address MUST be sent via the mailing list. All other mail to my list address will bounce. |