# Single node yellow

**URL:** https://discuss.elastic.co/t/single-node-yellow/335249
**Category:** Elasticsearch
**Created:** [June 5, 2023, 5:07pm UTC](https://discuss.elastic.co/t/single-node-yellow/335249 "2023-06-05T17:07:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![decibel83](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@decibel83](https://discuss.elastic.co/u/decibel83)
#### Post date: [June 5, 2023, 5:07pm UTC](https://discuss.elastic.co/t/single-node-yellow/335249/1 "2023-06-05T17:07:40Z")

</div>

Hi have a single node elastic cluster which is yellow:

```auto
GET /_cluster/health:
{
    "cluster_name": "log",
    "status": "yellow",
    "timed_out": false,
    "number_of_nodes": 1,
    "number_of_data_nodes": 1,
    "active_primary_shards": 133,
    "active_shards": 133,
    "relocating_shards": 0,
    "initializing_shards": 0,
    "unassigned_shards": 93,
    "delayed_unassigned_shards": 0,
    "number_of_pending_tasks": 0,
    "number_of_in_flight_fetch": 0,
    "task_max_waiting_in_queue_millis": 0,
    "active_shards_percent_as_number": 58.849557522123895
}

```

`/_cluster/allocation/explain` gives me the following:

```auto
{
    "note": "No shard was specified in the explain API request, so this response explains a randomly chosen unassigned shard. There may be other unassigned shards in this cluster which cannot be assigned for different reasons. It may not be possible to assign this shard until one of the other shards is assigned correctly. To explain the allocation of other shards (whether assigned or unassigned) you must specify the target shard in the request to this API.",
    "index": ".ds-logs-pfelk-nginx-2023.05.06-000010",
    "shard": 0,
    "primary": false,
    "current_state": "unassigned",
    "unassigned_info": {
        "reason": "INDEX_CREATED",
        "at": "2023-05-06T18:15:58.198Z",
        "last_allocation_status": "no_attempt"
    },
    "can_allocate": "no",
    "allocate_explanation": "Elasticsearch isn't allowed to allocate this shard to any of the nodes in the cluster. Choose a node to which you expect this shard to be allocated, find this node in the node-by-node explanation, and address the reasons which prevent Elasticsearch from allocating this shard there.",
    "node_allocation_decisions": [
        {
            "node_id": "DEl05HEjStW1F3OSTc3HkQ",
            "node_name": "log",
            "transport_address": "192.168.110.140:9300",
            "node_attributes": {
                "ml.machine_memory": "33672753152",
                "ml.allocated_processors": "4",
                "ml.max_jvm_size": "16835936256",
                "ml.allocated_processors_double": "4.0",
                "xpack.installed": "true"
            },
            "node_decision": "no",
            "weight_ranking": 1,
            "deciders": [
                {
                    "decider": "same_shard",
                    "decision": "NO",
                    "explanation": "a copy of this shard is already allocated to this node [[.ds-logs-pfelk-nginx-2023.05.06-000010][0], node[DEl05HEjStW1F3OSTc3HkQ], [P], s[STARTED], a[id=ZDTE-5vATISXeyGFKtxchA], failed_attempts[0]]"
                }
            ]
        }
    ]
}

```

I cannot understand how I could fix.

Could you help me please?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [June 5, 2023, 6:14pm UTC](https://discuss.elastic.co/t/single-node-yellow/335249/2 "2023-06-05T18:14:58Z")

</div>

> [@decibel83](#):
>
> I cannot understand how I could fix.
> 
> Could you help me please?

This happens because per default the indices will have one replica, but since you only have one node you cannot have any replica.

To solve hits you need to edit the template you are using for your indice and set the number of replicas to zero.

---

<div class="post-metadata">

### Author: ![decibel83](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@decibel83](https://discuss.elastic.co/u/decibel83)
#### Post date: [June 6, 2023, 8:38am UTC](https://discuss.elastic.co/t/single-node-yellow/335249/3 "2023-06-06T08:38:07Z")

</div>

Thanks!  
What I understand is that I have to edit the replica settings to 0 for every index and every template I have into my Elasticsearch server.

Is there a way to bulk update this for every index?

Thank you!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 4, 2023, 8:38am UTC](https://discuss.elastic.co/t/single-node-yellow/335249/4 "2023-07-04T08:38:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
