我们有一个 Neo4j 配置,除了列出要连接的主机之外,大部分都是纯默认设置。这是一个 1.9.0 企业,具有 3 个节点的 HA。我们在运行轻负载时遇到了一些问题,我们在 messages.log 文件中看到了这一点:
2013-08-02 20:49:12.017+0000 DEBUG [o.n.k.h.c.m.SlaveClient]: Opened a new channel to neo4j02.xxx.com/10.12.200.43:6361
2013-08-02 20:49:12.019+0000 DEBUG [o.n.k.h.c.m.SlaveClient]: Opened a new channel to neo4j02.xxx.com/10.12.200.43:6361
2013-08-02 20:49:12.019+0000 DEBUG [o.n.k.h.c.m.SlaveClient]: Opened a new channel to neo4j02.xxx.com/10.12.200.43:6361
2013-08-02 20:49:12.019+0000 DEBUG [o.n.k.h.c.m.SlaveClient]: Opened a new channel to neo4j02.xxx.com/10.12.200.43:6361
2013-08-02 20:49:12.020+0000 DEBUG [o.n.k.h.c.m.SlaveClient]: Opened a new channel to neo4j02.xxx.com/10.12.200.43:6361
2013-08-02 20:49:12.020+0000 DEBUG [o.n.k.h.c.m.SlaveClient]: Opened a new channel to neo4j02.xxx.com/10.12.200.43:6361
2013-08-02 20:49:12.021+0000 DEBUG [o.n.k.h.c.m.SlaveClient]: Opened a new channel to neo4j02.xxx.com/10.12.200.43:6361
2013-08-02 20:49:12.022+0000 DEBUG [o.n.k.h.c.m.SlaveClient]: Opened a new channel to neo4j02.xxx.com/10.12.200.43:6361
2013-08-02 20:49:12.022+0000 DEBUG [o.n.k.h.c.m.SlaveClient]: Opened a new channel to neo4j02.xxx.com/10.12.200.43:6361
2013-08-02 20:49:12.023+0000 DEBUG [o.n.k.h.c.m.SlaveClient]: Opened a new channel to neo4j02.xxx.com/10.12.200.43:6361
2013-08-02 20:49:12.023+0000 DEBUG [o.n.k.h.c.m.SlaveClient]: Opened a new channel to neo4j02.xxx.com/10.12.200.43:6361
2013-08-02 20:49:12.024+0000 DEBUG [o.n.k.h.c.m.SlaveClient]: Opened a new channel to neo4j02.xxx.com/10.12.200.43:6361
2013-08-02 20:49:12.024+0000 DEBUG [o.n.k.h.c.m.SlaveClient]: Opened a new channel to neo4j02.xxx.com/10.12.200.43:6361
只计算一分钟:
$ grep "Opened" messages.log | grep "20:49" | wc -l
2478
这似乎太过分了。我们在这里做错了什么吗?