Hello, I've read this about 15 times but I just can't wrap my mind around the scripts.. I am testing three nodes in a cluster and I thought centralized tracking would have been part of it, but learned it wasn't.
Do I put a duplicate copy of the script on all servers, or the master only?? or modify each script to point to the other two?
I think i need to rename
pmg-log-tracker to
pmg-log-tracker-default on all systems.
the create the script on each node like:
master - (in /usr/bin/pmg-log-tracker)
Code:
/usr/bin/pmg-log-tracker-default "$@" | head -n -1
ssh root@serverNODE_1 /usr/bin/pmg-log-tracker-default "$@" | sed '/^#/ d'
ssh root@serverNODE_2 /usr/bin/pmg-log-tracker-default "$@" | sed '/^#/ d'
node_1 - (in /usr/bin/pmg-log-tracker)
Code:
/usr/bin/pmg-log-tracker-default "$@" | head -n -1
ssh root@serverMASTER /usr/bin/pmg-log-tracker-default "$@" | sed '/^#/ d'
ssh root@serverNODE_2 /usr/bin/pmg-log-tracker-default "$@" | sed '/^#/ d'
node_2 - (in /usr/bin/pmg-log-tracker)
Code:
/usr/bin/pmg-log-tracker-default "$@" | head -n -1
ssh root@serverMASTER /usr/bin/pmg-log-tracker-default "$@" | sed '/^#/ d'
ssh root@serverNODE_1 /usr/bin/pmg-log-tracker-default "$@" | sed '/^#/ d'
If I add an additional node later, I just add NODE_3 to each of the original, and on NODE_3
Code:
/usr/bin/pmg-log-tracker-default "$@" | head -n -1
ssh root@serverMASTER /usr/bin/pmg-log-tracker-default "$@" | sed '/^#/ d'
ssh root@serverNODE_1 /usr/bin/pmg-log-tracker-default "$@" | sed '/^#/ d'
ssh root@serverNODE_2 /usr/bin/pmg-log-tracker-default "$@" | sed '/^#/ d'
is that correct?
Thanks!