wsrep variable to reject queries

Bug #1179805 reported by Raghavendra D Prabhu on 2013-05-14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona XtraDB Cluster moved to
Status tracked in 5.6
Fix Released
Raghavendra D Prabhu
Fix Released

Bug Description

Similar to wsrep_sst_donor_rejects_queries, it would be useful to have another variable, setting which should reject queries for that node.

This can be useful if someone wants to manually run maintenance on the node like mysqldumps and don't want to tinker with load balancer etc.

Related discussion here

Alex Yurchenko (ayurchen) wrote :

Raghavendra, how about read-only? Doesn't that fit the bill?

Ovais Tariq (ovais-tariq) wrote :

But then if the node rejects queries then how is mysqldump going to run?

Ovais Tariq (ovais-tariq) wrote :

I was also thinking about a use-case where I can do maintenance on the node such that the maintenance work does not affect other nodes in the cluster. For example i could be doing a backup on the node using xtrabackup and that can consume a lot of IO and thats going to affect the whole cluster. There can be other cases, for example running mysqldump can also cause issues that can affect other nodes because if one node can't keep up its going to affect other nodes.

Alex Yurchenko (ayurchen) wrote :

Ovais, so ideally there should be a command to desync the node from the cluster. However it is different from _rejecting_ queries, which is the topic of this ticket (which I think is Not A Good Idea).

Yes, thats right. While #2 would be interesting to have, the
issue here is from load-balancer's/applications's perspective.

Changed in percona-xtradb-cluster:
milestone: none → 5.5.31-25
assignee: nobody → Raghavendra D Prabhu (raghavendra-prabhu)
Changed in percona-xtradb-cluster:
status: New → Fix Committed
Jervin R (revin) wrote :


So what was the fix that was committed here? :-)

Jervin R (revin) wrote :

Ok found it,

So how would this affect the node participation in the cluster?

Changed in percona-xtradb-cluster:
status: Fix Committed → Fix Released
Nirbhay Choubey (nirbhay) wrote :

The documentation of wsrep_reject_queries says "This can be useful if someone wants to manually run maintenance on the node like mysqldump without need to change the settings on the load balancer". But I see that with this variable set mysqldump won't work at all (for obvious reasons?). What are the other use cases?


You are right in the mysqldump etc. cannot be run there. The reason for addition
of this changed from orginal description (and documentation needs to be updated
for it), it was, as I remember, was added for upgrades for cases where you needed node up (disabling queries) without disabling the provider, (though read-only suffices for that now).

Percona now uses JIRA for bug reports so this bug report is migrated to:

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers