[Checkins] SVN: Sandbox/J1m/resumelb/ Updated play lb and worker to use zk
Jim Fulton
jim at zope.com
Sun Feb 26 17:11:42 UTC 2012
Log message for revision 124479:
Updated play lb and worker to use zk
Changed:
U Sandbox/J1m/resumelb/buildout.cfg
A Sandbox/J1m/resumelb/tree.text
-=-
Modified: Sandbox/J1m/resumelb/buildout.cfg
===================================================================
--- Sandbox/J1m/resumelb/buildout.cfg 2012-02-26 17:11:39 UTC (rev 124478)
+++ Sandbox/J1m/resumelb/buildout.cfg 2012-02-26 17:11:41 UTC (rev 124479)
@@ -2,6 +2,12 @@
develop = .
parts = py ctl
+[zookeeper]
+recipe = zc.zookeeperrecipes:devtree
+effective-path = ${buildout:directory}
+import-file = tree.text
+helper-scripts = zk
+
[ctl]
recipe = zc.recipe.rhrc
dest = ${buildout:bin-directory}
@@ -23,9 +29,8 @@
[lb]
recipe = zc.zdaemonrecipe
-host = 127.0.0.1
-worker_addr = ${:host}:8000
-program = ${buildout:bin-directory}/resumelb 127.0.0.1:8080 ${:worker_addr}
+path = ${zookeeper:effective-path}/lb
+program = ${buildout:bin-directory}/zkresumelb ${zookeeper:zookeeper} ${:path}
[worker.ini]
recipe = zc.recipe.deployment:configuration
@@ -35,8 +40,9 @@
bobo_resources = zc.resumelb.tests
[server:main]
- use = egg:zc.resumelb
- address = ${lb:worker_addr}
+ use = egg:zc.resumelb#zk
+ zookeeper = ${zookeeper:zookeeper}
+ path = ${lb:path}/workers
threads = 1
tracelog = tracelog
Added: Sandbox/J1m/resumelb/tree.text
===================================================================
--- Sandbox/J1m/resumelb/tree.text (rev 0)
+++ Sandbox/J1m/resumelb/tree.text 2012-02-26 17:11:41 UTC (rev 124479)
@@ -0,0 +1,4 @@
+/lb
+ /providers
+ /workers
+ /providers
Property changes on: Sandbox/J1m/resumelb/tree.text
___________________________________________________________________
Added: svn:eol-style
+ native
More information about the checkins
mailing list