Feature #5520
Improve vip.sh
Status: | Pending | Start date: | 10/31/2017 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Core & System | |||
Target version: | Release 5.6 | |||
Resolution: | Pull request: |
Description
This issue is to include the list of all single-instance service in a HA cluster in the vip.sh. This script needs to start/stop those services on leadership changes.
--- a/share/hooks/raft/vip.sh +++ b/share/hooks/raft/vip.sh @@ -23,12 +23,22 @@ leader) sudo arping -c 1 -A -I $INTERFACE ${IP%%/*} sleep 1 done - oneflow-server start + #--------------------------------------------------------------------------- + # This services MUST run one instance per cluster. Uncomment those you are + # services in your cloud + #--------------------------------------------------------------------------- + #oneflow-server start + #onegate-server start ;; follower) sudo ip address del $IP dev $INTERFACE - oneflow-server stop + #--------------------------------------------------------------------------- + # This services MUST run one instance per cluster. Uncomment those you are + # services in your cloud + #--------------------------------------------------------------------------- + #oneflow-server stop + #onegate-server stop ;; *)
History
#1 Updated by Ruben S. Montero over 3 years ago
Maybe it would be a good idea to rename this script to vip.sh.skel and let admins to copy and customize it