doc: switch examples to Zake
This avoids having Zookeeper or memcached running, which might not be the case. Change-Id: Ib66eb8348aece447ee2c8de084c4ac807b552907
This commit is contained in:
parent
2d008d05a6
commit
fd368a706b
@ -1,5 +1,5 @@
|
||||
from tooz import coordination
|
||||
|
||||
coordinator = coordination.get_coordinator('kazoo://localhost', b'host-1')
|
||||
coordinator = coordination.get_coordinator('zake://', b'host-1')
|
||||
coordinator.start()
|
||||
coordinator.stop()
|
||||
|
@ -4,7 +4,7 @@ from tooz import coordination
|
||||
|
||||
ALIVE_TIME = 5
|
||||
|
||||
coordinator = coordination.get_coordinator('memcached://localhost', b'host-1')
|
||||
coordinator = coordination.get_coordinator('zake://', b'host-1')
|
||||
coordinator.start()
|
||||
|
||||
start = time.time()
|
||||
|
@ -4,7 +4,7 @@ import six
|
||||
|
||||
from tooz import coordination
|
||||
|
||||
coordinator = coordination.get_coordinator('kazoo://localhost', b'host-1')
|
||||
coordinator = coordination.get_coordinator('zake://', b'host-1')
|
||||
coordinator.start()
|
||||
|
||||
# Create a group
|
||||
|
@ -4,7 +4,7 @@ import six
|
||||
|
||||
from tooz import coordination
|
||||
|
||||
coordinator = coordination.get_coordinator('kazoo://localhost', b'host-1')
|
||||
coordinator = coordination.get_coordinator('zake://', b'host-1')
|
||||
coordinator.start()
|
||||
|
||||
# Create a group
|
||||
|
@ -6,7 +6,7 @@ import six
|
||||
from tooz import coordination
|
||||
|
||||
ALIVE_TIME = 1
|
||||
coordinator = coordination.get_coordinator('kazoo://localhost', b'host-1')
|
||||
coordinator = coordination.get_coordinator('zake://', b'host-1')
|
||||
coordinator.start()
|
||||
|
||||
# Create a group
|
||||
|
@ -1,6 +1,6 @@
|
||||
from tooz import coordination
|
||||
|
||||
coordinator = coordination.get_coordinator('kazoo://localhost', b'host-1')
|
||||
coordinator = coordination.get_coordinator('zake://', b'host-1')
|
||||
coordinator.start()
|
||||
|
||||
# Create a lock
|
||||
|
Loading…
Reference in New Issue
Block a user