Elasticsearch
Containers running Elasticsearch for DEV purpose.
System requirements
Usage with docker
- Start elasticsearch :
docker compose up -d
-
Open https://es.dev.localhost or https://es.dev.localhost/_cat/nodes?v&pretty
- Disable disk quota / watermark
bash disable-quota.sh
Usage with Kubernetes
See www.elastic.co - Download Elastic Cloud on Kubernetes :
# elastic definitions
kubectl create -f https://download.elastic.co/downloads/eck/2.5.0/crds.yaml
# elastic operator
kubectl apply -f https://download.elastic.co/downloads/eck/2.5.0/operator.yaml
…and usage in geonetwork/manifest/base/elasticsearch.yaml / geonetwork/manifest/base/statefulset.yaml
Troubleshooting
vm.max_map_count too low
sudo sysctl -w vm.max_map_count=262144
Disable disk quota / watermark
bash disable-quota.sh
Resources
- Install Elasticsearch with Docker
- How to disable ElasticSearch disk quota / watermark : avoid read-only problems