Skip to content

Commit

Permalink
Merge pull request quarkusio#35366 from yrodiere/elasticsearch-timeout
Browse files Browse the repository at this point in the history
Address Elasticsearch-related integration test failures caused by timeouts
  • Loading branch information
gsmet committed Aug 16, 2023
2 parents 59da325 + bbccb84 commit e17e766
Show file tree
Hide file tree
Showing 11 changed files with 114 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,16 @@
See https://www.elastic.co/guide/en/elasticsearch/reference/8.8/modules-cluster.html#disk-based-shard-allocation
-->
<cluster.routing.allocation.disk.threshold_enabled>false</cluster.routing.allocation.disk.threshold_enabled>
<!-- Disable some features that are not needed in our tests and just slow down startup -->
<xpack.profiling.enabled>false</xpack.profiling.enabled>
<xpack.monitoring.templates.enabled>false</xpack.monitoring.templates.enabled>
<xpack.ml.enabled>false</xpack.ml.enabled>
<xpack.watcher.enabled>false</xpack.watcher.enabled>
<xpack.ent_search.enabled>false</xpack.ent_search.enabled>
<stack.templates.enabled>false</stack.templates.enabled>
<cluster.deprecation_indexing.enabled>false</cluster.deprecation_indexing.enabled>
<indices.lifecycle.history_index_enabled>false</indices.lifecycle.history_index_enabled>
<slm.history_index_enabled>false</slm.history_index_enabled>
</env>
<ports>
<port>9200:9200</port>
Expand Down
10 changes: 10 additions & 0 deletions extensions/hibernate-search-orm-elasticsearch/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,16 @@
See https://www.elastic.co/guide/en/elasticsearch/reference/8.8/modules-cluster.html#disk-based-shard-allocation
-->
<cluster.routing.allocation.disk.threshold_enabled>false</cluster.routing.allocation.disk.threshold_enabled>
<!-- Disable some features that are not needed in our tests and just slow down startup -->
<xpack.profiling.enabled>false</xpack.profiling.enabled>
<xpack.monitoring.templates.enabled>false</xpack.monitoring.templates.enabled>
<xpack.ml.enabled>false</xpack.ml.enabled>
<xpack.watcher.enabled>false</xpack.watcher.enabled>
<xpack.ent_search.enabled>false</xpack.ent_search.enabled>
<stack.templates.enabled>false</stack.templates.enabled>
<cluster.deprecation_indexing.enabled>false</cluster.deprecation_indexing.enabled>
<indices.lifecycle.history_index_enabled>false</indices.lifecycle.history_index_enabled>
<slm.history_index_enabled>false</slm.history_index_enabled>
</env>
<ports>
<port>9200:9200</port>
Expand Down
12 changes: 11 additions & 1 deletion integration-tests/elasticsearch-java-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,16 @@
See https://www.elastic.co/guide/en/elasticsearch/reference/8.8/modules-cluster.html#disk-based-shard-allocation
-->
<cluster.routing.allocation.disk.threshold_enabled>false</cluster.routing.allocation.disk.threshold_enabled>
<!-- Disable some features that are not needed in our tests and just slow down startup -->
<xpack.profiling.enabled>false</xpack.profiling.enabled>
<xpack.monitoring.templates.enabled>false</xpack.monitoring.templates.enabled>
<xpack.ml.enabled>false</xpack.ml.enabled>
<xpack.watcher.enabled>false</xpack.watcher.enabled>
<xpack.ent_search.enabled>false</xpack.ent_search.enabled>
<stack.templates.enabled>false</stack.templates.enabled>
<cluster.deprecation_indexing.enabled>false</cluster.deprecation_indexing.enabled>
<indices.lifecycle.history_index_enabled>false</indices.lifecycle.history_index_enabled>
<slm.history_index_enabled>false</slm.history_index_enabled>
</env>
<ports>
<port>9200:9200</port>
Expand All @@ -188,7 +198,7 @@
<method>GET</method>
<status>200</status>
</http>
<time>20000</time>
<time>30000</time>
</wait>
</run>
</image>
Expand Down
10 changes: 10 additions & 0 deletions integration-tests/elasticsearch-rest-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,16 @@
See https://www.elastic.co/guide/en/elasticsearch/reference/8.8/modules-cluster.html#disk-based-shard-allocation
-->
<cluster.routing.allocation.disk.threshold_enabled>false</cluster.routing.allocation.disk.threshold_enabled>
<!-- Disable some features that are not needed in our tests and just slow down startup -->
<xpack.profiling.enabled>false</xpack.profiling.enabled>
<xpack.monitoring.templates.enabled>false</xpack.monitoring.templates.enabled>
<xpack.ml.enabled>false</xpack.ml.enabled>
<xpack.watcher.enabled>false</xpack.watcher.enabled>
<xpack.ent_search.enabled>false</xpack.ent_search.enabled>
<stack.templates.enabled>false</stack.templates.enabled>
<cluster.deprecation_indexing.enabled>false</cluster.deprecation_indexing.enabled>
<indices.lifecycle.history_index_enabled>false</indices.lifecycle.history_index_enabled>
<slm.history_index_enabled>false</slm.history_index_enabled>
</env>
<ports>
<port>9200:9200</port>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,18 @@
and lead to problems on large disks with little space left.
See https://www.elastic.co/guide/en/elasticsearch/reference/8.8/modules-cluster.html#disk-based-shard-allocation
-->
<cluster.routing.allocation.disk.threshold_enabled>false</cluster.routing.allocation.disk.threshold_enabled> </env>
<cluster.routing.allocation.disk.threshold_enabled>false</cluster.routing.allocation.disk.threshold_enabled>
<!-- Disable some features that are not needed in our tests and just slow down startup -->
<xpack.profiling.enabled>false</xpack.profiling.enabled>
<xpack.monitoring.templates.enabled>false</xpack.monitoring.templates.enabled>
<xpack.ml.enabled>false</xpack.ml.enabled>
<xpack.watcher.enabled>false</xpack.watcher.enabled>
<xpack.ent_search.enabled>false</xpack.ent_search.enabled>
<stack.templates.enabled>false</stack.templates.enabled>
<cluster.deprecation_indexing.enabled>false</cluster.deprecation_indexing.enabled>
<indices.lifecycle.history_index_enabled>false</indices.lifecycle.history_index_enabled>
<slm.history_index_enabled>false</slm.history_index_enabled>
</env>
<ports>
<port>9200:9200</port>
</ports>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,16 @@
See https://www.elastic.co/guide/en/elasticsearch/reference/8.8/modules-cluster.html#disk-based-shard-allocation
-->
<cluster.routing.allocation.disk.threshold_enabled>false</cluster.routing.allocation.disk.threshold_enabled>
<!-- Disable some features that are not needed in our tests and just slow down startup -->
<xpack.profiling.enabled>false</xpack.profiling.enabled>
<xpack.monitoring.templates.enabled>false</xpack.monitoring.templates.enabled>
<xpack.ml.enabled>false</xpack.ml.enabled>
<xpack.watcher.enabled>false</xpack.watcher.enabled>
<xpack.ent_search.enabled>false</xpack.ent_search.enabled>
<stack.templates.enabled>false</stack.templates.enabled>
<cluster.deprecation_indexing.enabled>false</cluster.deprecation_indexing.enabled>
<indices.lifecycle.history_index_enabled>false</indices.lifecycle.history_index_enabled>
<slm.history_index_enabled>false</slm.history_index_enabled>
</env>
<ports>
<port>9200:9200</port>
Expand Down
10 changes: 10 additions & 0 deletions integration-tests/hibernate-search-orm-elasticsearch/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,16 @@
See https://www.elastic.co/guide/en/elasticsearch/reference/8.8/modules-cluster.html#disk-based-shard-allocation
-->
<cluster.routing.allocation.disk.threshold_enabled>false</cluster.routing.allocation.disk.threshold_enabled>
<!-- Disable some features that are not needed in our tests and just slow down startup -->
<xpack.profiling.enabled>false</xpack.profiling.enabled>
<xpack.monitoring.templates.enabled>false</xpack.monitoring.templates.enabled>
<xpack.ml.enabled>false</xpack.ml.enabled>
<xpack.watcher.enabled>false</xpack.watcher.enabled>
<xpack.ent_search.enabled>false</xpack.ent_search.enabled>
<stack.templates.enabled>false</stack.templates.enabled>
<cluster.deprecation_indexing.enabled>false</cluster.deprecation_indexing.enabled>
<indices.lifecycle.history_index_enabled>false</indices.lifecycle.history_index_enabled>
<slm.history_index_enabled>false</slm.history_index_enabled>
</env>
<ports>
<port>9200:9200</port>
Expand Down
10 changes: 10 additions & 0 deletions integration-tests/logging-gelf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,16 @@
See https://www.elastic.co/guide/en/elasticsearch/reference/8.8/modules-cluster.html#disk-based-shard-allocation
-->
<cluster.routing.allocation.disk.threshold_enabled>false</cluster.routing.allocation.disk.threshold_enabled>
<!-- Disable some features that are not needed in our tests and just slow down startup -->
<xpack.profiling.enabled>false</xpack.profiling.enabled>
<xpack.monitoring.templates.enabled>false</xpack.monitoring.templates.enabled>
<xpack.ml.enabled>false</xpack.ml.enabled>
<xpack.watcher.enabled>false</xpack.watcher.enabled>
<xpack.ent_search.enabled>false</xpack.ent_search.enabled>
<stack.templates.enabled>false</stack.templates.enabled>
<cluster.deprecation_indexing.enabled>false</cluster.deprecation_indexing.enabled>
<indices.lifecycle.history_index_enabled>false</indices.lifecycle.history_index_enabled>
<slm.history_index_enabled>false</slm.history_index_enabled>
</env>
<log>
<prefix>Elasticsearch:</prefix>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ services:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
discovery.type: "single-node"
xpack.security.enabled: "false"
cluster.routing.allocation.disk.threshold_enabled: false
cluster.routing.allocation.disk.threshold_enabled: "false"
# Disable some features that are not needed in our tests and just slow down startup -->
xpack.profiling.enabled: "false"
xpack.monitoring.templates.enabled: "false"
xpack.ml.enabled: "false"
xpack.watcher.enabled: "false"
xpack.ent_search.enabled: "false"
stack.templates.enabled: "false"
cluster.deprecation_indexing.enabled: "false"
indices.lifecycle.history_index_enabled: "false"
slm.history_index_enabled: "false"
networks:
- efk

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ services:
discovery.type: "single-node"
xpack.security.enabled: "false"
cluster.routing.allocation.disk.threshold_enabled: false
# Disable some features that are not needed in our tests and just slow down startup -->
xpack.profiling.enabled: "false"
xpack.monitoring.templates.enabled: "false"
xpack.ml.enabled: "false"
xpack.watcher.enabled: "false"
xpack.ent_search.enabled: "false"
stack.templates.enabled: "false"
cluster.deprecation_indexing.enabled: "false"
indices.lifecycle.history_index_enabled: "false"
slm.history_index_enabled: "false"
networks:
- elk

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ services:
discovery.type: "single-node"
xpack.security.enabled: "false"
cluster.routing.allocation.disk.threshold_enabled: false
# Disable some features that are not needed in our tests and just slow down startup -->
xpack.profiling.enabled: "false"
xpack.monitoring.templates.enabled: "false"
xpack.ml.enabled: "false"
xpack.watcher.enabled: "false"
xpack.ent_search.enabled: "false"
stack.templates.enabled: "false"
cluster.deprecation_indexing.enabled: "false"
indices.lifecycle.history_index_enabled: "false"
slm.history_index_enabled: "false"
networks:
- graylog

Expand Down

0 comments on commit e17e766

Please sign in to comment.