Package org.apache.solr.bench
Class MiniClusterState.MiniClusterBenchState
java.lang.Object
org.apache.solr.bench.MiniClusterState.MiniClusterBenchState
- Enclosing class:
MiniClusterState
The type Mini cluster bench state.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckWarmUp(org.openjdk.jmh.infra.Control control) Check warm up.voidcreateCollection(String collection, int numShards, int numReplicas) Create collection.voiddoSetup(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams, BaseBenchState baseBenchState) Do setup.voidDump core info.voidforceMerge(String collection, int maxMergeSegments) Force merge.Gets random.voidvoidIndex.voidmetricsEnabled(boolean metricsEnabled) Metrics enabled.voidsetUseHttp1(boolean useHttp1) Setting useHttp1 to true will make theclientuse http1voidshutdownMiniCluster(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams, BaseBenchState baseBenchState) Shutdown mini cluster.voidstartMiniCluster(int nodeCount) Start mini cluster.voidtearDown(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams) Tear down.voidwaitForMerges(String collection) Wait for merges.
-
Field Details
-
nodes
The Nodes. -
zkHost
-
client
The Client.
-
-
Constructor Details
-
MiniClusterBenchState
public MiniClusterBenchState()
-
-
Method Details
-
tearDown
Tear down.- Parameters:
benchmarkParams- the benchmark params- Throws:
Exception- the exception
-
checkWarmUp
Check warm up.- Parameters:
control- the control- Throws:
Exception- the exception
-
shutdownMiniCluster
public void shutdownMiniCluster(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams, BaseBenchState baseBenchState) throws Exception Shutdown mini cluster.- Parameters:
benchmarkParams- the benchmark params- Throws:
Exception- the exception
-
doSetup
public void doSetup(org.openjdk.jmh.infra.BenchmarkParams benchmarkParams, BaseBenchState baseBenchState) throws Exception Do setup.- Parameters:
benchmarkParams- the benchmark paramsbaseBenchState- the base bench state- Throws:
Exception- the exception
-
metricsEnabled
public void metricsEnabled(boolean metricsEnabled) Metrics enabled.- Parameters:
metricsEnabled- the metrics enabled
-
startMiniCluster
public void startMiniCluster(int nodeCount) Start mini cluster.- Parameters:
nodeCount- the node count
-
getRandom
Gets random.- Returns:
- the random
-
createCollection
Create collection.- Parameters:
collection- the collectionnumShards- the num shardsnumReplicas- the num replicas- Throws:
Exception- the exception
-
setUseHttp1
public void setUseHttp1(boolean useHttp1) Setting useHttp1 to true will make theclientuse http1 -
index
- Throws:
Exception
-
index
Index.- Parameters:
collection- the collectiondocs- the docsdocCount- the doc count- Throws:
Exception- the exception
-
waitForMerges
Wait for merges.- Parameters:
collection- the collection- Throws:
Exception- the exception
-
forceMerge
Force merge.- Parameters:
collection- the collectionmaxMergeSegments- the max merge segments- Throws:
Exception- the exception
-
dumpCoreInfo
Dump core info.- Throws:
IOException- the io exception
-