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

[Circuit-Breaker] Add memory circuit breaker configuration #1347

Merged

Conversation

zuochengding
Copy link
Contributor

@zuochengding zuochengding commented Mar 15, 2022

Add responseMaxHeapPercentage, memoryCircuitBreakerEnabled flags in opensearch_dashboards.yml

Signed-off-by: Zuocheng Ding zding817@gmail.com

Description

This PR is going to add the capability for OSD to control the memory circuit breaker limits.
Comment out some code due to the dependency from opensearch-js client. Tested through local modification in elasticsearch

Dependency : opensearch-project/opensearch-js#207

Issues Resolved

opensearch-project/opensearch-js#202

Check List

  • New functionality includes testing.
    • All tests pass
      • yarn test:jest
      • yarn test:jest_integration
      • yarn test:ftr
  • New functionality has been documented.
  • Commits are signed per the DCO using --signoff

Copy link
Member

@ananzh ananzh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one comment. thanks zuocheng

@zuochengding zuochengding force-pushed the memory-circuit-breaker branch 3 times, most recently from 3110cb2 to f9d7351 Compare March 21, 2022 22:32
src/core/server/opensearch/client/client_config.ts Outdated Show resolved Hide resolved
src/core/server/opensearch/client/client_config.ts Outdated Show resolved Hide resolved
src/core/server/opensearch/opensearch_config.ts Outdated Show resolved Hide resolved
config/opensearch_dashboards.yml Outdated Show resolved Hide resolved
config/opensearch_dashboards.yml Outdated Show resolved Hide resolved
@tmarkley
Copy link
Contributor

Are we adding documentation for this on the OpenSearch Dashboards side of things?

@zuochengding zuochengding force-pushed the memory-circuit-breaker branch 2 times, most recently from 11f36b7 to 6a6abdf Compare March 24, 2022 17:03
ananzh
ananzh previously approved these changes Mar 28, 2022
Copy link
Member

@ananzh ananzh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kavilla
Copy link
Member

kavilla commented Mar 29, 2022

@zuochengding can we convert this to a draft until this ready to consume.

@zuochengding
Copy link
Contributor Author

zuochengding commented Mar 30, 2022

@zuochengding can we convert this to a draft until this ready to consume.

Updated the PR with opensearch-js v1.1.0 consumed. This new revision will be the latest PR.

@kavilla kavilla linked an issue Apr 5, 2022 that may be closed by this pull request
mihirsoni
mihirsoni previously approved these changes Apr 5, 2022
Copy link
Contributor

@mihirsoni mihirsoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !!

ananzh
ananzh previously approved these changes Apr 5, 2022
@kavilla kavilla dismissed tmarkley’s stale review April 7, 2022 12:37

Thanks for blocking, code was merged and npm package was released so now this PR is in a valid state.

Add opensearch.memoryCircuitBreaker.enabled, opensearch.memoryCircuitBreaker.maxPercentage flags in opensearch_dashboards.yml

Signed-off-by: Zuocheng Ding <zding817@gmail.com>
@zuochengding zuochengding dismissed stale reviews from ananzh and mihirsoni via 210f36b April 8, 2022 17:15
@zuochengding zuochengding merged commit 7bc0f85 into opensearch-project:main Apr 12, 2022
tmarkley pushed a commit to tmarkley/opensearch-build that referenced this pull request Apr 14, 2022
  * Adds new `opensearch.memoryCircuitBreaker.enabled` and
  `opensearch.memoryCircuitBreaker.maxPercentage` variables
  for the memory circuit breaker limits.
  * Issue: opensearch-project/opensearch-js#202
  * OpenSearch Dashboards PR: opensearch-project/OpenSearch-Dashboards#1347

Signed-off-by: Tommy Markley <markleyt@amazon.com>
tmarkley pushed a commit to tmarkley/OpenSearch-Dashboards that referenced this pull request Apr 14, 2022
* Cleans up whitespace, reduces delta of the changes.

Follow-up from opensearch-project#1347

Signed-off-by: Tommy Markley <markleyt@amazon.com>
peterzhuamazon pushed a commit to opensearch-project/opensearch-build that referenced this pull request Apr 14, 2022
* Adds new `opensearch.memoryCircuitBreaker.enabled` and
  `opensearch.memoryCircuitBreaker.maxPercentage` variables
  for the memory circuit breaker limits.
  * Issue: opensearch-project/opensearch-js#202
  * OpenSearch Dashboards PR: opensearch-project/OpenSearch-Dashboards#1347

Signed-off-by: Tommy Markley <markleyt@amazon.com>
kavilla pushed a commit that referenced this pull request Apr 14, 2022
* Cleans up whitespace, reduces delta of the changes.

Follow-up from #1347

Signed-off-by: Tommy Markley <markleyt@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[OSJS] Consume circuit breaker
5 participants