https://github.com/uggla/escl
Elasticsearch 6.4 cluster example with Docker
https://github.com/uggla/escl
Last synced: 3 months ago
JSON representation
Elasticsearch 6.4 cluster example with Docker
- Host: GitHub
- URL: https://github.com/uggla/escl
- Owner: uggla
- License: apache-2.0
- Created: 2019-06-19T08:55:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T14:14:01.000Z (about 7 years ago)
- Last Synced: 2025-03-14T19:59:23.025Z (over 1 year ago)
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cluster with three Elasticsearch nodes
This example brings up a cluster comprising three Elasticsearch nodes, using three docker-compose for each node.
### Prerequisites
1. Docker-Compose.version = v1.24.0
2. Docker for Linux.version = v18.09.6
3. Elasticsearch.version = v6.4.1
4. The following ports must be free on the host: 9200,9300
### Instructions
* Set the vm.max_map_count kernel to at least 262144
```
sysctl -w vm.max_map_count=262144
```
* Ensuring the network publish host is configured in docker-compose for each node
```
network.publish_host=es1.uggla.fr
```
* Starts the containers
```
docker-compose up
```
* Inspect status of cluster
```
curl http://127.0.0.1:9200/_cat/health
```
### Links for help
For more information, see the two following links:
https://www.elastic.co/guide/en/elasticsearch/reference/6.4/docker.html
https://www.elastic.co/guide/en/elasticsearch/reference/6.4/modules-network.html#common-network-settings