We would like to build a system of two Postgresql 8.4 servers, with pgpool 2 in front that will make all writes go to both systems. In the event of a failure on one of the nodes, it will degrade and pgpool will direct all writes at the remaining node.
From there we can manually re-sync everything and bring it all back up.
Im currently doing some testing to this effect, and noticing some interesting things.
My script has a simple loop that inserts rows in the db. When I shutdown the network interface on one server, the script pauses, pgpool waits for a reply from the down server, but doesnt degrade it, until somebody else tries to connect. Once somebody else create a new connection it will then return an error, and degrade the server. Then if I run the script again it will then direct the writes to the single remaining server.
This seems like a little too much activity needed to degrade a server. Am I missing something? is this normal?
Cheers
Mark