Makes snapshot throttling test go much faster (#21485)
[TEST] Makes the snapshot throttling test go much faster. Before, the snapshot throttling test would throttle at a rate of 0.5 kb per second, even though it would snapshot/restore about 25 kb of data. This commit increases the throttling rate to 10kb per second, so we still test the throttling mechanism while speeding up the test from taking 30 plus seconds down to 2 seconds or less.
This commit is contained in:
parent
7c3886769f
commit
a5ccd02e76
|
@ -1499,8 +1499,8 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas
|
|||
.put("location", repositoryLocation)
|
||||
.put("compress", randomBoolean())
|
||||
.put("chunk_size", randomIntBetween(1000, 10000), ByteSizeUnit.BYTES)
|
||||
.put("max_restore_bytes_per_sec", throttleRestore ? "0.5k" : "0")
|
||||
.put("max_snapshot_bytes_per_sec", throttleSnapshot ? "0.5k" : "0")));
|
||||
.put("max_restore_bytes_per_sec", throttleRestore ? "10k" : "0")
|
||||
.put("max_snapshot_bytes_per_sec", throttleSnapshot ? "10k" : "0")));
|
||||
|
||||
createIndex("test-idx");
|
||||
ensureGreen();
|
||||
|
|
Loading…
Reference in New Issue