我正在尝试设置一个主-从模型的Arango。能够做第一批更新,但应用程序的实时同步是不工作。它不断失败的索引约束,这在主工作完美的罚款,没有一个重复的关键字的问题。
require("@arangodb/replication").setupReplication({
...> endpoint: "tcp://master:8529",
...> username: “name”,
...> password: “pass”,
...> autoStart: true,
...> incremental:true,
...> verbose:true,
...> });
施用器状态。
{
"state" : {
"started" : "2020-12-08T07:21:50Z",
"running" : false,
"phase" : "inactive",
"lastAppliedContinuousTick" : null,
"lastProcessedContinuousTick" : null,
"lastAvailableContinuousTick" : null,
"safeResumeTick" : null,
"progress" : {
"time" : "2020-12-09T07:07:44Z",
"message" : "applier shut down",
"failedConnects" : 0
},
"totalRequests" : 4,
"totalFailedConnects" : 0,
"totalEvents" : 0,
"totalDocuments" : 0,
"totalRemovals" : 0,
"totalResyncs" : 3,
"totalOperationsExcluded" : 0,
"totalApplyTime" : 0,
"averageApplyTime" : 0,
"totalFetchTime" : 0,
"averageFetchTime" : 0,
"lastError" : {
"errorNum" : 0
},
"time" : "2020-12-09T07:13:02Z"
},
"server" : {
"version" : "3.6.4",
"serverId" : "237391144398597"
},
"endpoint" :
我尝试了(同步,异步)一切。它只是做第一批更新和现场更新没有发生。不知何故appler只是关闭。请帮助
1条答案
按热度按时间zte4gxcn1#
你可以试试
用于在当前数据库上启动应用程序,或者,以下命令用于为所有数据库/整个服务器启动应用程序
在后一种情况下(
setupReplicationGlobal
),您可以稍后通过检查施用器的状态(mind
globalApplier
与applier
的对比)