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

Zeo server log output with multiple zeo clients

我们使用一个 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

SIGTERM 暗示已超过允许的 max-RAM 的阈值,就像它可能发生在 virtual-server 上一样,在这种情况下,您需要升级 [=24] =],以获得更多可用内存。

如果您确实重启了 OS,或者 SIGTERM 的原因是您自己造成的,这也可能发生,原因可能多种多样,其中一个可能是 cache-validation,如第 64 行 ZEO-5.1.1-py2.7.egg/ZEO/cache.py 的 source-code 中所述:

# 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.

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

然而,在生产中更改任何内容之前,在暂存中启动实例或在前台启动实例 development-enviroment 始终是个好主意。