Annotation Interface OpenSearchIntegTestCase.ClusterScope
- Enclosing class:
OpenSearchIntegTestCase
Defines a cluster scope for a
OpenSearchIntegTestCase subclass.
By default if no OpenSearchIntegTestCase.ClusterScope annotation is present OpenSearchIntegTestCase.Scope.SUITE is used
together with randomly chosen settings like number of nodes etc.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIndicates whether the cluster automatically manages cluster bootstrapping.intReturns the maximum number of data nodes in the cluster.intReturns the minimum number of data nodes in the cluster.intReturns the number of client nodes in the cluster.intReturns the number of nodes in the cluster.Returns the scope.booleanIndicates whether the cluster can have dedicated cluster-manager nodes.
-
Element Details
-
scope
Returns the scope.OpenSearchIntegTestCase.Scope.SUITEis default.- Default:
SUITE
-
numDataNodes
int numDataNodesReturns the number of nodes in the cluster. Default is-1which means a random number of nodes is used, where the minimum and maximum number of nodes are either the specified ones or the default ones if not specified.- Default:
-1
-
minNumDataNodes
int minNumDataNodesReturns the minimum number of data nodes in the cluster. Default is-1. Ignored whennumDataNodes()is set.- Default:
-1
-
maxNumDataNodes
int maxNumDataNodesReturns the maximum number of data nodes in the cluster. Default is-1. Ignored whennumDataNodes()is set.- Default:
-1
-
supportsDedicatedMasters
boolean supportsDedicatedMastersIndicates whether the cluster can have dedicated cluster-manager nodes. Iffalsemeans data nodes will serve as cluster-manager nodes and there will be no dedicated cluster-manager (and data) nodes. Default isfalsewhich means dedicated cluster-manager nodes will be randomly used.- Default:
true
-
autoManageMasterNodes
boolean autoManageMasterNodesIndicates whether the cluster automatically manages cluster bootstrapping. If set tofalsethen the tests must manage these things explicitly.- Default:
true
-
numClientNodes
int numClientNodesReturns the number of client nodes in the cluster. Default isInternalTestCluster.DEFAULT_NUM_CLIENT_NODES, a negative value means that the number of client nodes will be randomized.- Default:
-1
-