简体   繁体   中英

Arangodb stops async replication after some time

I use ArangoDB 3.2.2 on Kubernetes. I have one master db and one slave db. on the slave db inside the arangosh I enter the following commands:

db._useDatabase("mydb");

equire("@arangodb/replication").setupReplication({
  endpoint: "tcp://master:8529",
  username: "root",
  password: "123456",
  database: "mydb",
  verbose: true,
  includeSystem: false,
  incremental: true,
  autoResync: true,
  maxConnectRetries: 20,
  adaptivePolling: false,
  idleMinWaitTime: 0.001,
  idleMaxWaitTime: 1.5,
  chunkSize: 5000
});

The command blocks for a few seconds and then the replication is started and I can see that the collections from the master db are replicated to the slave. However, after some time the replication stops.

When I run: require("@arangodb/replication").applier.state This is what I see:

{ 
  "state" : { 
    "running" : true, 
    "lastAppliedContinuousTick" : "6384020", 
    "lastProcessedContinuousTick" : "6384026", 
    "lastAvailableContinuousTick" : "6389353", 
    "safeResumeTick" : "6382367", 
    "progress" : { 
      "time" : "2017-11-15T12:14:09Z", 
      "message" : "fetching master log from tick 6382367, first regular tick 6367894, barrier: 0, open transactions: 0", 
      "failedConnects" : 0 
    }, 
    "totalRequests" : 1155, 
    "totalFailedConnects" : 0, 
    "totalEvents" : 83, 
    "totalOperationsExcluded" : 0, 
    "lastError" : { 
      "errorNum" : 0 
    }, 
    "time" : "2017-11-15T12:15:47Z" 
  }, 
  "server" : { 
    "version" : "3.2.2", 
    "serverId" : "77969163868004" 
  }, 
  "endpoint" : "tcp://master:8529", 
  "database" : "mydb" 
}

When I run the replication command again I see that the collections are being replicated again...

How can I initialize a stable replication process? I understand that this is an asynchronous replication but in my use case I need the slave to be updated as fast as possible... Does my replication config is fit to my needs?

似乎这是ArangoDB 3.2.2中的错误,在ArangoDB 3.2.8中,复制似乎可以正常工作(即使使用rocksdb)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM