From 27b417233c46d3ce08f0f88e9a9b40a3c542b097 Mon Sep 17 00:00:00 2001 From: Tyler Smalley Date: Tue, 1 Mar 2022 08:06:39 -0800 Subject: [PATCH] [@kbn/es] Disable ES disk usage threshold (#123674) (cherry picked from commit 49ad5846ae1bf4352baaad6411934db2db02f633) --- packages/kbn-es/src/cluster.js | 1 + packages/kbn-es/src/integration_tests/cluster.test.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/kbn-es/src/cluster.js b/packages/kbn-es/src/cluster.js index 4ad7329752347..22ff9ae3c0cde 100644 --- a/packages/kbn-es/src/cluster.js +++ b/packages/kbn-es/src/cluster.js @@ -261,6 +261,7 @@ exports.Cluster = class Cluster { 'action.destructive_requires_name=true', 'ingest.geoip.downloader.enabled=false', 'search.check_ccs_compatibility=true', + 'cluster.routing.allocation.disk.threshold_enabled=false', ].concat(options.esArgs || []); // Add to esArgs if ssl is enabled diff --git a/packages/kbn-es/src/integration_tests/cluster.test.js b/packages/kbn-es/src/integration_tests/cluster.test.js index 5633bd32b9ab2..271942158dc94 100644 --- a/packages/kbn-es/src/integration_tests/cluster.test.js +++ b/packages/kbn-es/src/integration_tests/cluster.test.js @@ -310,6 +310,7 @@ describe('#start(installPath)', () => { "action.destructive_requires_name=true", "ingest.geoip.downloader.enabled=false", "search.check_ccs_compatibility=true", + "cluster.routing.allocation.disk.threshold_enabled=false", ], undefined, Object { @@ -389,6 +390,7 @@ describe('#run()', () => { "action.destructive_requires_name=true", "ingest.geoip.downloader.enabled=false", "search.check_ccs_compatibility=true", + "cluster.routing.allocation.disk.threshold_enabled=false", ], undefined, Object {