On Wed, 25 Apr 2018 16:04:58 +0900,
knet solutions wrote:
> 
> [1  <multipart/alternative (7bit)>]
> [1.1  <text/plain; UTF-8 (7bit)>]
> Take over this thread to discuss the same.
> 
> Zookeeper(kazoo library) leader election is kind of block call.
> 
> we have to pass a function to  run as a leader.
> 
> # only leader will execute the fname function.  all other slaves will be
> blocked here.
> self.election.run(fname)
> 
> def fname()
>     # some routines.
> 
> 
> 
> I guess, this kind of behavior may not fit in to Master/Slave
> implementation in  RYU Controller .
> 
> Any suggestions?

Hi,

tooz is a OpenStack wrapper library for etcd/zookeeper/whatsoever.
I'm not quite sure about details but following links may help you?

https://docs.openstack.org/tooz/latest/user/tutorial/leader_election.html
https://git.openstack.org/cgit/openstack/tooz/tree/tooz/drivers/zookeeper.py

--
IWAMOTO Toshihiro

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to