[TEST] adjust chunk size to create less but bigger files to trigger throtteling more reliably

This commit is contained in:
Simon Willnauer 2014-09-17 19:12:26 +02:00
parent 94ecf59e65
commit 63eb49d202
1 changed files with 1 additions and 1 deletions

View File

@ -1068,7 +1068,7 @@ public class SharedClusterSnapshotRestoreTests extends AbstractSnapshotTests {
.setType("fs").setSettings(ImmutableSettings.settingsBuilder() .setType("fs").setSettings(ImmutableSettings.settingsBuilder()
.put("location", repositoryLocation) .put("location", repositoryLocation)
.put("compress", randomBoolean()) .put("compress", randomBoolean())
.put("chunk_size", randomIntBetween(100, 1000)) .put("chunk_size", randomIntBetween(1000, 10000))
.put("max_restore_bytes_per_sec", throttleRestore ? "2.5k" : "0") .put("max_restore_bytes_per_sec", throttleRestore ? "2.5k" : "0")
.put("max_snapshot_bytes_per_sec", throttleSnapshot ? "2.5k" : "0"))); .put("max_snapshot_bytes_per_sec", throttleSnapshot ? "2.5k" : "0")));