我的请求因此错误而超时。
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]
多个问题
一个明显的问题:为什么会超时?
我的配置有"executionMode": "asynchronous"
,为什么它仍然等待同步响应?
responsesSoFar=[orient_node_0, orient_node_0]
为什么两次从同一节点获得响应?
我的请求始终转到“ orient_node_0”。如何分配负载?我正在使用org.apache.tinkerpop.gremlin.orientdb.OrientGraphFactory
。但是,没有OrientGraphFactory.setConnectionStrategy
方法,就像他们在此处的文档中所说的:http://orientdb.com/docs/3.0.x/distributed/Distributed-Configuration.html#load-balancing
完整配置:
{
"autoDeploy": true,
"readQuorum": 1,
"writeQuorum": "majority",
"executionMode": "asynchronous",
"readYourWrites": true,
"newNodeStrategy": "static",
"servers": {
"*": "master"
},
"clusters": {
"internal": {
},
"*": {
"servers": ["<NEW_NODE>"]
}
}
}
-默认为config / hazelcast.xml。