From fd368a706b661607052db9bdfa47824b5d1ec196 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 18 Nov 2014 15:39:05 +0100 Subject: [PATCH] doc: switch examples to Zake This avoids having Zookeeper or memcached running, which might not be the case. Change-Id: Ib66eb8348aece447ee2c8de084c4ac807b552907 --- examples/coordinator.py | 2 +- examples/coordinator_heartbeat.py | 2 +- examples/group_membership.py | 2 +- examples/group_membership_watch.py | 2 +- examples/leader_election.py | 2 +- examples/lock.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/coordinator.py b/examples/coordinator.py index 6d5cf031..f0efef4e 100644 --- a/examples/coordinator.py +++ b/examples/coordinator.py @@ -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() diff --git a/examples/coordinator_heartbeat.py b/examples/coordinator_heartbeat.py index 8b0659fd..ddbea137 100644 --- a/examples/coordinator_heartbeat.py +++ b/examples/coordinator_heartbeat.py @@ -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() diff --git a/examples/group_membership.py b/examples/group_membership.py index 58adb2dd..7b85e6ce 100644 --- a/examples/group_membership.py +++ b/examples/group_membership.py @@ -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 diff --git a/examples/group_membership_watch.py b/examples/group_membership_watch.py index 28b786f2..51836c20 100644 --- a/examples/group_membership_watch.py +++ b/examples/group_membership_watch.py @@ -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 diff --git a/examples/leader_election.py b/examples/leader_election.py index b27129e0..661c3142 100644 --- a/examples/leader_election.py +++ b/examples/leader_election.py @@ -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 diff --git a/examples/lock.py b/examples/lock.py index c0b722db..42a1d036 100644 --- a/examples/lock.py +++ b/examples/lock.py @@ -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