Skip to content

Commit

Permalink
Review v4 elastic setting to wait for index updated (#366)
Browse files Browse the repository at this point in the history
* Tweak elastic config to avoid 137

* Set v4 elastic setting to wait for index upated
This is required especially for test:api:mocha to pass when elastic is
enabled
  • Loading branch information
minottic authored Nov 15, 2024
1 parent 09f2ceb commit f560de4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 5 additions & 5 deletions services/backend/services/v4/config/.elastic.env
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ELASTICSEARCH_ENABLED=yes
ES_HOST="http://elastic:9200"
ES_USERNAME="elastic"
ES_PASSWORD="password"
MONGODB_COLLECTION="elastic"
ES_USERNAME=elastic
ES_PASSWORD=password
MONGODB_COLLECTION=elastic
ES_MAX_RESULT=10000
ES_FIELDS_LIMIT=1000
ES_INDEX="dataset"
ES_REFRESH="false"
ES_INDEX=dataset
ES_REFRESH=wait_for
2 changes: 1 addition & 1 deletion services/backend/services/v4/services/elastic/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
image: docker.elastic.co/elasticsearch/elasticsearch:8.16.0
volumes:
- esdata:/usr/share/elasticsearch/data
mem_limit: 1073741824
mem_limit: 1.5g
ulimits:
memlock:
soft: -1
Expand Down
3 changes: 2 additions & 1 deletion services/backend/services/v4/services/elastic/config/.env
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
node.name=es01
cluster.name=docker-cluster
cluster.initial_master_nodes=es01
ELASTIC_PASSWORD="password"
bootstrap.memory_lock=true
xpack.security.enabled=false
xpack.security.http.ssl.enabled=false
xpack.security.transport.ssl.enabled=false
xpack.license.self_generated.type=basic
ES_JAVA_OPTS="-Xms512m -Xmx512m"
discovery.type=single-node
xpack.ml.enabled=false

0 comments on commit f560de4

Please sign in to comment.