[[troubleshooting-shards-capacity-issues]]
== Troubleshooting shards capacity health issues

{es} limits the maximum number of shards to be held per node using the
<<cluster-max-shards-per-node, `cluster.max_shards_per_node`>> and
<<cluster-max-shards-per-node-frozen, `cluster.max_shards_per_node.frozen`>> settings.
The current shards capacity of the cluster is available in the
<<health-api-response-details-shards-capacity, health API shards capacity section>>.

include::{es-ref-dir}/tab-widgets/troubleshooting/troubleshooting-shards-capacity-widget.asciidoc[]
