具有多个zeo客户端的Zeo服务器日志输出

时间:2018-03-30 15:36:52

标签: plone zope

我们使用zeo服务器和三个zeo客户端。 Zope版本是2.13.19

它运行正常,但我想了解为什么以下某些连接已连接且未连接。

最终,只有三个连接显示收到的握手,这三个客户端占据了这一点。

2018-03-30T16:23:24 (23621) terminated by SIGTERM
2018-03-30T16:23:24 (23621) closing storage '1'
2018-03-30T16:23:24 (127.0.0.1:51272) disconnected
2018-03-30T16:23:24 (23621) removed PID file '/home/magikzope/var/zeo.pid'
2018-03-30T16:23:25 (9915) created PID file '/home/magikzope/var/zeo.pid'
2018-03-30T16:23:25 (9915) opening storage '1' using FileStorage
2018-03-30T16:23:25 StorageServer created RW with storages: 1:RW:/home/magikzope/var/filestorage/Data.fs
2018-03-30T16:23:25 (9915) listening on ('127.0.0.1', 9100)
2018-03-30T16:23:27 new connection ('127.0.0.1', 45414): <ManagedServerConnection ('127.0.0.1', 45414)>
2018-03-30T16:23:27 new connection ('127.0.0.1', 45416): <ManagedServerConnection ('127.0.0.1', 45416)>
2018-03-30T16:23:27 (127.0.0.1:45416) received handshake 'Z3101'
2018-03-30T16:23:27 (127.0.0.1:45414) received handshake 'Z3101'
2018-03-30T16:23:27 new connection ('127.0.0.1', 45418): <ManagedServerConnection ('127.0.0.1', 45418)>
2018-03-30T16:23:27 new connection ('127.0.0.1', 45420): <ManagedServerConnection ('127.0.0.1', 45420)>
2018-03-30T16:23:27 new connection ('127.0.0.1', 45422): <ManagedServerConnection ('127.0.0.1', 45422)>
2018-03-30T16:23:27 new connection ('127.0.0.1', 45424): <ManagedServerConnection ('127.0.0.1', 45424)>
2018-03-30T16:23:27 new connection ('127.0.0.1', 45426): <ManagedServerConnection ('127.0.0.1', 45426)>
2018-03-30T16:23:27 new connection ('127.0.0.1', 45428): <ManagedServerConnection ('127.0.0.1', 45428)>
2018-03-30T16:23:27 (127.0.0.1:45426) received handshake 'Z3101'
2018-03-30T16:23:27 (unconnected) disconnected
2018-03-30T16:23:27 (unconnected) disconnected
2018-03-30T16:23:27 (unconnected) disconnected
2018-03-30T16:23:27 (unconnected) disconnected
2018-03-30T16:23:27 (unconnected) disconnected
2018-03-30T16:23:27 new connection ('127.0.0.1', 45430): <ManagedServerConnection ('127.0.0.1', 45430)>
2018-03-30T16:23:27 (unconnected) disconnected

1 个答案:

答案 0 :(得分:0)

SIGTERM暗示允许的最大RAM的阈值被取代,就像它可能在虚拟服务器上发生一样,在这种情况下,您将要升级您的主机计划,以获得更多的RAM

如果您确实重新启动了操作系统,或者您自己以另一种方式使用SIGTERM的原因,这也可能发生,原因可能各不相同,可以是缓存验证,如第64行的ZEO-5.1.1-py2.7.egg/ZEO/cache.py源代码:

# When the client is connected to the server, it receives
# invalidations every time an object is modified.  When the client is
# disconnected then reconnects, it must perform cache verification to make
# sure its cached data is synchronized with the storage's current state.

所以一般来说,没有什么可悲的,客户端会尝试连接和断开连接,直到建立有效的连接。

然而,在更改生产中的任何内容之前,始终在前台的暂存或开发环境中启动实例始终是一个好主意。