Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glb should understand galera group communication and exclude node #31

Open
shinguz opened this issue May 4, 2021 · 2 comments
Open
Assignees

Comments

@shinguz
Copy link

shinguz commented May 4, 2021

glb should understand galera group communication protocol and exclude node if it is not in state synced (donor/desynced)

@ayurchen
Copy link
Member

Hi Oli, sorry I missed this ticket. There is an option for glbd to run external script that checks the state of a destination (glbd is a generic TCP router, so it does not know what sort if destination is there):

./glbd -w exec:"mysql.sh -d 2 -utest -ptestpass" -t 2 3306 192.168.0.1 192.168.0.2

so here you have -w (--watchdog) option with an argument exec:"mysql.sh -d 2 -utest -ptestpass" which means that it will execute external script with certain options. There is a sample mysql.sh script that should work for most users in /usr/share/doc/glbd/examples/mysql.sh

This can be configured in /etc/sysconfig/glbd//etc/default/glbd like:

OTHER_OPTIONS="-w exec:'/path/to/mysql.sh -d 2 -utest -ptestpass'"

@ayurchen ayurchen self-assigned this Jul 17, 2023
@srikanthjeeva
Copy link

srikanthjeeva commented Jul 19, 2023

hi @ayurchen, its better that Galera Load balancer has the capability to understand current cluster and exclude the node that is not part of cluster.
We had this issue last week in production, the node was not part of cluster (mysql was running but due to network issue it went away from cluster) but still glb was sending requests to this node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants