Changes between Version 22 and Version 23 of keepalived


Ignore:
Timestamp:
09/20/22 00:21:48 (2 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • keepalived

    v22 v23  
    126126IP_MASTER="192.168.81.12"
    127127STR_CHECK="ONLINE"
     128DB_NODE="nodedb1"
    128129
    129130#/usr/bin/unison > /dev/null 2>&1
     
    133134if [ $status -eq 0 ]
    134135then
    135    all_result=`/usr/bin/docker exec -i nodedb1 mysql -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;'`
    136137   online=$(echo $all_result | grep "$IP_MASTER" | awk '{ print $12}' )
    137138   # *"$STR_CHECK"*  wildcard * means don't care about prefix or suffix of that $STR_CHECK word.