Changes between Version 22 and Version 23 of keepalived
- Timestamp:
- 09/20/22 00:21:48 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
keepalived
v22 v23 126 126 IP_MASTER="192.168.81.12" 127 127 STR_CHECK="ONLINE" 128 DB_NODE="nodedb1" 128 129 129 130 #/usr/bin/unison > /dev/null 2>&1 … … 133 134 if [ $status -eq 0 ] 134 135 then 135 all_result=`/usr/bin/docker exec -i nodedb1mysql -uroot -pmypass -e 'SELECT * FROM performance_schema.replication_group_members;'`136 all_result=`/usr/bin/docker exec -i $DB_NODE mysql -uroot -pmypass -e 'SELECT * FROM performance_schema.replication_group_members;'` 136 137 online=$(echo $all_result | grep "$IP_MASTER" | awk '{ print $12}' ) 137 138 # *"$STR_CHECK"* wildcard * means don't care about prefix or suffix of that $STR_CHECK word.