glyn [Fri, 28 Nov 2014 16:10:35 +0000 (16:10 +0000)]
Changes:
- In autofailover mode lag/event times now read directly from sl_event/sl_confirm as reading sl_status on a subscriber can be misleading.
- Tried to clean up some of the printed messages whilst being ashamed at the lack of comments and unnecessary complexity. Hindsight is always 20/20.
glyn [Sun, 12 Oct 2014 20:11:22 +0000 (21:11 +0100)]
* Did some brief testing with Slony 1.2, 2.0 and 2.1 and appears to all work as expected.
* Added some extra logic to try to better handle multiple node failover in Slony versions pre 2.2. Seems to work well for Slony 1.2, however issues in 2.0 and 2.1 limit usefulness.
* Added some extra sanity checks to autofailover, with new parameters autofailover_perspective_sleep_time, autofailover_majority_only, autofailover_is_quorum. Still think logic used to pick best node to failover to is flawed.