Skip to content

Commit

Permalink
Merge pull request #340 from humanmade/increase-es-memory
Browse files Browse the repository at this point in the history
Use max ES container memory limit for Xmx setting
  • Loading branch information
roborourke authored Sep 21, 2021
2 parents 2e0aa68 + eaf1a18 commit 498d39d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/composer/class-docker-compose-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ protected function get_service_elasticsearch() : array {
// Force ES into single-node mode (otherwise defaults to zen discovery as
// network.host is set in the default config).
'discovery.type=single-node',
// Reduce from default of 1GB of memory to 512MB.
'ES_JAVA_OPTS=-Xms512m -Xmx512m',
// Use max container memory limit as the max JVM heap allocation value.
"ES_JAVA_OPTS=-Xms512m -Xmx{$mem_limit}",
],
],
];
Expand Down

0 comments on commit 498d39d

Please sign in to comment.