# Configuracion del Node.Roles \[master\]

**URL:** <https://discuss.elastic.co/t/configuracion-del-node-roles-master/327098>\
**Category:** Elasticsearch\
**Created:** [March 6, 2023, 3:22pm UTC](https://discuss.elastic.co/t/configuracion-del-node-roles-master/327098 "2023-03-06T15:22:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeonardoCord](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leonardocord/32/119755_2.png) [@LeonardoCord](https://discuss.elastic.co/u/LeonardoCord)\
**Post date:** [March 6, 2023, 3:22pm UTC](https://discuss.elastic.co/t/configuracion-del-node-roles-master/327098/1 "2023-03-06T15:22:58Z")

</div>

Buenas

Estoy tratando de configurar el Node.Roles [master] debido a que es una configuracion obsoleta en la version que tengo 7.17.6 y he configurado mi .YML pero a la hora de correrlo mi elastic no arranca.

---

<div class="post-metadata">

**Author:** ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)\
**Post date:** [March 6, 2023, 5:55pm UTC](https://discuss.elastic.co/t/configuracion-del-node-roles-master/327098/2 "2023-03-06T17:55:56Z")

</div>

Podemos ver el archivo elasticsearch.yml? Pero aseguarte de no mostrar informacion confidencial. Tambien si es la primera vez de impezar tiene que poner "cluster.initial\_master\_nodes". Aqui es [mas informacion](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/modules-discovery-settings.html).

---

<div class="post-metadata">

**Author:** ![LeonardoCord](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leonardocord/32/119755_2.png) [@LeonardoCord](https://discuss.elastic.co/u/LeonardoCord)\
**Post date:** [March 6, 2023, 6:09pm UTC](https://discuss.elastic.co/t/configuracion-del-node-roles-master/327098/3 "2023-03-06T18:09:23Z")

</div>

# ======================== Elasticsearch Configuration =========================

# 

# NOTE: Elasticsearch comes with reasonable defaults for most settings.

# Before you set out to tweak and tune the configuration, make sure you

# understand what are you trying to accomplish and the consequences.

# 

# The primary way of configuring a node is via this file. This template lists

# the most important settings you may want to configure for a production cluster.

# 

# Please consult the documentation for further information on configuration options:

# [Elasticsearch Guide | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/index.html)

# 

# ---------------------------------- Cluster -----------------------------------

# 

# Use a descriptive name for your cluster:

# 

cluster.name: elasticsearch-prueba

# 

# ------------------------------------ Node ------------------------------------

# 

# Use a descriptive name for the node:

# 

node.name: node-prueba-72

# 

# Add custom attributes to the node:

# 

#node.attr.rack: r1

# 

#node.roles: true  
#roles:

# master: true

# ingest: true

# ml: true

node.master: true  
#node.voting\_only: true  
#node.data: false  
#node.ingest: true  
#node.ml: true

# ----------------------------------- Paths ------------------------------------

# 

# Path to directory where to store the data (separate multiple locations by comma):

# 

path.data: E:/Elastic/Elasticsearch/data  
#"E:\Elastic\Elasticsearch\data"

# 

# Path to log files:

# 

path.logs: E:/Elastic/Elasticsearch/logs  
#"E:\Elastic\Elasticsearch\logs"

# 

# ----------------------------------- Memory -----------------------------------

# 

# Lock the memory on startup:

# 

#bootstrap.memory\_lock: true  
bootstrap.memory\_lock: false

# 

# Make sure that the heap size is set to about half the memory available

# on the system and that the owner of the process is allowed to use this

# limit.

# 

# Elasticsearch performs poorly when the system is swapping the memory.

# 

# ---------------------------------- Network -----------------------------------

# 

# Set the bind address to a specific IP (IPv4 or IPv6):

# 

network.host: localhost

# 

# Set a custom port for HTTP:

# 

#http.port: 9200

# 

# For more information, consult the network module documentation.

# 

# --------------------------------- Discovery ----------------------------------

# 

# Pass an initial list of hosts to perform discovery when this node is started:

# The default list of hosts is ["127.0.0.1", "[::1]"]

# 

#discovery.seed\_hosts: ["host1", "host2"]

# 

# Bootstrap the cluster using an initial set of master-eligible nodes:

# 

#cluster.initial\_master\_nodes: ["node-1", "node-2"]

# 

# For more information, consult the discovery and cluster formation module documentation.

# 

cluster.initial\_master\_nodes: localhost

# ---------------------------------- Gateway -----------------------------------

# 

# Block initial recovery after a full cluster restart until N nodes are started:

# 

#gateway.recover\_after\_nodes: 3

# 

# For more information, consult the gateway module documentation.

# 

# ---------------------------------- Snapshots -----------------------------------

# 

# Configuracion para toma y gestion de snapshots

# 

path.repo: ["E:\Elastic\Backups"]

# 

# 

# 

# ---------------------------------- Various -----------------------------------

# 

# Require explicit names when deleting indices:

# 

#action.destructive\_requires\_name: true  
xpack.ml.enabled: true  
#xpack.monitoring.enabled: true  
xpack.watcher.enabled: true

# This turns on SSL for the HTTP (Rest) interface

xpack.security.http.ssl.enabled: true

# 

# This configures the keystore to use for SSL on HTTP

xpack.security.http.ssl.keystore.path: http.p12

# 

xpack.security.enabled: true  
xpack.security.transport.ssl.enabled: true  
xpack.security.transport.ssl.verification\_mode: certificate  
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12  
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12  
cluster.max\_shards\_per\_node: 100000

---

<div class="post-metadata">

**Author:** ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)\
**Post date:** [March 6, 2023, 7:08pm UTC](https://discuss.elastic.co/t/configuracion-del-node-roles-master/327098/4 "2023-03-06T19:08:25Z")

</div>

Ese archivo de configuratión me confundió un poco, pero, eliminé todo lo extaño y obtuve esto:

```auto
cluster.name: elasticsearch-prueba
node.name: node-prueba-72
path.data: "E:\\Elastic\\Elasticsearch\\data"
path.logs: "E:\\Elastic\\Elasticsearch\\logs"

```

Eso debería funcionar para un clúster de prueba simple de un nodo.

---

<div class="post-metadata">

**Author:** ![LeonardoCord](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leonardocord/32/119755_2.png) [@LeonardoCord](https://discuss.elastic.co/u/LeonardoCord)\
**Post date:** [March 6, 2023, 7:46pm UTC](https://discuss.elastic.co/t/configuracion-del-node-roles-master/327098/5 "2023-03-06T19:46:05Z")

</div>

Es que en la version 8x las configuraciones de nodo.master, ingest y ml ya son obsoletas y entonces la sugerencia es que configure el node.roles [master, ingest, ml] y ps asi la estoy incluyendo en mi .yml pero no arranca.

 ![Captura](https://us1.discourse-cdn.com/elastic/original/3X/8/d/8d2af0f96e77d12d3a66dd20478371b066158b9e.jpeg)

---

<div class="post-metadata">

**Author:** ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)\
**Post date:** [March 7, 2023, 9:33pm UTC](https://discuss.elastic.co/t/configuracion-del-node-roles-master/327098/6 "2023-03-07T21:33:11Z")

</div>

Esta bien. Los valores predeterminados deberían functionar bien.

---

<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:** [April 4, 2023, 9:33pm UTC](https://discuss.elastic.co/t/configuracion-del-node-roles-master/327098/7 "2023-04-04T21:33:30Z")

</div>

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