Scaling Elasticsearch
For production, you need at least 3 master-eligible nodes.
Configuration (`elasticsearch.yml`)
On Node 1:
yaml
cluster.name: my-cluster
node.name: node-1
network.host: 0.0.0.0
discovery.seed_hosts: ["192.168.0.1", "192.168.0.2", "192.168.0.3"]
cluster.initial_master_nodes: ["node-1", "node-2", "node-3"]Repeat for Node 2 and 3, changing `node.name` and `network.host`.
JVM Heap
Set `ES_JAVA_OPTS` to 50% of available RAM, but no more than 31GB.
Page changelog
Last updated
- 2024-04-25—Initial or baseline update for this page.
Related articles
Deployment
Integrations & Plugins — Connect Your Stack
Patterns for integrating monitoring, auth, storage, CI/CD, and webhooks across your services.
Deployment
Deploying Next.js App Router on Cloud VPS
A comprehensive guide to hosting Next.js applications using Node.js, PM2, and Nginx reverse proxy architecture.
Deployment
Deploying Django with Gunicorn & Nginx
Production-ready Python deployment using Gunicorn as the WSGI server and Nginx as the reverse proxy.
Deployment
Self-Hosted GitLab CE Deployment
Take control of your DevOps pipeline by hosting your own GitLab instance on a cloud VPS.
Deployment
Deploying Strapi Headless CMS
Setting up Strapi v4 with a PostgreSQL database for a robust content API.
Deployment
Self-Hosting a PaaS with Coolify
An open-source, self-hosted alternative to Heroku/Vercel for deploying your apps easily.
Was this page helpful?