Skip to content

Commit

Permalink
Disable a few features in Elasticsearch containers started for our in…
Browse files Browse the repository at this point in the history
…tegration tests

Some settings seem to have only limited effect on what gets disabled on
startup:

* cluster.deprecation_indexing.enabled doesn't seem to disable index templates
* stack.templates.enabled doesn't seem to disable ingest pipelines

And some features don't seem to have any settings to disable them, in
particular the "Fleet" module.

But this is as far as we can go.

Co-Authored-By: marko-bekhta <[email protected]>
  • Loading branch information
yrodiere and marko-bekhta committed Aug 16, 2023
1 parent feb5f4d commit 0f1f98c
Show file tree
Hide file tree
Showing 11 changed files with 113 additions and 2 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
10 changes: 10 additions & 0 deletions 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 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 0f1f98c

Please sign in to comment.