Fix ES water mark limit in developer dependencies docker-compose.yaml
@@ -53,16 +53,23 @@ services:
- temporal-dependencies-network
elasticsearch:
image: elasticsearch:6.8.8
+ command: elasticsearch
+ container_name: temporal-elasticsearch
+ ports:
+ - "9200:9200"
+ environment:
# Make ES available both on _local_ and _site_,
# and use use _local_ for the publish_host.
#
# See here for details on network configuration:
# https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html
- command: elasticsearch -Enetwork.host=_local_,_site_ -Enetwork.publish_host=_local_
- container_name: temporal-elasticsearch
- ports:
- - "9200:9200"
- environment:
+ - network.host=_local_,_site_
+ - network.publish_host=_local_
+ # Set storage limit to low number
+ - cluster.routing.allocation.disk.threshold_enabled=true
+ - cluster.routing.allocation.disk.watermark.low=512mb
+ - cluster.routing.allocation.disk.watermark.high=256mb
+ - cluster.routing.allocation.disk.watermark.flood_stage=128mb
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms100m -Xmx100m
depends_on:
