liveBook · Manning

Configuration

As explained in Elasticsearch in Action, Second Edition

A configuration is a set of settings that controls the behavior and operation of a software system.

Configuration is the set of settings that controls how an Elasticsearch system operates. Defaults make initial setup straightforward, but production deployments usually require deliberate changes for cluster behavior, storage, networking, memory, logging, and security. section 14.0 section 1.4.5

Organize Elasticsearch configuration by the part of the system it changes:

  • Use elasticsearch.yml for the cluster name, node information, data and log paths, network settings, and security settings. section 14.5
  • Use log4j2.properties to set Elasticsearch node logging levels, including detailed trace-level diagnostics. section 14.5 section 14.0
  • Use jvm.options to set the heap memory available to the running node. section 14.5 section 14.0
  • Configure index-level attributes such as shard and replica counts when creating an index, because they affect storage and search retrieval. section 6.1

Choosing the configuration directory

A binary installation reads its configuration files from $ES_HOME/config by default. A Debian or RPM installation uses /etc/elasticsearch/config. When configuration must live elsewhere, set and export ES_PATH_CONF to the replacement directory. This location contains elasticsearch.yml, log4j2.properties, and jvm.options. section 14.5

Treat configuration as an operational responsibility rather than a one-time setup task. As data and usage grow, administrators may need to tune memory, manage node failures, change network behavior, resize shards or replicas, and prepare snapshots for recovery. section 14.0 section 1.4.5

How Elasticsearch in Action, Second Edition covers it

How deep it goes
Explains configuration categories, file locations, and operational purposes, while stopping short of enumerating every available setting.
Examples
Uses elasticsearch.yml, log4j2.properties, jvm.options, installation configuration paths, and index shard and replica settings.
What it assumes
Assumes basic familiarity with Elasticsearch nodes and indexes while introducing configuration files, paths, shards, replicas, and operational tuning.
What you can do after
Operate/configure Elasticsearch by locating its settings, adjusting node and index behavior, and preparing deployments for production demands.
How it connects
Connects configuration with clusters, nodes, shards, replicas, networking, heap memory, logging, security, snapshots, and Kibana.

Also explained in

Compare how 23 books explain configuration →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Elasticsearch in Action, Second Edition. The section links point to the parts of the book it draws on.