Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kmandalas
Last active February 11, 2022 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmandalas/f66d51c3964adabf48312377d1c825d9 to your computer and use it in GitHub Desktop.
Save kmandalas/f66d51c3964adabf48312377d1c825d9 to your computer and use it in GitHub Desktop.
Master node's elasticsearch config
# ======================== Elasticsearch Configuration =========================
#
# ---------------------------------- Cluster -----------------------------------
#
# Cluster name:
#
cluster.name: elasticsearch-cluster
#
# ------------------------------------ Node ------------------------------------
#
# Name of the node:
#
node.name: es-node-1
#
# Attributes of the node:
#
node.master: true
node.data: true
node.attr.box_type: hot
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /var/lib/elasticsearch
#
# Path to log files:
#
path.logs: /var/log/elasticsearch
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# ---------------------------------- Network -----------------------------------
#
# Set the bind address to a specific IP (IPv4 or IPv6):
#
network.host: ["172.28.162.21","10.128.162.21","10.128.163.21"]
#
# 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 new node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.zen.ping.unicast.hosts: ["172.28.162.21", "172.28.162.22","172.28.162.23"]
#
# Prevent the "split brain" by configuring the majority of nodes (total number of master-eligible nodes / 2 + 1):
#
discovery.zen.minimum_master_nodes: 2
#
#
# ---------------------------------- Various -----------------------------------
#
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true
#cluster.routing.allocation.enable: all
#cluster.routing.rebalance.enable: all
#cluster.routing.allocation.allow_rebalance: indices_all_active
indices.query.bool.max_clause_count: 2500
path.repo: ["/nfs"]
xpack.security.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.client_authentication: required
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12
xpack.security.transport.ssl.enabled: true
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: http.p12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment