Class OpenSearchAllocationWithConstraintsTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.opensearch.test.OpenSearchTestCase
org.opensearch.cluster.OpenSearchAllocationTestCase
org.opensearch.cluster.OpenSearchAllocationWithConstraintsTestCase

public abstract class OpenSearchAllocationWithConstraintsTestCase extends OpenSearchAllocationTestCase
  • Field Details

  • Constructor Details

    • OpenSearchAllocationWithConstraintsTestCase

      public OpenSearchAllocationWithConstraintsTestCase()
  • Method Details

    • clearState

      public void clearState()
    • shardIdentifierFromRouting

      public static String shardIdentifierFromRouting(org.opensearch.cluster.routing.ShardRouting shardRouting)
    • buildAllocationService

      public void buildAllocationService()
    • buildAllocationService

      public void buildAllocationService(String excludeNodes)
    • buildZoneAwareAllocationService

      public void buildZoneAwareAllocationService()
    • buildAllocationService

      public void buildAllocationService(org.opensearch.common.settings.Settings.Builder sb)
    • buildMetadata

      public org.opensearch.cluster.metadata.Metadata buildMetadata(org.opensearch.cluster.metadata.Metadata.Builder mb, String indexPrefix, int numberOfIndices, int numberOfShards, int numberOfReplicas)
    • buildRoutingTable

      public org.opensearch.cluster.routing.RoutingTable buildRoutingTable(org.opensearch.cluster.routing.RoutingTable.Builder rb, org.opensearch.cluster.metadata.Metadata metadata, String indexPrefix, int numberOfIndices)
    • addNodes

      public org.opensearch.cluster.node.DiscoveryNodes addNodes(org.opensearch.cluster.node.DiscoveryNodes.Builder nb, String nodePrefix, int nodesAdded)
    • resetCluster

      public void resetCluster()
    • updateInitialCluster

      public void updateInitialCluster()
    • createEmptyZoneAwareCluster

      public void createEmptyZoneAwareCluster(Map<String,Integer> nodesPerZone)
    • setupInitialCluster

      public void setupInitialCluster(int nodeCount, int indices, int shards, int replicas)
    • buildNodeShardsByIndex

      public void buildNodeShardsByIndex()
    • isIndexHotSpotPresent

      public boolean isIndexHotSpotPresent(int nodes, List<String> nodeList)
    • getNodeList

      public List<String> getNodeList(String... nodesToValidate)
    • assertForIndexShardHotSpots

      public void assertForIndexShardHotSpots(boolean expected, int nodes, String... nodesToValidate)
    • allocateAndCheckIndexShardHotSpots

      public int allocateAndCheckIndexShardHotSpots(boolean expected, int nodes, String... nodesToValidate)
    • allocateShardsAndBalance

      public org.opensearch.cluster.ClusterState allocateShardsAndBalance(org.opensearch.cluster.ClusterState clusterState)
    • addNodesWithoutIndexing

      public void addNodesWithoutIndexing(int nodeCount, String node_prefix)
    • terminateNodes

      public void terminateNodes(String... nodesToTerminate)
    • addNodesWithIndexing

      public void addNodesWithIndexing(int nodeCount, String node_prefix, int indices, int shards, int replicas)
    • addIndices

      public void addIndices(String index_prefix, int indices, int shards, int replicas)