Test: reduce load in RecoveryWhileUnderLoadTests
This commit is contained in:
parent
027730006b
commit
4342237acf
|
@ -57,7 +57,7 @@ public class RecoveryWhileUnderLoadTests extends ElasticsearchIntegrationTest {
|
|||
int numberOfShards = numberOfShards();
|
||||
assertAcked(prepareCreate("test", 1, settingsBuilder().put(SETTING_NUMBER_OF_SHARDS, numberOfShards).put(SETTING_NUMBER_OF_REPLICAS, 1)));
|
||||
|
||||
final int totalNumDocs = scaledRandomIntBetween(200, 20000);
|
||||
final int totalNumDocs = scaledRandomIntBetween(200, 10000);
|
||||
int waitFor = totalNumDocs / 10;
|
||||
int extraDocs = waitFor;
|
||||
try (BackgroundIndexer indexer = new BackgroundIndexer("test", "type", client(), extraDocs)) {
|
||||
|
@ -112,7 +112,7 @@ public class RecoveryWhileUnderLoadTests extends ElasticsearchIntegrationTest {
|
|||
int numberOfShards = numberOfShards();
|
||||
assertAcked(prepareCreate("test", 1, settingsBuilder().put(SETTING_NUMBER_OF_SHARDS, numberOfShards).put(SETTING_NUMBER_OF_REPLICAS, 1)));
|
||||
|
||||
final int totalNumDocs = scaledRandomIntBetween(200, 20000);
|
||||
final int totalNumDocs = scaledRandomIntBetween(200, 10000);
|
||||
int waitFor = totalNumDocs / 10;
|
||||
int extraDocs = waitFor;
|
||||
try (BackgroundIndexer indexer = new BackgroundIndexer("test", "type", client(), extraDocs)) {
|
||||
|
@ -166,7 +166,7 @@ public class RecoveryWhileUnderLoadTests extends ElasticsearchIntegrationTest {
|
|||
int numberOfShards = numberOfShards();
|
||||
assertAcked(prepareCreate("test", 2, settingsBuilder().put(SETTING_NUMBER_OF_SHARDS, numberOfShards).put(SETTING_NUMBER_OF_REPLICAS, 1)));
|
||||
|
||||
final int totalNumDocs = scaledRandomIntBetween(200, 20000);
|
||||
final int totalNumDocs = scaledRandomIntBetween(200, 10000);
|
||||
int waitFor = totalNumDocs / 10;
|
||||
int extraDocs = waitFor;
|
||||
try (BackgroundIndexer indexer = new BackgroundIndexer("test", "type", client(), extraDocs)) {
|
||||
|
@ -241,7 +241,7 @@ public class RecoveryWhileUnderLoadTests extends ElasticsearchIntegrationTest {
|
|||
int allowNodes = 2;
|
||||
assertAcked(prepareCreate("test", 3, settingsBuilder().put(SETTING_NUMBER_OF_SHARDS, numShards).put(SETTING_NUMBER_OF_REPLICAS, numReplicas)));
|
||||
|
||||
final int numDocs = scaledRandomIntBetween(200, 50000);
|
||||
final int numDocs = scaledRandomIntBetween(200, 20000);
|
||||
|
||||
try (BackgroundIndexer indexer = new BackgroundIndexer("test", "type", client(), numDocs)) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue