尝试配置ArangoDB复制时出错

时间:2018-02-15 14:27:09

标签: replication arangodb

尝试在ArangoDB数据库上配置异步复制时(使用文档https://docs.arangodb.com/3.3/Manual/Administration/Replication/Asynchronous/Components.html)我收到此错误:

JavaScript exception in file 
'/usr/share/arangodb3/js/client/modules/@arangodb/replication.js' at 209,7: 
ArangoError 1470: replication API is not supported on a coordinator
!      throw err;
!      ^
stacktrace: ArangoError: replication API is not supported on a coordinator
    at Object.exports.checkRequestResult 
(/usr/share/arangodb3/js/client/modules/@arangodb/arangosh.js:96:21)
    at waitForResult 
(/usr/share/arangodb3/js/client/modules/@arangodb/replication.js:207:16)
    at setup 
(/usr/share/arangodb3/js/client/modules/@arangodb/replication.js:310:10)
    at Object.setupReplication 
(/usr/share/arangodb3/js/client/modules/@arangodb/replication.js:313:51)
    at <shell command>:1:34

知道可能导致什么原因吗?我使用最新的3.3.3版本,在3台不同的机器上运行集群。

1 个答案:

答案 0 :(得分:2)

您正在访问协调员。复制API仅驻留在ArangoDB集群中的数据库服务器上。如果移动到数据库服务器,您将看到不同的行为。