plone - How to make varnish round-robin zeo clients -
i use plone.recipe.varnisin buildout configure varnish round-robin between 2 zeo clients. in buildout.cfg have tried:
[varnish-build] recipe = zc.recipe.cmmi url = http://downloads.sourceforge.net/project/varnish/varnish/2.1.3/varnish-2.1.3.tar.gz [varnish-instance] recipe = plone.recipe.varnish daemon = ${buildout:directory}/parts/varnish-build/sbin/varnishd bind = 127.0.0.1:8000 balancer = round-robin backends = client1:127.0.0.1:8080 client2:127.0.0.1:8081 cache-size = 1g
and
[varnish-build] recipe = zc.recipe.cmmi url = http://downloads.sourceforge.net/project/varnish/varnish/2.1.3/varnish-2.1.3.tar.gz [varnish-instance] recipe = plone.recipe.varnish daemon = ${buildout:directory}/parts/varnish-build/sbin/varnishd bind = 127.0.0.1:8000 balancer = round-robin backends = cluster:127.0.0.1:8080 cluster:127.0.0.1:8081 cache-size = 1g
neither work, both give me "error 404 unknown virtual host". can manually edit varnish.vcl to
director cluster round-robin { { .backend = { .host = "127.0.0.1"; .port = "8080"; } } { .backend = { .host = "127.0.0.1"; .port = "8081"; } } }
and works way wwant, except in buildout.
i using unified installer plone 4.0.5, ubuntu 10.0.4 (64 bit), varnish 2.1.3. ideas? thanks!
see http://pypi.python.org/pypi/plone.recipe.varnish information load balancing.
you can use custom varnish.vcl file , specify 'config' option. tend use collective.recipe.template output vcl file, since need custom configuration anyway.
Comments
Post a Comment