Commit 017f692
authored
Add environment variable for embedded ES container (#410)
* 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.1 parent cae06b6 commit 017f692
File tree
1 file changed
+9
-3
lines changed- src/test/java/org/gridsuite/modification/server/utils/elasticsearch
1 file changed
+9
-3
lines changedLines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | | - | |
13 | | - | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
0 commit comments