Skip to content

Commit caf333d

Browse files
authored
SEISMIC: Change default circuit breaker limit to 10% (#1565)
* Seismic: Change default circuit breaker limit to 10% Signed-off-by: yuye-aws <[email protected]> * Add change log Signed-off-by: yuye-aws <[email protected]> --------- Signed-off-by: yuye-aws <[email protected]>
1 parent 4610a52 commit caf333d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
77

88
### Features
99

10-
- [SEISMIC] Support SEISMIC, a new sparse ANN algorithm [#1564](https://github.com/opensearch-project/neural-search/pull/1564), [#1563](https://github.com/opensearch-project/neural-search/pull/1563), [#1562](https://github.com/opensearch-project/neural-search/pull/1562), [#1559](https://github.com/opensearch-project/neural-search/pull/1559), [#1557](https://github.com/opensearch-project/neural-search/pull/1557), [#1555](https://github.com/opensearch-project/neural-search/pull/1555), [#1554](https://github.com/opensearch-project/neural-search/pull/1554), [#1553](https://github.com/opensearch-project/neural-search/pull/1553), [#1539](https://github.com/opensearch-project/neural-search/pull/1539), [#1538](https://github.com/opensearch-project/neural-search/pull/1538), [#1537](https://github.com/opensearch-project/neural-search/pull/1537), [#1536](https://github.com/opensearch-project/neural-search/pull/1536), [#1524](https://github.com/opensearch-project/neural-search/pull/1524), [#1514](https://github.com/opensearch-project/neural-search/pull/1514), [#1502](https://github.com/opensearch-project/neural-search/pull/1502)
10+
- [SEISMIC] Support SEISMIC, a new sparse ANN algorithm [#1565](https://github.com/opensearch-project/neural-search/pull/1565), [#1564](https://github.com/opensearch-project/neural-search/pull/1564), [#1563](https://github.com/opensearch-project/neural-search/pull/1563), [#1562](https://github.com/opensearch-project/neural-search/pull/1562), [#1559](https://github.com/opensearch-project/neural-search/pull/1559), [#1557](https://github.com/opensearch-project/neural-search/pull/1557), [#1555](https://github.com/opensearch-project/neural-search/pull/1555), [#1554](https://github.com/opensearch-project/neural-search/pull/1554), [#1553](https://github.com/opensearch-project/neural-search/pull/1553), [#1539](https://github.com/opensearch-project/neural-search/pull/1539), [#1538](https://github.com/opensearch-project/neural-search/pull/1538), [#1537](https://github.com/opensearch-project/neural-search/pull/1537), [#1536](https://github.com/opensearch-project/neural-search/pull/1536), [#1524](https://github.com/opensearch-project/neural-search/pull/1524), [#1514](https://github.com/opensearch-project/neural-search/pull/1514), [#1502](https://github.com/opensearch-project/neural-search/pull/1502)
1111

1212
### Enhancements
1313

src/main/java/org/opensearch/neuralsearch/settings/NeuralSearchSettings.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ public final class NeuralSearchSettings {
2626

2727
/**
2828
* Specifies the initial memory limit for the parent circuit breaker.
29-
* Defaults to 50% of the JVM heap.
29+
* Defaults to 10% of the JVM heap.
3030
*/
31-
private static final String DEFAULT_CIRCUIT_BREAKER_LIMIT = "50%";
31+
private static final String DEFAULT_CIRCUIT_BREAKER_LIMIT = "10%";
3232
/**
3333
* A constant by which the neural data estimations are multiplied to determine the final estimation.
3434
* Default is 1.0 while minimum is 0.0.
@@ -114,7 +114,7 @@ public final class NeuralSearchSettings {
114114
);
115115

116116
/**
117-
* The memory limit for neural circuit breaker. Default is 50% of the JVM heap.
117+
* The memory limit for neural circuit breaker. Default is 10% of the JVM heap.
118118
*/
119119
public static final Setting<ByteSizeValue> NEURAL_CIRCUIT_BREAKER_LIMIT = Setting.memorySizeSetting(
120120
"plugins.neural_search.circuit_breaker.limit",

src/test/java/org/opensearch/neuralsearch/sparse/SparseMemoryStatsIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void setUp() {
4848
@SneakyThrows
4949
public void tearDown() {
5050
disableStats();
51-
updateClusterSettings(NeuralSearchSettings.NEURAL_CIRCUIT_BREAKER_LIMIT.getKey(), "50%");
51+
updateClusterSettings(NeuralSearchSettings.NEURAL_CIRCUIT_BREAKER_LIMIT.getKey(), "10%");
5252
super.tearDown();
5353
}
5454

0 commit comments

Comments
 (0)