From b97b670011618bb6d531e0f6137e5809a3db4d66 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Tue, 8 Jul 2014 23:46:19 +0200 Subject: [PATCH] add more options to many mappings test --- .../benchmark/mapping/ManyMappingsBenchmark.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/benchmark/mapping/ManyMappingsBenchmark.java b/src/test/java/org/elasticsearch/benchmark/mapping/ManyMappingsBenchmark.java index 9e681b30b08..5c0ae701e28 100644 --- a/src/test/java/org/elasticsearch/benchmark/mapping/ManyMappingsBenchmark.java +++ b/src/test/java/org/elasticsearch/benchmark/mapping/ManyMappingsBenchmark.java @@ -82,22 +82,26 @@ public class ManyMappingsBenchmark { private static final String TYPE_NAME = "type"; private static final int FIELD_COUNT = 100000; private static final int DOC_COUNT = 10000000; + private static final boolean TWO_NODES = false; public static void main(String[] args) throws Exception { System.setProperty("es.logger.prefix", ""); Natives.tryMlockall(); Settings settings = settingsBuilder() - .put("index.refresh_interval", "-1") .put("gateway.type", "local") .put(SETTING_NUMBER_OF_SHARDS, 5) .put(SETTING_NUMBER_OF_REPLICAS, 0) - .put(TransportModule.TRANSPORT_TYPE_KEY, "local") .build(); String clusterName = ManyMappingsBenchmark.class.getSimpleName(); Node node = nodeBuilder().clusterName(clusterName) .settings(settingsBuilder().put(settings)) .node(); + if (TWO_NODES) { + Node node2 = nodeBuilder().clusterName(clusterName) + .settings(settingsBuilder().put(settings)) + .node(); + } Client client = node.client();