尝试在ArangoDB数据库上配置异步复制时(使用文档https://github.com/arangodb/arangodb/blob/dd912dcaec4843f15ce230c477a83ac90052c2bf/Documentation/Books/Manual/Administration/Replication/Asynchronous/Components.md)我收到此错误:
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 台不同的机器上运行。
您正在访问协调员。复制 API 仅驻留在 ArangoDB 集群中的数据库服务器上。如果您迁移到数据库服务器,您将看到不同的行为。