Elasticsearch on dedicated servers

Elasticsearch powers search boxes, log platforms and analytics for a huge number of teams. Its source is available again under an open-source licence option, and it runs well on machines with lots of memory and NVMe.

What licence does Elasticsearch use today?

Since 2024 its source code is available under the AGPLv3 open-source licence as an option, alongside the Elastic License and SSPL. The default distribution includes free features such as security, index lifecycle management and Kibana dashboards; some advanced features need a paid subscription from its vendor. Read the subscription page for the features you plan to use.

How do I install the first node?

From the vendor's package repository for Debian, Ubuntu or the EL family. On first start, a new node generates TLS certificates for HTTP and transport, creates a password for the elastic superuser and prints it once, along with an enrollment token for Kibana. Copy both somewhere safe at that moment.

apt install elasticsearch
systemctl enable --now elasticsearch
/usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic -i
/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana

How do more nodes join?

With an enrollment token for nodes, which carries the certificates they need. Generate it on an existing node and pass it to the new node's configuration tool before its first start.

# on an existing node
/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node
# on the new node, before it is started
/usr/share/elasticsearch/bin/elasticsearch-reconfigure-node --enrollment-token eyJ2ZXIiOiI4...

Nodes talk over port 9300 and serve clients on 9200. Keep 9300 on a WireGuard mesh and 9200 behind your firewall, open only to applications and Kibana.

How are node roles and data tiers set?

With node.roles in elasticsearch.yml. Hot nodes take new writes and recent searches, warm nodes hold older read-only indices, and dedicated master-eligible nodes keep cluster state on large clusters. Lifecycle policies move indices between tiers automatically.

TierRolesHardware
Hotdata_hot, data_content, ingestNVMe, plenty of memory, fast cores
Warmdata_warmLarge drives, moderate memory
MastermasterSmall machines, three of them

How much heap should a node have?

Elasticsearch sizes the heap automatically from available memory and node roles, which suits most installs. To set it yourself, add a file in jvm.options.d with equal minimum and maximum, at most half of memory and no more than about 31 GB. The remaining memory serves the file system cache that Lucene relies on. Also set vm.max_map_count to at least 262144 and disable swap or lock memory.

How do lifecycle policies work?

An index lifecycle policy rolls a data stream over to a new backing index by size or age, then moves older indices to warm nodes, shrinks or force-merges them, and deletes them at the end of retention. Data streams handle the rollover aliases for you, so log shippers always write to one name.

PUT _ilm/policy/app-logs
{ "policy": { "phases": {
  "hot":    { "actions": { "rollover": { "max_primary_shard_size": "40gb", "max_age": "1d" } } },
  "warm":   { "min_age": "3d",  "actions": { "forcemerge": { "max_num_segments": 1 }, "allocate": { "number_of_replicas": 1 } } },
  "delete": { "min_age": "45d", "actions": { "delete": {} } } } } }

How do I take snapshots?

Register a repository and schedule snapshots with snapshot lifecycle management. A shared file system repository needs the same path mounted on every node, for example an NFS export from a Storage server; an S3-compatible repository works with a self-hosted object store. Snapshots are incremental, so daily runs stay quick after the first.

Which machines fit?

RoleMachineMemory
Small cluster, three nodesESSENTIAL-464 GB DDR4
Hot nodesESSENTIAL-5128 GB DDR4
Hot nodes, DDR5BUSINESS-5 2026128 GB DDR5
Warm nodesSTORAGE-2 20262x 960 GB SSD NVMe (system) + 2x 24 TB HDD SAS, Soft RAID

ESSENTIAL-5 gives 24 cores and 128 GB DDR4 for $120.00 a month. Our OpenSearch clusters page covers the Apache-licensed fork, which uses the same sizing principles.

Machines for Elasticsearch

Lowest monthly price of each model across its data centres; the model page shows the price in every location.

ModelProcessorCoresMemoryDrivesPortPer month
ESSENTIAL-4AMD EPYC 73131664 GB2x 960 GB SSD NVMe1 Gbps unmetered$106.20
ESSENTIAL-5AMD EPYC 741324128 GB2x 960 GB SSD NVMe1 Gbps unmetered$120.00
ESSENTIAL-8AMD EPYC 753232256 GB2x 480 GB SSD SATA1 Gbps unmetered$126.60
BUSINESS-5 2024AMD EPYC 8224P2496 GB2x 960 GB SSD NVMe3 Gbps unmetered$280.20
BUSINESS-5 2026INTEL Xeon 6527P24128 GB2x 960 GB SSD NVMe3 Gbps unmetered$406.20
STORAGE-2 2026AMD EPYC 4345P832 GB2x 960 GB SSD NVMe + 2x 24 TB HDD SAS3 Gbps unmetered$273.00

Hot nodes want memory and NVMe; Storage models make inexpensive warm nodes.

See all servers and prices

Related pages

OpenSearch clusters

Run OpenSearch for search and logs on bare metal: heap and mmap limits, security plugin setup, shard sizing, index state management and node roles.

Read more

Meilisearch servers

Self-host Meilisearch for site and app search: master and API keys, index settings, memory-mapped storage, indexing speed, snapshots and dumps.

Read more

Big data and analytics

High core EPYC machines and dense disk chassis for Spark, ClickHouse and data lake clusters.

Read more

Storage servers

High capacity hard disk servers from 44 TB to 576 TB raw.

from $109.80 a monthRead more

Questions and answers

Is Elasticsearch open source again?

Since 2024 its source is available under the AGPLv3 licence as an option, alongside the Elastic License and SSPL.

Does Elasticsearch set up security automatically?

Yes. On first start a new node creates TLS certificates and an elastic superuser password and prints a Kibana enrollment token.

How do new nodes join an Elasticsearch cluster?

Create a node enrollment token on an existing node and pass it to elasticsearch-reconfigure-node on the new node before its first start.

How much heap should Elasticsearch use?

It sizes the heap automatically; if set by hand, use at most half of memory and no more than about 31 GB.

How do I move old indices to cheaper nodes?

Give nodes data_hot or data_warm roles and use an index lifecycle policy to move indices to the warm tier by age.