# Removing default node roles

**URL:** <https://discuss.elastic.co/t/removing-default-node-roles/265392>\
**Category:** Elasticsearch\
**Created:** [February 24, 2021, 6:35pm UTC](https://discuss.elastic.co/t/removing-default-node-roles/265392 "2021-02-24T18:35:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Russell\_Fulton](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/russell_fulton/32/62888_2.png) [@Russell\_Fulton](https://discuss.elastic.co/u/Russell_Fulton)\
**Post date:** [February 24, 2021, 6:35pm UTC](https://discuss.elastic.co/t/removing-default-node-roles/265392/1 "2021-02-24T18:35:59Z")

</div>

when I display the setting for one of my nodes I get:

```auto
  "nodes": {
    "kAWPcpoxSNSN9WlUsYlQlg": {
      "timestamp": 1614190995674,
      "name": "secesprd01",
      "transport_address": "10.6.0.67:9300",
      "host": "10.6.0.67",
      "ip": "10.6.0.67:9300",
      "roles": [
        "data",
        "data_cold",
        "data_content",
        "data_hot",
        "data_warm",
        "ingest",
        "master",
        "ml",
        "remote_cluster_client",
        "transform"
      ],
      "attributes": {
        "ml.machine_memory": "67510460416",
        "node_type": "hot",
        "xpack.installed": "true",
        "transform.node": "true",
        "ml.max_open_jobs": "20"
      },

```

and we see a list of roles which I did _not_ set explicitly -- I assume these are defaults.

I want to remove the some of the roles but it is not clear how to do this from the [docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html).

Do I have to enumerate all the roles I want in `node.roles`?

If I put `master` into the `node.roles` is the `node.master` setting redundant?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 25, 2021, 2:40am UTC](https://discuss.elastic.co/t/removing-default-node-roles/265392/2 "2021-02-25T02:40:23Z")

</div>

> [@Russell\_Fulton](#):
>
> Do I have to enumerate all the roles I want in `node.roles` ?

If you want specific roles only, yes.

> [@Russell\_Fulton](#):
>
> If I put `master` into the `node.roles` is the `node.master` setting redundant?

Yes.

---

<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:** [March 25, 2021, 2:40am UTC](https://discuss.elastic.co/t/removing-default-node-roles/265392/3 "2021-03-25T02:40:39Z")

</div>

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