﻿---
title: Shard count high on frozen node
description: Describes what AutoOps detects and surfaces with the Shard count high on frozen node insight: One or more frozen tier nodes host more shards than the recommended limit for stable operation.
url: https://docs-v3-preview.elastic.dev/elastic/autoops-insights/tree/main/elasticsearch/shard_count_high_on_frozen_node
products:
  - Elastic Cloud Enterprise
  - Elastic Cloud Hosted
  - Elastic Cloud on Kubernetes
  - Elasticsearch
applies_to:
  - Elastic Cloud Hosted: Generally available
  - Elastic Cloud on Kubernetes: Generally available
  - Elastic Cloud Enterprise: Generally available
  - Self-managed Elastic deployments: Generally available
---

# Shard count high on frozen node
One or more frozen tier nodes host more shards than the recommended limit for stable operation. High shard counts can cause master nodes to struggle with cluster state tracking and can stress file descriptor and virtual memory limits on the affected nodes.
<note>
  For a complete list of insights, refer to [AutoOps insights](https://docs-v3-preview.elastic.dev/elastic/autoops-insights/tree/main/elasticsearch).
</note>


## Insight details


| Field     | Value                       |
|-----------|-----------------------------|
| Component | Elasticsearch               |
| Severity  | Medium                      |
| Scope     | Node                        |
| Domains   | shard-allocation, stability |


## Customization settings

You can customize these settings to adjust when AutoOps detects this event and presents the insight. Refer to [AutoOps event settings](https://docs-v3-preview.elastic.dev/elastic/docs-content/tree/main/deploy-manage/monitor/autoops/ec-autoops-event-settings) for details.
The default customization settings are:

| Setting                                                          | Type       | Default |
|------------------------------------------------------------------|------------|---------|
| Early warning margin before the max shards per frozen node limit | Percentage | 10      |


## Example: What you might see in AutoOps

The following is an example of what you might see when this insight is triggered. Real insights use live data and links from your deployment or cluster.

### Shard count is approaching the recommended limit on frozen node: `es-data-01`


#### What was detected

The current shard count on `es-data-01` and `es-data-02` is 24 (limit: 3000).

#### Recommendations

<note>
  AutoOps shows different recommendations depending on how their conditions match your deployment or cluster.
</note>

<dropdown title="Add frozen data node">
  **Condition**: Shown when frozen node shard count is at or near limit.Add a frozen-tier data node to host searchable snapshot indices and scale frozen storage separately.
</dropdown>

<dropdown title="Reduce shard count">
  **Condition**: Shown when frozen node shard count is at or near limit.Use the shrink API to reduce shard count from 24 to 12. See the [Shrink API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-shrink) for prerequisites.
</dropdown>


#### Background and impact

Your cluster has more shards on one or more frozen nodes than is recommended for stable operation. Oversharding can destabilize a cluster when master nodes struggle to track many shards across nodes. High shard counts can also approach limits for virtual memory (mmap) and open file descriptors on the affected nodes. Both might need adjustment if shard counts increase further. In the version (8.15.0) you're running, the memory usage per shard is significantly higher than in more recent versions, where a pivotal change was introduced to optimize memory consumption. Consider upgrading to a more recent version. If that is not an option right now, lower the `cluster.max_shards_per_node.frozen` cluster setting to keep memory consumption in check.

### Guide

[Troubleshooting shards capacity issues](https://docs-v3-preview.elastic.dev/elastic/docs-content/tree/main/troubleshoot/elasticsearch/troubleshooting-shards-capacity-issues)