Skip to content

Commit

Permalink
Enable remote segment upload backpressure by default (opensearch-proj…
Browse files Browse the repository at this point in the history
…ect#10356)

Signed-off-by: Ashish Singh <[email protected]>
  • Loading branch information
ashking94 authored Oct 4, 2023
1 parent 677ff75 commit e5024a8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- [Tracing Framework] Add support for SpanKind. ([#10122](https://github.com/opensearch-project/OpenSearch/pull/10122))
- Pass parent filter to inner query in nested query ([#10246](https://github.com/opensearch-project/OpenSearch/pull/10246))
- Disable concurrent segment search when terminate_after is used ([#10200](https://github.com/opensearch-project/OpenSearch/pull/10200))
- Enable remote segment upload backpressure by default ([#10356](https://github.com/opensearch-project/OpenSearch/pull/10356))

### Deprecated

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static class Defaults {

public static final Setting<Boolean> REMOTE_REFRESH_SEGMENT_PRESSURE_ENABLED = Setting.boolSetting(
"remote_store.segment.pressure.enabled",
false,
true,
Setting.Property.Dynamic,
Setting.Property.NodeScope
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void tearDown() throws Exception {
public void testIsSegmentsUploadBackpressureEnabled() {
remoteStoreStatsTrackerFactory = new RemoteStoreStatsTrackerFactory(clusterService, Settings.EMPTY);
pressureService = new RemoteStorePressureService(clusterService, Settings.EMPTY, remoteStoreStatsTrackerFactory);
assertFalse(pressureService.isSegmentsUploadBackpressureEnabled());
assertTrue(pressureService.isSegmentsUploadBackpressureEnabled());

Settings newSettings = Settings.builder()
.put(RemoteStorePressureSettings.REMOTE_REFRESH_SEGMENT_PRESSURE_ENABLED.getKey(), "true")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void testGetDefaultSettings() {
);

// Check remote refresh segment pressure enabled is false
assertFalse(pressureSettings.isRemoteRefreshSegmentPressureEnabled());
assertTrue(pressureSettings.isRemoteRefreshSegmentPressureEnabled());

// Check bytes lag variance threshold default value
assertEquals(10.0, pressureSettings.getBytesLagVarianceFactor(), 0.0d);
Expand Down

0 comments on commit e5024a8

Please sign in to comment.