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

Adjust range of allowed percentages of deletes in an index. #93188

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
5 changes: 5 additions & 0 deletions docs/changelog/93188.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 93188
summary: Adjust range of allowed percentages of deletes in an index
area: Engine
type: enhancement
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
*
* Controls the maximum percentage of deleted documents that is tolerated in
* the index. Lower values make the index more space efficient at the
* expense of increased CPU and I/O activity. Values must be between <code>20</code> and
* <code>50</code>. Default value is <code>33</code>.
* expense of increased CPU and I/O activity. Values must be between <code>5</code> and
* <code>50</code>. Default value is <code>20</code>.
* </ul>
*
* <p>
Expand Down Expand Up @@ -110,7 +110,7 @@ public final class MergePolicyConfig {
public static final int DEFAULT_MAX_MERGE_AT_ONCE = 10;
public static final ByteSizeValue DEFAULT_MAX_MERGED_SEGMENT = new ByteSizeValue(5, ByteSizeUnit.GB);
public static final double DEFAULT_SEGMENTS_PER_TIER = 10.0d;
public static final double DEFAULT_DELETES_PCT_ALLOWED = 33.0d;
public static final double DEFAULT_DELETES_PCT_ALLOWED = 20.0d;
private static final String INDEX_COMPOUND_FORMAT_SETTING_KEY = "index.compound_format";
public static final Setting<CompoundFileThreshold> INDEX_COMPOUND_FORMAT_SETTING = new Setting<>(
INDEX_COMPOUND_FORMAT_SETTING_KEY,
Expand Down Expand Up @@ -164,7 +164,7 @@ public final class MergePolicyConfig {
public static final Setting<Double> INDEX_MERGE_POLICY_DELETES_PCT_ALLOWED_SETTING = Setting.doubleSetting(
"index.merge.policy.deletes_pct_allowed",
DEFAULT_DELETES_PCT_ALLOWED,
20.0d,
5.0d,
50.0d,
Property.Dynamic,
Property.IndexScope
Expand Down