Commit 51fbe2ca authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added mx JVM heap to elasticsearch dev and ci.

parent 2b388df1
Pipeline #128139 canceled with stages
in 8 minutes and 46 seconds
...@@ -85,9 +85,10 @@ python tests: ...@@ -85,9 +85,10 @@ python tests:
alias: rabbitmq alias: rabbitmq
- name: docker.elastic.co/elasticsearch/elasticsearch:7.17.1 - name: docker.elastic.co/elasticsearch/elasticsearch:7.17.1
alias: elastic alias: elastic
# fix issue with running elastic in gitlab ci runner: command:
# https://gitlab.com/gitlab-org/gitlab-ce/issues/42214 - bash
command: [ "bin/elasticsearch", "-Ediscovery.type=single-node" ] - "-c"
- ES_JAVA_OPTS="-Xms512m -Xmx512m" docker-entrypoint.sh elasticsearch -Ediscovery.type=single-node -Expack.security.enabled=false
- name: mongo:5.0.6 - name: mongo:5.0.6
alias: mongo alias: mongo
variables: variables:
...@@ -101,6 +102,8 @@ python tests: ...@@ -101,6 +102,8 @@ python tests:
NOMAD_KEYCLOAK_PASSWORD: ${CI_KEYCLOAK_ADMIN_PASSWORD} NOMAD_KEYCLOAK_PASSWORD: ${CI_KEYCLOAK_ADMIN_PASSWORD}
NOMAD_NORMALIZE_SPRINGER_DB_PATH: /nomad/fairdi/db/data/springer.msg NOMAD_NORMALIZE_SPRINGER_DB_PATH: /nomad/fairdi/db/data/springer.msg
script: script:
- sleep 5
- curl http://elastic:9200/_cat/health
- cd /app - cd /app
- ls /builds - ls /builds
- python -m pytest --cov=nomad -sv tests - python -m pytest --cov=nomad -sv tests
......
...@@ -103,6 +103,7 @@ services: ...@@ -103,6 +103,7 @@ services:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.1 image: docker.elastic.co/elasticsearch/elasticsearch:7.17.1
container_name: nomad_oasis_elastic container_name: nomad_oasis_elastic
environment: environment:
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- discovery.type=single-node - discovery.type=single-node
volumes: volumes:
- nomad_oasis_elastic:/usr/share/elasticsearch/data - nomad_oasis_elastic:/usr/share/elasticsearch/data
......
...@@ -48,11 +48,13 @@ services: ...@@ -48,11 +48,13 @@ services:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.1 image: docker.elastic.co/elasticsearch/elasticsearch:7.17.1
container_name: nomad_elastic container_name: nomad_elastic
environment: environment:
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- cluster.routing.allocation.disk.threshold_enabled=true - cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.flood_stage=1gb - cluster.routing.allocation.disk.watermark.flood_stage=1gb
- cluster.routing.allocation.disk.watermark.low=4gb - cluster.routing.allocation.disk.watermark.low=4gb
- cluster.routing.allocation.disk.watermark.high=2gb - cluster.routing.allocation.disk.watermark.high=2gb
- discovery.type=single-node - discovery.type=single-node
- xpack.security.enabled=false
ports: ports:
- 9200:9200 - 9200:9200
volumes: volumes:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment