Make uploads work with very slow upload speeds

chunk uploads get a timeout of 2mins (derived from http.timeout).
On servers like kimsufi, uploads takes forever (100 MB/sec limit).
Currently, our upload code does not dynamically adapt itself to
changing the concurrency when network is slow.
This commit is contained in:
Girish Ramakrishnan
2018-03-20 19:18:48 -07:00
parent 7699f6721d
commit 6adf88a6e5
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -269,7 +269,7 @@ function sync(backupConfig, backupId, dataDir, callback) {
});
}
}, iteratorCallback);
}, 10 /* concurrency */, function (error) {
}, backupConfig.syncConcurrency || 10 /* concurrency */, function (error) {
if (error) return callback(new BackupsError(BackupsError.EXTERNAL_ERROR, error.message));
callback();