wsrep variable to reject queries

Bug #1179805 reported by Raghavendra D Prabhu
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Status tracked in 5.6
5.5
Fix Released
Undecided
Raghavendra D Prabhu
5.6
Fix Released
Undecided
Unassigned

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 http://www.mysqlperformanceblog.com/2013/05/02/galera-flow-control-in-percona-xtradb-cluster-for-mysql/#comment-1736303

Revision history for this message
Alex Yurchenko (ayurchen) wrote :

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

Revision history for this message
Ovais Tariq (ovais-tariq) wrote :

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

Revision history for this message
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.

Revision history for this message
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).

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

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
Revision history for this message
Jervin R (revin) wrote :

Raghu,

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

Revision history for this message
Jervin R (revin) wrote :

Ok found it, http://bazaar.launchpad.net/~raghavendra-prabhu/percona-xtradb-cluster/pxc-1179805/revision/442

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

Changed in percona-xtradb-cluster:
status: Fix Committed → Fix Released
Revision history for this message
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?

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

@Nirbhay,

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).

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1347

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.