Skip to content

Commit 7e0f3d5

Browse files
refactor code
Signed-off-by: kusumachalasani <kchalasa@redhat.com>
1 parent 9bd4e74 commit 7e0f3d5

File tree

2 files changed

+23
-14
lines changed

2 files changed

+23
-14
lines changed

monitoring/local_monitoring/ReadMe.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ By default, it runs on the `Kind` cluster.
2828
```
2929

3030
```
31-
Usage: ./local_monitoring_demo.sh [-s|-t] [-c cluster-type] [-e recommendation_experiment] [-l] [-p] [-r] [-i kruize-image] [-u kruize-ui-image] [-b] [-n namespace] [-d load-duration] [-m benchmark-manifests] [-g num of unpartitioned gpu resources]
31+
Usage: ./local_monitoring_demo.sh [-s|-t] [-c cluster-type] [-e recommendation_experiment] [-l] [-p] [-r] [-i kruize-image] [-u kruize-ui-image] [-b] [-n namespace] [-d load-duration] [-m benchmark-manifests]
3232
c = supports minikube, kind and openshift cluster-type
33-
e = supports container, namespace and gpu
33+
e = supports container, namespace and gpu. Default - none.
3434
i = kruize image. Default - quay.io/kruize/autotune_operator:<version as in pom.xml>
3535
l = Run a load against the benchmark
3636
p = expose prometheus port
@@ -41,18 +41,27 @@ b = deploy the benchmark.
4141
n = namespace where benchmark is deployed. Default - default
4242
d = duration to run the benchmark load
4343
m = manifests of the benchmark
44-
g = number of unpartitioned gpu resources available
4544
```
4645

4746
## Understanding the Demo
4847

49-
This demo focuses on using the TFB (TechEmpower Framework Benchmarks) benchmark to simulate different load conditions and observe how Kruize-Autotune reacts with its recommendations. Here’s a breakdown of what happens during the demo:
50-
51-
- TFB deployment in default Namespace
52-
- The TFB benchmark is initially deployed in the default namespace, comprising two key deployments
53-
- tfb-qrh: Serving as the application server.
54-
- tfb-database: Database to the server.
55-
- Load is applied to the server for 20 mins within this namespace to simulate real-world usage scenarios
48+
This demo focuses on installing kruize and also install the benchmarks if asked for through `-e` parameter.
49+
- By default, it installs kruize and provides the URL to access the kruize UI service where the user can create experiments and generate recommendations.
50+
- To use demo benchmarks to create and generate recommendations through a script, pass -e for container, namespace and gpu benchmarks.
51+
- For container and namespace type, benchmark 'TFB' is deployed in a namespace.
52+
- For gpu type, benchmark 'human-eval' is deployed.
53+
54+
Here’s a breakdown of what happens during the demo:
55+
56+
- Deploys benchmarks in a namespace (if -e is passed)
57+
- If -e is container/namespace
58+
- The TFB benchmark is initially deployed in the namespace, comprising two key deployments
59+
- tfb-qrh: Serving as the application server.
60+
- tfb-database: Database to the server.
61+
- Load is applied to the server for 20 mins within this namespace to simulate real-world usage scenarios
62+
- If -e is gpu
63+
- The human-eval benchmark is deployed as job in the namespace.
64+
- The job is set to run for atleast 20 mins to generate the recommendations.
5665
- Install Kruize
5766
- Installs kruize under openshift-tuning name.
5867
- Metadata Collection and Experiment Creation
@@ -62,6 +71,9 @@ This demo focuses on using the TFB (TechEmpower Framework Benchmarks) benchmark
6271
- Generates Recommendations for all the experiments created.
6372

6473
## Recommendations for different load Simulations observed on Openshift
74+
75+
TFB (TechEmpower Framework Benchmarks) benchmark is simulated in different load conditions and below are the different recommendations observed from Kruize-Autotune.
76+
6577
### IDLE
6678
- Experiment: `monitor_tfb-db_benchmark`
6779
- Shows an IDLE scenario where CPU recommendations are not generated due to minimal CPU usage (less than a millicore).

monitoring/local_monitoring/local_monitoring_demo.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ export start_demo=1
6868
export APP_NAMESPACE="default"
6969
export LOAD_DURATION="1200"
7070
export BENCHMARK_MANIFESTS="resource_provisioning_manifests"
71-
export GPUS="0"
7271
export EXPERIMENT_TYPE=""
7372
# Iterate through the commandline options
7473
while getopts c:i:e:n:d:m:g:lbprstu: gopts
@@ -115,9 +114,6 @@ do
115114
m)
116115
BENCHMARK_MANIFESTS="${OPTARG}"
117116
;;
118-
g)
119-
GPUS="${OPTARG}"
120-
;;
121117
*)
122118
usage
123119
esac
@@ -153,4 +149,5 @@ elif [ ${start_demo} -eq 2 ]; then
153149
kruize_local_demo_update ${BENCHMARK} >> "${LOG_FILE}" 2>&1
154150
else
155151
kruize_local_demo_terminate
152+
g = number of unpartitioned gpu resources available
156153
fi

0 commit comments

Comments
 (0)