Plone使用Plone 4.3.1上的Plone.recipe.zeoserver切换到ZRS

Plone使用Plone 4.3.1上的Plone.recipe.zeoserver切换到ZRS,plone,buildout,Plone,Buildout,我正在建立一个基于Zope复制存储(ZRS)的部署。我目前有两台服务器(东部和西部) 西部将是主要的 东部将是第二个 我还没有碰西边的包厢。在east box上,我对构建进行了如下编辑(我必须将plone.recipe.zeoserver固定到1.2.6,因为zrs功能在1.2.6之前不存在): 跑步后 bin/buildout 我尝试启动集群,但实例似乎挂起。调试实例现在为我提供以下输出: 2013-09-11 08:24:00 INFO ZServer HTTP server starte

我正在建立一个基于Zope复制存储(ZRS)的部署。我目前有两台服务器(东部和西部)

西部将是主要的

东部将是第二个

我还没有碰西边的包厢。在east box上,我对构建进行了如下编辑(我必须将plone.recipe.zeoserver固定到1.2.6,因为zrs功能在1.2.6之前不存在):

跑步后

bin/buildout
我尝试启动集群,但实例似乎挂起。调试实例现在为我提供以下输出:

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
2013-09-11 08:24:00信息ZServer HTTP服务器于2013年9月11日星期三08:24:00启动
主机名:localhost
港口:7680
2013-09-11 08:24:02 INFO Products.PloneFormGen gpg_子流程已初始化,使用/usr/bin/gpg
2013-09-11 08:24:02信息死锁调试器未激活,您必须在custom.py中更改activated
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostrage ClientStorage(pid=22802)为存储创建了RW/normal:“1”
2013-09-11 08:24:02 INFO ZEO.cache已创建临时缓存文件“”
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostrage测试连接
2013-09-11 08:24:02信息zrpc连接(C)(127.0.0.1:7600)收到握手“Z3101”
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostrage服务器身份验证协议无
2013-09-11 08:24:02信息zrpc连接(C)(127.0.0.1:7600)收到握手“Z3101”
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostrage测试连接
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostrage服务器身份验证协议无
2013-09-11 08:24:02信息zrpc连接(C)(127.0.0.1:7600)收到握手“Z3101”
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostrage测试连接
2013-09-11 08:24:02 INFO ZEO.ClientStorage zeostrage服务器身份验证协议无
2013-09-11 08:24:07 INFO ZEO.ClientStorage zeostrage测试连接
2013-09-11 08:24:07信息zrpc连接(C)(127.0.0.1:7600)收到握手“Z3101”
2013-09-11 08:24:07 INFO ZEO.ClientStorage zeostrage服务器身份验证协议无
2013-09-11 08:24:07信息zrpc连接(C)(127.0.0.1:7600)收到握手“Z3101”
2013-09-11 08:24:07 INFO ZEO.ClientStorage zeostrage测试连接
2013-09-11 08:24:07 INFO ZEO.ClientStorage zeostrage服务器身份验证协议无
2013-09-11 08:24:07信息zrpc连接(C)(127.0.0.1:7600)收到握手“Z3101”
2013-09-11 08:24:07 INFO ZEO.ClientStorage zeostrage测试连接
2013-09-11 08:24:07 INFO ZEO.ClientStorage zeostrage服务器身份验证协议无
我已经复制了Data.fs,所以它可以在east上使用。 我想知道这是否与主ZR尚未启动有关。 这是我的第一次初始测试,我只想在设置主测试之前看到辅助测试工作


如果我删除zrs设置并重建构建,集群将毫无问题地启动。

zeoserver日志中是否有任何内容

我想这不是您的完整zeoserver配置正确吗?ZRS复制在zeoserver的另一个端口上运行,因此您仍然需要指定zeoserver主机和端口


此外,以只读模式运行复制的服务器并从空数据库启动—启动时不需要同步数据库,zrs将在运行后同步所有数据。

确保还将“east”客户端设置为只读。该选项已添加到版本4.2.12中的plone.recipe.zope2instance中


它是基本ZEO存储定义中的“只读”选项。

我现在配置了主存储和辅助存储。主堆栈的行为类似于普通堆栈(zeo和所有实例都按预期工作),我可以使用netstat之类的网络工具查看它是否正在侦听我定义的端口。次客户端的行为仍如上所述。是否将“east”客户端设置为只读?vangheem补充说,在plone.recipe.zope2instance 4.2.12中,在zrs客户机上将我的实例设置为只读就达到了目的。[instance settings]read-only=我将添加该选项作为答案,以便我们可以将其记录在案。我认为明确显示选项为read-only=on很重要。我在任何地方都没有找到这个文档。我编辑了你的答案以反映这一点。
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