Apache Solr open-source search software
SOLR-16915: Set the AffinityPlacementPlugin minimalFreeDiskGB to 5 (#1817)
Houston Putman5926eda577aa
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 9647e7d7eee..7fe2590a383 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -101,6 +101,8 @@ Other Changes* SOLR-16803: Remove dependencies on methods defined in the SimplePostTool from Solr core and solrj modules.+* SOLR-16915: Lower the AffinityPlacementPlugin's default minimalFreeDiskGB to 5 GB (Houston Putman)+================== 9.3.0 ==================Upgrade Notesdiff --git a/solr/core/src/java/org/apache/solr/cluster/placement/plugins/AffinityPlacementConfig.java b/solr/core/src/java/org/apache/solr/cluster/placement/plugins/AffinityPlacementConfig.javaindex 2a5d2bdb4a6..2622082a296 100644--- a/solr/core/src/java/org/apache/solr/cluster/placement/plugins/AffinityPlacementConfig.java+++ b/solr/core/src/java/org/apache/solr/cluster/placement/plugins/AffinityPlacementConfig.java@@ -28,7 +28,7 @@ import org.apache.solr.common.annotation.JsonProperty;/** Configuration bean for {@link AffinityPlacementFactory}. */public class AffinityPlacementConfig implements PlacementPluginConfig {- public static final long DEFAULT_MINIMAL_FREE_DISK_GB = 20L;+ public static final long DEFAULT_MINIMAL_FREE_DISK_GB = 5L;public static final long DEFAULT_PRIORITIZED_FREE_DISK_GB = 100L;public static final AffinityPlacementConfig DEFAULT =diff --git a/solr/solr-ref-guide/modules/configuration-guide/pages/replica-placement-plugins.adoc b/solr/solr-ref-guide/modules/configuration-guide/pages/replica-placement-plugins.adocindex 1f5f19e14ae..4556574ea51 100644--- a/solr/solr-ref-guide/modules/configuration-guide/pages/replica-placement-plugins.adoc+++ b/solr/solr-ref-guide/modules/configuration-guide/pages/replica-placement-plugins.adoc@@ -147,7 +147,7 @@ This plugin supports the following configuration parameters:+[%autowidth,frame=none]|===-|Optional |Default: `20` Gigabytes+|Optional |Default: `5` Gigabytes|===+If a node has strictly less GB of free disk than this value, the node is excluded from assignment decisions.diff --git a/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc b/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adocindex e1cd003fc69..750919eabef 100644--- a/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc+++ b/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc@@ -72,6 +72,10 @@ Please refer to the xref:configuration-guide:commits-transaction-logs.html#hard-for more information on how this change will effect you.Upgrading existing clouds and use-cases that have custom configSets will not be affected by this change.+=== Replica Placements+* The default `minimalFreeDiskGB` value has been lowered from `20GB` to `5GB` when using the xref:configuration-guide:replica-placement-plugins.adoc#affinityplacementfactory[AffinityPlacementPlugin].+Therefore, when using the default settings, nodes that were previously excluded from Replica placements due to low available disk space may be selected after upgrading.+== Solr 9.3=== Binary Releases