Skip to content

Commit c304763

Browse files
committed
Increase OpenSearch container memory (and Elasticsearch for consistency)
to hopefully decrease the number of failing builds caused by OpenSearch timing out or OOMing in the tests.
1 parent a2947f9 commit c304763

File tree

1 file changed

+2
-2
lines changed
  • util/internal/integrationtest/backend/elasticsearch/src/main/java/org/hibernate/search/util/impl/integrationtest/backend/elasticsearch

1 file changed

+2
-2
lines changed

util/internal/integrationtest/backend/elasticsearch/src/main/java/org/hibernate/search/util/impl/integrationtest/backend/elasticsearch/SearchBackendContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ private static GenericContainer<?> elasticsearch(DockerImageName dockerImageName
9797
// but on CI this is sometimes too much, as we also have the Maven JVM
9898
// and the JVM that runs tests taking up a significant amount of RAM,
9999
// leaving too little for filesystem caches and resulting in freezes:
100-
.withEnv( "ES_JAVA_OPTS", "-Xms1g -Xmx1g" )
100+
.withEnv( "ES_JAVA_OPTS", "-Xms1500m -Xmx1500m" )
101101
// Disable disk-based shard allocation thresholds: on large, relatively full disks (>90% used),
102102
// it will lead to index creation to get stuck waiting for other nodes to join the cluster,
103103
// which will never happen since we only have one node.
@@ -147,7 +147,7 @@ private static GenericContainer<?> opensearch(DockerImageName dockerImageName) {
147147
// it's not practical for testing, so we disable that.
148148
.withEnv( "plugins.security.disabled", "true" )
149149
// Limit the RAM usage.
150-
.withEnv( "OPENSEARCH_JAVA_OPTS", "-Xms1g -Xmx1g" )
150+
.withEnv( "OPENSEARCH_JAVA_OPTS", "-Xms1500m -Xmx1500m" )
151151
// ISM floods the logs with errors, and we don't need it.
152152
// See https://docs-beta.opensearch.org/im-plugin/ism/settings/
153153
.withEnv( "plugins.index_state_management.enabled", "false" )

0 commit comments

Comments
 (0)