Skip to content

Commit cb5d4a9

Browse files
guojialiang92Harsh Kothari
authored andcommitted
[segment replication] Increase the default segment counter step size when replica promoting (opensearch-project#17568)
* add segment counter increment step setting Signed-off-by: guojialiang <[email protected]> * add changelog Signed-off-by: guojialiang <[email protected]> * change the default value directly Signed-off-by: guojialiang <[email protected]> * add CHANGELOG Signed-off-by: guojialiang <[email protected]> --------- Signed-off-by: guojialiang <[email protected]> Signed-off-by: Harsh Kothari <[email protected]>
1 parent 560a5e6 commit cb5d4a9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4242
- Unwrap singleton DocValues in date histogram aggregation. ([#17643](https://github.com/opensearch-project/OpenSearch/pull/17643))
4343
- Introduce 512 byte limit to search and ingest pipeline IDs ([#17786](https://github.com/opensearch-project/OpenSearch/pull/17786))
4444
- Avoid skewed segment replication lag metric ([#17831](https://github.com/opensearch-project/OpenSearch/pull/17831))
45+
- Increase the default segment counter step size when replica promoting ([#17568](https://github.com/opensearch-project/OpenSearch/pull/17568))
4546

4647
### Dependencies
4748
- Bump `com.nimbusds:nimbus-jose-jwt` from 9.41.1 to 10.0.2 ([#17607](https://github.com/opensearch-project/OpenSearch/pull/17607), [#17669](https://github.com/opensearch-project/OpenSearch/pull/17669))

server/src/main/java/org/opensearch/index/engine/NRTReplicationEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class NRTReplicationEngine extends Engine {
6767

6868
private volatile long lastReceivedPrimaryGen = SequenceNumbers.NO_OPS_PERFORMED;
6969

70-
private static final int SI_COUNTER_INCREMENT = 10;
70+
private static final int SI_COUNTER_INCREMENT = 100000;
7171

7272
public NRTReplicationEngine(EngineConfig engineConfig) {
7373
super(engineConfig);

0 commit comments

Comments
 (0)