Enhance watchdog_setup script.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 29 May 2021 08:32:38 +0000 (17:32 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sat, 29 May 2021 08:45:02 +0000 (17:45 +0900)
commitc7f9e7ccfd770942fdaa081fdc93ed4a793d6536
tree26cbab3eee73d3dbeb0ed455514364967bce000b
parent1a7aa30c586b9a6c8bae850c745bff81475eb1e5
Enhance watchdog_setup script.

shutdownall script generated by watchdog_setup shutdowns in the node
number order i.e.: 0, 1, 2...  This causes PostgreSQL backend shutdown
when pgpool0 node went down and node 1, 2... trigger failover event,
which is not necessary in the whole shutdown sequence.  Shutting down
in the reverse order (...2, 1, 0) should prevent this and shorten the
whole shutdown sequence.

Also this should prevent occasional 018.detach_primary and
028.watchdog_enable_consensus_with_half_votes test timeout (they use
watchdog_setup).
src/test/watchdog_setup.in