Thanks to visit codestin.com
Credit goes to github.com

Skip to content

shell run in backgroup to keep gtm master of postgres-xl alive

Notifications You must be signed in to change notification settings

PupilDamon/postgres-xl-gtmHA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

postgres-xl-gtmHA

shell run in backgroup to keep gtm master of postgres-xl alive

run on gtm master and gtm slave
    # gcc -O3 -Wall -Wextra -Werror -g -o port_probe ./port_probe.c
    # chmod 555 port_probe
    # mv port_probe /usr/local/bin
    //test port_probe:
    # port_probe $node_ip $port
    # echo "su - postgres -c /home/postgres/keep_gtm_alive.sh &" >> /etc/rc.local
    # chmod +x /etc/rc.d/rc.local
    # init 6

after the machine reboot, the script will run in backgroup to keep gtm master of postgres-xl alive if the gtm slave is ok.

About

shell run in backgroup to keep gtm master of postgres-xl alive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published