| 123456789101112131415161718192021222324252627282930 | [[allocation-total-shards]]=== Total shards per nodeThe cluster-level shard allocator tries to spread the shards of a single indexacross as many nodes as possible.  However, depending on how many shards andindices you have, and how big they are, it may not always be possible to spreadshards evenly.The following _dynamic_ setting allows you to specify a hard limit on the totalnumber of shards from a single index allowed per node:`index.routing.allocation.total_shards_per_node`::    The maximum number of shards (replicas and primaries) that will be    allocated to a single node.  Defaults to unbounded.You can also limit the amount of shards a node can have regardless of the index:`cluster.routing.allocation.total_shards_per_node`::    The maximum number of shards (replicas and primaries) that will be    allocated to a single node globally.  Defaults to unbounded (-1).[WARNING]=======================================These settings impose a hard limit which can result in some shards not beingallocated.Use with caution.=======================================
 |