Skip to content

Add environment variable for embedded ES container#126

Merged
antoinebhs merged 1 commit intomainfrom
add-es-container-env-vars
Jan 2, 2024
Merged

Add environment variable for embedded ES container#126
antoinebhs merged 1 commit intomainfrom
add-es-container-env-vars

Conversation

@antoinebhs
Copy link
Collaborator

@antoinebhs antoinebhs commented Jan 2, 2024

  • Add same environment variables for the embedded elastic search container as in docker-compose.
  • Limit the memory (Xms/Xmx) to 128m because since ES 7.11.0, heap settings are based on node roles and total system memory #65905. Heap memory default values are computed as :
    50% of total system memory when greater than 1 gigabyte up to a maximum of 31 gigabytes
    cf. gridsuite/deployment@42d4372.
    We cannot accept to allocate 16Go for an embedded ES.

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

* Add same environment variables for the embedded elastic search container as in docker-compose.
* Limit the memory (Xms/Xmx) to 128m.

Signed-off-by: BOUHOURS Antoine <antoine.bouhours@rte-france.com>
@antoinebhs antoinebhs force-pushed the add-es-container-env-vars branch from e120ecd to b81a0fb Compare January 2, 2024 13:31
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 2, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@antoinebhs antoinebhs merged commit e0c0c09 into main Jan 2, 2024
@antoinebhs antoinebhs deleted the add-es-container-env-vars branch January 2, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants