gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 02:23:01 25 4
gpt4 key购买 nike

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

西部将是主要

东部将是次要的

我还没碰过西边的盒子。在东边的盒子上,我编辑了我的构建,如下(我必须将 plone.recipe.zeoserver 固定到 1.2.6,因为 zrs 功能在版本 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

我尝试启动集群,但实例似乎挂起。调试实例现在给出以下输出:

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 尚未启动有关。这是我的第一次初始测试,我只是想在设置主设备之前查看辅助设备的工作情况。

如果我删除 zrs 设置并重建构建,集群启动时不会出现问题。

最佳答案

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

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

关于Plone 在 Plone 4.3.1 上使用 plone.recipe.zeoserver 切换到 ZRS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18742513/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com