New server state
Further to requests #1023 (closed) & #1024 (closed). Proposal to implement a new state and a mechanism to allow the change of server state via library hooks.
New state "non-active-partner"
HA states:
hot-standby & non-active-partner
hot-standby & down.
lb states:
active & active
partner-down & non-active-partner
partner-down & down
Status change mechanism: force status -> (presume that we are not interested in moving to a state where no server is granting leases (backup?).
Hot standby:
1) from "hot-standby" to "non-active-partner".
-> inform partner to go into "hot-standby" state.
2) from "hot "non-active-partner" to "hot-standby".
-> inform partner to go into "non-active-partner" state.
Load balancing:
1) from "active" to "non-active-partner".
-> force partner into "partner-down" state.
2) from "non-active-partner" to "active".
-> force partner back to active.