Workload

Search Clusters on Dedicated Hardware

Search engines love fast local disks and spare memory for the file system cache. Bare metal gives them both, without a neighbor stealing I/O during a reindex.

Why does search run better on bare metal?

A search query touches many small pieces of many index files. When those files sit in the operating system's page cache, queries return in milliseconds; when they have to come off disk, the drive's random read speed decides everything. Single-tenant NVMe gives you the full random read speed of the drive all day, and nobody else's backup job evicts your index from memory. Reindexing, merges and snapshot restores also run at full disk speed.

How should I split memory between the heap and the cache?

For JVM-based engines such as OpenSearch and Solr, the long-standing rule is to give the heap no more than half of the machine's RAM and to keep it below about 31 GB, so the JVM can keep using compressed object pointers. Everything else is left to the operating system as page cache for the index files. On a 128 GB machine that means a 31 GB heap and roughly 95 GB of cache.

MachineRAMHeapLeft for page cachePer month
S5128 GB31 GBabout 95 GB$88.72
D5256 GB31 GBabout 220 GB$305.34
M1512 GB31 GB per noderoom for two nodes per box$414.70

Engines written in other languages, such as Meilisearch or Typesense, keep their indexes memory mapped and simply want as much RAM as the index is large.

How many nodes do I need?

Three for a cluster that survives a node failure. Cluster coordination needs a majority of master-eligible nodes, and replicas need a second node to live on. Three S5 machines give you 18 cores, 384 GB of RAM and six NVMe drives for $266.16 a month. Keep all three in the same city, because replication traffic and cluster heartbeats are sensitive to latency.

How do I size shards?

A common target is shards of tens of gigabytes each, with at least one replica. Divide the expected index size by that target to get primary shards, then double for replicas. Example: a 300 GB index in 30 GB shards is 10 primaries plus 10 replicas, 600 GB on disk, which fits across three nodes with 2 TB of NVMe each with plenty of headroom for merges. Leave at least 25 percent of every disk free, since merges temporarily need extra space.

When do I need the big NVMe machine?

For log analytics and very large document stores that keep months of data. D21 carries 6x 15.36 TB NVMe + 1x 1 TB NVMe (boot) with two Xeon Gold processors and 256 GB DDR5 for $1,152.97, enough raw space to hold a large hot tier on a single box. For query-heavy clusters with moderate data, the dual-socket D6 with 24 cores, 256 GB DDR4 and 2x 2 TB NVMe at $325.96 is a balanced node.

How do I secure a search cluster?

  • Never expose the engine's HTTP port to the internet; bind it to localhost or your node addresses and put your application in front.
  • Encrypt node-to-node transport with TLS, since nodes talk over their public ports.
  • Snapshot indexes to storage in another city on a schedule.

Machines for Search Nodes

Monthly prices are the same in all six cities. The smallest order is the shortest term that reaches the $40 minimum.

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
S5Intel Xeon E-2276G6 / 12128 GB DDR42x 1 TB NVMe2x 10 Gbps$88.72$88.72 (1 month)
S10Intel Xeon E-2388G8 / 16128 GB DDR42x 1 TB NVMe2x 10 Gbps$113.23$113.23 (1 month)
D52x Intel Xeon Gold 5315Y16 / 32256 GB DDR42x 2 TB NVMe2x 25 Gbps$305.34$305.34 (1 month)
D62x Intel Xeon Gold 531724 / 48256 GB DDR42x 2 TB NVMe2x 25 Gbps$325.96$325.96 (1 month)
M12x Intel Xeon Gold 5315Y16 / 32512 GB DDR42x 4 TB NVMe2x 25 Gbps$414.70$414.70 (1 month)
D212x Intel Xeon Gold 643064 / 128256 GB DDR56x 15.36 TB NVMe + 1x 1 TB NVMe (boot)2x 25 Gbps$1,152.97$1,152.97 (1 month)

Compare all 68 servers »

Keep Reading

In-memory caches and stores

Redis, Valkey or Memcached on machines with 128 GB to 1 TB of RAM, sized with snapshot headroom and NUMA in mind.

Open

Kubernetes clusters

Run k3s or kubeadm on single-tenant nodes with NVMe for etcd and one public address per node behind an ingress.

Open

High memory servers

512 GB to 1 TB of RAM, from $414.70 a month.

Open

Dual CPU servers

Two sockets, up to 72 cores, from $202.94 a month.

Open

FAQ

Quick Answers

Enough that the hot part of the index fits in the page cache after the heap. For JVM engines, keep the heap at half the RAM or less and under about 31 GB; S5 with 128 GB is a solid starting node.

It is better to keep one cluster in one city and replicate between clusters, because cluster coordination and replica writes are sensitive to latency.

Local NVMe. Engines replicate data themselves, so many operators run each drive as a separate data path instead of mirroring.

No. You install and run the engine with full root on the hardware, which keeps the monthly cost to the machine price.

The allowance measures outbound data only. Query responses are small; replication between nodes and snapshots to another city are the larger items to measure.