Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update OpenSearch container test configuration #36720

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,11 @@ private GenericContainer<?> createOpensearchContainer(ElasticsearchDevServicesBu

container.addEnv("bootstrap.memory_lock", "true");
container.addEnv("plugins.index_state_management.enabled", "false");

// Disable disk-based shard allocation thresholds: on large, relatively full disks (>90% used),
// it will lead to index creation to get stuck waiting for other nodes to join the cluster,
// which will never happen since we only have one node.
// See https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/
container.addEnv("cluster.routing.allocation.disk.threshold_enabled", "false");
container.addEnv("OPENSEARCH_JAVA_OPTS", config.javaOpts);
return container;
}
Expand Down
7 changes: 7 additions & 0 deletions integration-tests/hibernate-search-orm-opensearch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@
See https://opensearch.org/docs/latest/im-plugin/ism/settings/
-->
<plugins.index_state_management.enabled>false</plugins.index_state_management.enabled>
<OPENSEARCH_JAVA_OPTS>-Xms512m -Xmx512m</OPENSEARCH_JAVA_OPTS>
<!-- Disable disk-based shard allocation thresholds: on large, relatively full disks (>90% used),
it will lead to index creation to get stuck waiting for other nodes to join the cluster,
which will never happen since we only have one node.
See https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/
-->
<cluster.routing.allocation.disk.threshold_enabled>false</cluster.routing.allocation.disk.threshold_enabled>
</env>
<ports>
<port>9200:9200</port>
Expand Down
Loading