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:
Julien Danjou 2014-11-18 15:39:05 +01:00
parent 2d008d05a6
commit fd368a706b
6 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
from tooz import coordination from tooz import coordination
coordinator = coordination.get_coordinator('kazoo://localhost', b'host-1') coordinator = coordination.get_coordinator('zake://', b'host-1')
coordinator.start() coordinator.start()
coordinator.stop() coordinator.stop()

View File

@ -4,7 +4,7 @@ from tooz import coordination
ALIVE_TIME = 5 ALIVE_TIME = 5
coordinator = coordination.get_coordinator('memcached://localhost', b'host-1') coordinator = coordination.get_coordinator('zake://', b'host-1')
coordinator.start() coordinator.start()
start = time.time() start = time.time()

View File

@ -4,7 +4,7 @@ import six
from tooz import coordination from tooz import coordination
coordinator = coordination.get_coordinator('kazoo://localhost', b'host-1') coordinator = coordination.get_coordinator('zake://', b'host-1')
coordinator.start() coordinator.start()
# Create a group # Create a group

View File

@ -4,7 +4,7 @@ import six
from tooz import coordination from tooz import coordination
coordinator = coordination.get_coordinator('kazoo://localhost', b'host-1') coordinator = coordination.get_coordinator('zake://', b'host-1')
coordinator.start() coordinator.start()
# Create a group # Create a group

View File

@ -6,7 +6,7 @@ import six
from tooz import coordination from tooz import coordination
ALIVE_TIME = 1 ALIVE_TIME = 1
coordinator = coordination.get_coordinator('kazoo://localhost', b'host-1') coordinator = coordination.get_coordinator('zake://', b'host-1')
coordinator.start() coordinator.start()
# Create a group # Create a group

View File

@ -1,6 +1,6 @@
from tooz import coordination from tooz import coordination
coordinator = coordination.get_coordinator('kazoo://localhost', b'host-1') coordinator = coordination.get_coordinator('zake://', b'host-1')
coordinator.start() coordinator.start()
# Create a lock # Create a lock