<div dir="ltr">Hi,
<div><br></div><div>I was just wonder how people do there OS updates as it seems like it could be quiet a time consuming manual process.</div><div><br></div><div>I have a basic master/salve replication with auto failover and online recovery which is great for dealing with issues that shouldn&#39;t happen often eg server dying, but it seems to add some major over head into doing basic things like OS updates. </div>
<div><br></div><div>For example if I was to do OS updates (security patches) on all the servers( only 2 )  I would have to do the following:</div><div>1) stop postgres on server 1 assume this was primary and pgpool does auto-failover to the standby<br>
</div><div>2) apply updates</div><div>3) start postgres up</div><div>4) pgpool now sees the node but it requires online recovery to turn it into a slave and catchup on replication</div><div>5) now we stop postgres server 1 with does auto-failover back to server 1</div>
<div>6) apply updates</div><div>7) start postgres back up</div><div>8) pgpool now has to do online recovery again.</div><div><br></div><div>preferably during step 4 I would like to automatically promote the server slave and catchup by reading the wal segments this is assume the node has been down for less then x minutes, this would allow reliance on the failover script for when I did updates which could be completely automated.</div>
<div><br></div><div>Is there some way of doing this eg pgpool see the server is back and rans a script or does someone have a better solution :).</div><div><br></div><div>Thanks</div><div><br></div><div><br></div></div>