等待同步响应时使用分布式OrientDb

时间:2018-10-24 01:46:40

标签: graph orientdb distributed

我的请求因此错误而超时。

2018-10-24 01:30:28:710 WARNI [orient_node_0] Timeout (1237ms) on waiting for synchronous responses from nodes=[orient_node_1, orient_node_2, orient_node_0] responsesSoFar=[orient_node_0, orient_node_0] request=(id=0.4365 task=TxPhase1) [ODistributedDatabaseImpl]
2018-10-24 01:30:29:069 WARNI [orient_node_0] Timeout (1221ms) on waiting for synchronous responses from nodes=[orient_node_1, orient_node_2, orient_node_0] responsesSoFar=[orient_node_0, orient_node_0] request=(id=0.4367 task=TxPhase1) [ODistributedDatabaseImpl]
2018-10-24 01:30:29:160 WARNI [orient_node_0] Timeout (1229ms) on waiting for synchronous responses from nodes=[orient_node_1, orient_node_2, orient_node_0] responsesSoFar=[orient_node_0, orient_node_0] request=(id=0.4368 task=TxPhase1) [ODistributedDatabaseImpl]
2018-10-24 01:30:29:581 WARNI [orient_node_0] Timeout (1218ms) on waiting for synchronous responses from nodes=[orient_node_1, orient_node_2, orient_node_0] responsesSoFar=[orient_node_0, orient_node_0] request=(id=0.4372 task=TxPhase1) [ODistributedDatabaseImpl]
2018-10-24 01:30:29:799 WARNI [orient_node_0] Timeout (1217ms) on waiting for synchronous responses from nodes=[orient_node_1, orient_node_2, orient_node_0] responsesSoFar=[orient_node_0, orient_node_0] request=(id=0.4377 task=TxPhase1) [ODistributedDatabaseImpl]
2018-10-24 01:30:30:931 WARNI [orient_node_0] Timeout (1225ms) on waiting for synchronous responses from nodes=[orient_node_1, orient_node_2, orient_node_0] responsesSoFar=[orient_node_0, orient_node_0] request=(id=0.4383 task=TxPhase1) [ODistributedDatabaseImpl]
2018-10-24 01:30:31:030 WARNI [orient_node_0] Timeout (1215ms) on waiting for synchronous responses from nodes=[orient_node_1, orient_node_2, orient_node_0] responsesSoFar=[orient_node_0, orient_node_0] request=(id=0.4385 task=TxPhase1) [ODistributedDatabaseImpl]
2018-10-24 01:30:31:112 WARNI [orient_node_0] Timeout (1217ms) on waiting for synchronous responses from nodes=[orient_node_1, orient_node_2, orient_node_0] responsesSoFar=[orient_node_0, orient_node_0] request=(id=0.4386 task=TxPhase1) [ODistributedDatabaseImpl]

多个问题

  1. 一个明显的问题:为什么会超时?

  2. 我的配置有"executionMode": "asynchronous",为什么它仍然等待同步响应?

  3. responsesSoFar=[orient_node_0, orient_node_0]为什么两次从同一节点获得响应?

  4. 我的请求始终转到“ orient_node_0”。如何分配负载?我正在使用org.apache.tinkerpop.gremlin.orientdb.OrientGraphFactory。但是,没有OrientGraphFactory.setConnectionStrategy方法,就像他们在此处的文档中所说的:http://orientdb.com/docs/3.0.x/distributed/Distributed-Configuration.html#load-balancing

完整配置:

  • 3台作为docker容器运行的机器orient_node_0,orient_node_1,orient_node_2。
  • Oracle JDK
  • OrientDb版本3.0.9
  • Tikerpop3
  • config / default-distributed-db-config.json看起来像:

{ "autoDeploy": true, "readQuorum": 1, "writeQuorum": "majority", "executionMode": "asynchronous", "readYourWrites": true, "newNodeStrategy": "static", "servers": { "*": "master" }, "clusters": { "internal": { }, "*": { "servers": ["<NEW_NODE>"] } } } -默认为config / hazelcast.xml。

0 个答案:

没有答案