Skip to content

Commit

Permalink
Merge pull request red-hat-storage#9306 from petr-balogh/performance-…
Browse files Browse the repository at this point in the history
…profiles

Add performance profile for deployment
  • Loading branch information
petr-balogh authored Feb 8, 2024
2 parents af8da41 + 9579e43 commit 1f24abc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ higher priority).
* `enable_globalnet` - enable or disable globalnet for submariner, default: true
* `submariner_unreleased_channel` - submariner channel for unreleased downstream build
* `enable_hw_virtualization` - enable hardware virtualization for vSphere platform.
* `performance_profile` - performance profile to be used (balanced, lean, performance).

#### UPGRADE

Expand Down
4 changes: 4 additions & 0 deletions conf/ocsci/performance_profiles/balanced.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This configuration file is used for changing performance profile during deployment.
---
ENV_DATA:
performance_profile: balanced
4 changes: 4 additions & 0 deletions conf/ocsci/performance_profiles/lean.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This configuration file is used for changing performance profile during deployment.
---
ENV_DATA:
performance_profile: lean
4 changes: 4 additions & 0 deletions conf/ocsci/performance_profiles/performance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This configuration file is used for changing performance profile during deployment.
---
ENV_DATA:
performance_profile: performance
3 changes: 3 additions & 0 deletions ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,9 @@ def deploy_ocs_via_operator(self, image=None):
cluster_data["spec"]["encryption"] = {
"storageClassName": storageclassnames["encryption"]
}
performance_profile = config.ENV_DATA.get("performance_profile")
if performance_profile:
cluster_data["spec"]["resourceProfile"] = performance_profile
# Bluestore-rdr for RDR greenfield deployments: 4.14 onwards
if (
(version.get_semantic_ocs_version_from_config() >= version.VERSION_4_14)
Expand Down

0 comments on commit 1f24abc

Please sign in to comment.