1
0
Fork 0

increase the timeouts for replication, in order to increase the chanc… (#6733)

This commit is contained in:
Jan 2018-10-08 17:34:33 +02:00 committed by GitHub
parent 642c5fd994
commit 5b86561c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,11 @@
v3.3.18 (XXXX-XX-XX)
--------------------
* increased default timeouts in replication
this decreases the chances of followers not getting in sync with leaders because
of replication operations timing out
* fixed internal issue #1983: the Web UI was showing a deletion confirmation
multiple times.

View File

@ -683,7 +683,7 @@ void MMFilesRestReplicationHandler::handleCommandCreateKeys() {
// initialize a container with the keys
auto keys =
std::make_unique<MMFilesCollectionKeys>(_vocbase, std::move(guard), id, 300.0);
std::make_unique<MMFilesCollectionKeys>(_vocbase, std::move(guard), id, 900.0);
std::string const idString(std::to_string(keys->id()));

View File

@ -61,7 +61,7 @@ struct IncrementalSyncStats {
class InitialSyncer : public Syncer {
public:
static constexpr double defaultBatchTimeout = 300.0;
static constexpr double defaultBatchTimeout = 7200.0; // two hours
public:
explicit InitialSyncer(ReplicationApplierConfiguration const&);

View File

@ -66,7 +66,7 @@ Syncer::Syncer(ReplicationApplierConfiguration const& configuration)
_connection(nullptr),
_client(nullptr),
_barrierId(0),
_barrierTtl(600),
_barrierTtl(900),
_barrierUpdateTime(0),
_isChildSyncer(false) {