使用Plone 4.3.1上的plone.recipe.zeoserver将Plone切换到ZRS [英] Plone Switching to ZRS using plone.recipe.zeoserver on Plone 4.3.1

查看:120
本文介绍了使用Plone 4.3.1上的plone.recipe.zeoserver将Plone切换到ZRS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设置基于Zope复制存储(ZRS)的部署.我目前有两个服务器(东和西)

I'm working on setting up a Zope Replicated Storage (ZRS) based deployment. I currently have two servers (east and west)

西部将是主要

东部将是次要

我还没有触摸西框.在东方盒子上,我按如下方式编辑了布局(我必须将plone.recipe.zeoserver固定为1.2.6,因为zrs功能在版本1.2.6之前不存在)

I haven't touched the west box yet. On the east box I've edited my buildout as follows (I had to pin plone.recipe.zeoserver to 1.2.6 because the zrs features didn't exist before version 1.2.6):

[zeoserver]
recipe = plone.recipe.zeoserver[zrs]
replicate-from = ${hosts:zeoserver-west}:${ports:zeoserver-zrs}          

[versions]
plone.recipe.zeoserver = 1.2.6

运行后

bin/buildout

我尝试启动集群,实例似乎挂起.现在,一个调试实例为我提供了以下输出:

I try to start my cluster and the instances seem to hang. A debugging instance now gives me the following output:

2013-09-11 08:24:00 INFO ZServer HTTP server started at Wed Sep 11 08:24:00 2013
    Hostname: localhost
    Port: 7680
2013-09-11 08:24:02 INFO Products.PloneFormGen gpg_subprocess initialized, using /usr/bin/gpg
2013-09-11 08:24:02 INFO DeadlockDebugger Not activated, you must change ACTIVATED in custom.py
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostorage ClientStorage (pid=22802) created RW/normal for storage: '1'
2013-09-11 08:24:02 INFO ZEO.cache created temporary cache file '<fdopen>'
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostorage Testing connection <ManagedClientConnection ('127.0.0.1', 7600)>
2013-09-11 08:24:02 INFO ZEO.zrpc.Connection(C) (127.0.0.1:7600) received handshake 'Z3101'
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostorage Server authentication protocol None
2013-09-11 08:24:02 INFO ZEO.zrpc.Connection(C) (127.0.0.1:7600) received handshake 'Z3101'
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostorage Testing connection <ManagedClientConnection ('127.0.0.1', 7600)>
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostorage Server authentication protocol None
2013-09-11 08:24:02 INFO ZEO.zrpc.Connection(C) (127.0.0.1:7600) received handshake 'Z3101'
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostorage Testing connection <ManagedClientConnection ('127.0.0.1', 7600)>
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostorage Server authentication protocol None
2013-09-11 08:24:07 INFO ZEO.ClientStorage zeostorage Testing connection <ManagedClientConnection ('127.0.0.1', 7600)>
2013-09-11 08:24:07 INFO ZEO.zrpc.Connection(C) (127.0.0.1:7600) received handshake 'Z3101'
2013-09-11 08:24:07 INFO ZEO.ClientStorage zeostorage Server authentication protocol None
2013-09-11 08:24:07 INFO ZEO.zrpc.Connection(C) (127.0.0.1:7600) received handshake 'Z3101'
2013-09-11 08:24:07 INFO ZEO.ClientStorage zeostorage Testing connection <ManagedClientConnection ('127.0.0.1', 7600)>
2013-09-11 08:24:07 INFO ZEO.ClientStorage zeostorage Server authentication protocol None
2013-09-11 08:24:07 INFO ZEO.zrpc.Connection(C) (127.0.0.1:7600) received handshake 'Z3101'
2013-09-11 08:24:07 INFO ZEO.ClientStorage zeostorage Testing connection <ManagedClientConnection ('127.0.0.1', 7600)>
2013-09-11 08:24:07 INFO ZEO.ClientStorage zeostorage Server authentication protocol None

我已经复制了Data.fs,因此可以在东部使用. 我想知道这是否与主要ZRS尚未启动有关. 这是我的第一个初始测试,我只是想在设置主要对象之前先查看辅助对象的工作情况.

I've copied the Data.fs over so it's available on east. I'm wondering if this has anything to do with the primary ZRS not being up yet. This is my first initial test and I just wanted to see the secondary working before setting up the primary.

如果我删除zrs设置并重建构建,则群集启动将没有问题.

If I removing the zrs settings and rebuild buildout the cluster starts without issue.

推荐答案

请确保还将东部"客户端设置为只读.该选项已在4.2.12版本中添加到plone.recipe.zope2instance.

Make sure that you also set the "east" clients read-only. That option was added to plone.recipe.zope2instance in version 4.2.12.

这是基本ZEO存储设备定义中的只读"选项.

It's the "read-only" option in the definition of a basic ZEO storage.

这篇关于使用Plone 4.3.1上的plone.recipe.zeoserver将Plone切换到ZRS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆