Skip to content

Commit

Permalink
Replaced native memory threshold settings with JVM heap memory thresh…
Browse files Browse the repository at this point in the history
…old. (opensearch-project#788)

Signed-off-by: Nathalie Jonathan <[email protected]>
  • Loading branch information
nathaliellenaa authored Jan 14, 2025
1 parent 0d63cdb commit 5e22b8b
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Fixed ingest API schemas ([#766](https://github.com/opensearch-project/opensearch-api-specification/pull/766))
- Fixed CAT API schemas ([#769](https://github.com/opensearch-project/opensearch-api-specification/pull/769))
- Fixed core API schemas ([#777](https://github.com/opensearch-project/opensearch-api-specification/pull/777))
- Fixed Memory Circuit Breaker flaky test in ML Model APIs ([#782](https://github.com/opensearch-project/opensearch-api-specification/pull/782))
- Fixed Memory Circuit Breaker flaky error in ML APIs ([#788](https://github.com/opensearch-project/opensearch-api-specification/pull/788))

### Changed
- Changed `tasks._common:TaskInfo` and `tasks._common:TaskGroup` to be composed of a `tasks._common:TaskInfoBase` ([#683](https://github.com/opensearch-project/opensearch-api-specification/pull/683))
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/ml/ml/controller/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ prologues:
request:
payload:
persistent:
plugins.ml_commons.native_memory_threshold: 100
plugins.ml_commons.jvm_heap_memory_threshold: 100
- path: /_plugins/_ml/models/_register
id: register_model
method: POST
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/ml/ml/controller/delete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ prologues:
request:
payload:
persistent:
plugins.ml_commons.native_memory_threshold: 100
plugins.ml_commons.jvm_heap_memory_threshold: 100
- path: /_plugins/_ml/models/_register
id: register_model
method: POST
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/ml/ml/controller/get.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ prologues:
request:
payload:
persistent:
plugins.ml_commons.native_memory_threshold: 100
plugins.ml_commons.jvm_heap_memory_threshold: 100
- path: /_plugins/_ml/models/_register
id: register_model
method: POST
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/ml/ml/controller/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ prologues:
request:
payload:
persistent:
plugins.ml_commons.native_memory_threshold: 100
plugins.ml_commons.jvm_heap_memory_threshold: 100
- path: /_plugins/_ml/models/_register
id: register_model
method: POST
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/ml/ml/models/load.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ prologues:
request:
payload:
persistent:
plugins.ml_commons.native_memory_threshold: 100
plugins.ml_commons.jvm_heap_memory_threshold: 100
- path: /_plugins/_ml/models/_register
id: register_model
method: POST
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/ml/ml/models/predict.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ prologues:
persistent:
plugins.ml_commons.only_run_on_ml_node: false
plugins.ml_commons.model_access_control_enabled: true
plugins.ml_commons.native_memory_threshold: 100
plugins.ml_commons.jvm_heap_memory_threshold: 100
- path: /_plugins/_ml/model_groups/_register
id: create_model_group
method: POST
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/ml/ml/models/search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ prologues:
request:
payload:
persistent:
plugins.ml_commons.native_memory_threshold: 100
plugins.ml_commons.jvm_heap_memory_threshold: 100
- path: /_plugins/_ml/models/_register
id: register_model
method: POST
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/ml/ml/models/undeploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ prologues:
payload:
persistent:
plugins.ml_commons.allow_custom_deployment_plan: true
plugins.ml_commons.native_memory_threshold: 100
plugins.ml_commons.jvm_heap_memory_threshold: 100
- path: /_plugins/_ml/models/_register
id: register_model
method: POST
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/ml/ml/models/unload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ prologues:
payload:
persistent:
plugins.ml_commons.allow_custom_deployment_plan: true
plugins.ml_commons.native_memory_threshold: 100
plugins.ml_commons.jvm_heap_memory_threshold: 100
- path: /_plugins/_ml/models/_register
id: register_model
method: POST
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/ml/ml/models/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ prologues:
request:
payload:
persistent:
plugins.ml_commons.native_memory_threshold: 100
plugins.ml_commons.jvm_heap_memory_threshold: 100
epilogues:
- path: /_plugins/_ml/tasks/{task_id}
id: get_completed_task
Expand Down

0 comments on commit 5e22b8b

Please sign in to comment.