add leader election support for the mysql driver

Bug #1506108 reported by Jordan Pittier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tooz
Incomplete
Wishlist
Unassigned

Bug Description

This is not a bug report but more a TODO item.

Based on this blog post http://code.openark.org/blog/mysql/leader-election-using-mysql it should be possible to implement leader election on top of MySQL. It only makes sense in the case of clustered mysql (i.e galera).

I might give it a try in a couple of weeks.

Revision history for this message
Julien Danjou (jdanjou) wrote :

In most drivers we do that by running a race of "who is going to acquire the lock first" and try to grab it from time to time. This should be pretty easy to do with the current MySQL lock support we have in tooz.

Changed in python-tooz:
status: New → Triaged
importance: Undecided → Wishlist
stgleb (gstepanov)
Changed in python-tooz:
assignee: nobody → stgleb (gstepanov)
status: Triaged → In Progress
stgleb (gstepanov)
Changed in python-tooz:
assignee: stgleb (gstepanov) → nobody
Changed in python-tooz:
status: In Progress → New
Revision history for this message
Ben Nemec (bnemec) wrote :

This has been open for a long time. Was it ever done?

Changed in python-tooz:
status: New → Incomplete
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.