mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-30 19:54:46 +00:00
Merge pull request #44 from balajismaniam/demo-updates
Automatic merge from submit-queue Updated demo. Fixes #30. - Updated pod templates with new label prefix. - Minor changes to job scripts and readme.
This commit is contained in:
commit
e98eb99ad3
5 changed files with 17 additions and 20 deletions
|
@ -107,7 +107,8 @@ such as restricting discovered features with the --label-whitelist option._
|
||||||
| SSE4.2 | Streaming SIMD Extensions 4.2 (SSE4.2)
|
| SSE4.2 | Streaming SIMD Extensions 4.2 (SSE4.2)
|
||||||
| SGX | Software Guard Extensions (SGX)
|
| SGX | Software Guard Extensions (SGX)
|
||||||
|
|
||||||
### System Requirements
|
## Getting started
|
||||||
|
### System requirements
|
||||||
|
|
||||||
1. Linux (x86_64)
|
1. Linux (x86_64)
|
||||||
1. [kubectl] [kubectl-setup] (properly set up and configured to work with your
|
1. [kubectl] [kubectl-setup] (properly set up and configured to work with your
|
||||||
|
|
|
@ -37,21 +37,22 @@ Scripts to reproduce our demo results can be found in [helper-scripts](helper-sc
|
||||||
Follow these easy steps to reproduce the demo.
|
Follow these easy steps to reproduce the demo.
|
||||||
|
|
||||||
1. `cd <helper-script-root>`
|
1. `cd <helper-script-root>`
|
||||||
2. `./run-with-discovery.sh -v <node-feature-discovery-version> -a parsec`
|
2. `./run-with-discovery.sh -a parsec`
|
||||||
3. `./run-with-discovery.sh -v <node-feature-discovery-version> -a cloverleaf`
|
3. `./run-with-discovery.sh -a cloverleaf`
|
||||||
4. `/aggregate-logs-and-plot.sh -a parsec`
|
4. `./run-without-discovery.sh -a parsec`
|
||||||
5. `/aggregate-logs-and-plot.sh -a cloverleaf`
|
5. `./run-without-discovery.sh -a cloverleaf`
|
||||||
|
6. `/aggregate-logs-and-plot.sh -a parsec`
|
||||||
|
7. `/aggregate-logs-and-plot.sh -a cloverleaf`
|
||||||
|
|
||||||
Following the above steps will produce the performance and normalized performance logs and their corresponding plots for each application.
|
Following the above steps will produce the performance and normalized performance logs and their corresponding plots for each application.
|
||||||
|
|
||||||
### Script Documentation
|
### Script Documentation
|
||||||
`run-with-discovery.sh` takes the node feature discovery version and the application name as the input and runs ten application instances using node feature discovery.
|
`run-with-discovery.sh` takes the application name as the input and runs ten application instances using node feature discovery.
|
||||||
```sh
|
```sh
|
||||||
> ./run-with-discovery.sh -h
|
> ./run-with-discovery.sh -h
|
||||||
Usage: run-with-discovery.sh [-v DISCOVERY_VERSION] [-a APPLICATION_NAME]
|
Usage: run-with-discovery.sh [-a APPLICATION_NAME]
|
||||||
Runs pods ten times with discovery enabled.
|
Runs pods ten times with discovery enabled.
|
||||||
|
|
||||||
-v DISCOVERY_VERSION target discovery version DISCOVERY_VERSION.
|
|
||||||
-a APPLICATION_NAME run the pods with APPLICATION_NAME application.
|
-a APPLICATION_NAME run the pods with APPLICATION_NAME application.
|
||||||
APPLICATION_NAME can be one of parsec or cloverleaf.
|
APPLICATION_NAME can be one of parsec or cloverleaf.
|
||||||
```
|
```
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"nodeSelector": {
|
"nodeSelector": {
|
||||||
"node.alpha.intel.com/VER-pstate-turbo": "true"
|
"node.alpha.kubernetes-incubator.io/nfd-pstate-turbo": "true"
|
||||||
},
|
},
|
||||||
"restartPolicy": "Never"
|
"restartPolicy": "Never"
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ metadata:
|
||||||
{
|
{
|
||||||
"matchExpressions": [
|
"matchExpressions": [
|
||||||
{
|
{
|
||||||
"key": "node.alpha.intel.com/VER-pstate-turbo",
|
"key": "node.alpha.kubernetes-incubator.io/nfd-pstate-turbo",
|
||||||
"operator": "DoesNotExist"
|
"operator": "DoesNotExist"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
show_help() {
|
show_help() {
|
||||||
cat << EOF
|
cat << EOF
|
||||||
Usage: ${0##*/} [-v DISCOVERY_VERSION] [-a APPLICATION_NAME]
|
Usage: ${0##*/} [-a APPLICATION_NAME]
|
||||||
Runs pods ten times with discovery enabled.
|
Runs pods ten times with discovery enabled.
|
||||||
|
|
||||||
-v DISCOVERY_VERSION target discovery version DISCOVERY_VERSION.
|
|
||||||
-a APPLICATION_NAME run the pods with APPLICATION_NAME application.
|
-a APPLICATION_NAME run the pods with APPLICATION_NAME application.
|
||||||
APPLICATION_NAME can be one of parsec or cloverleaf.
|
APPLICATION_NAME can be one of parsec or cloverleaf.
|
||||||
EOF
|
EOF
|
||||||
|
@ -16,17 +15,13 @@ then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
version="0.1.0"
|
|
||||||
app="parsec"
|
app="parsec"
|
||||||
|
|
||||||
OPTIND=1
|
OPTIND=1
|
||||||
options="hv:a:"
|
options="ha:"
|
||||||
while getopts $options option
|
while getopts $options option
|
||||||
do
|
do
|
||||||
case $option in
|
case $option in
|
||||||
v)
|
|
||||||
version=$OPTARG
|
|
||||||
;;
|
|
||||||
a)
|
a)
|
||||||
if [ "$OPTARG" == "parsec" ] || [ "$OPTARG" == "cloverleaf" ]
|
if [ "$OPTARG" == "parsec" ] || [ "$OPTARG" == "cloverleaf" ]
|
||||||
then
|
then
|
||||||
|
@ -48,16 +43,16 @@ do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Using discovery verion = $version and application name = $app."
|
echo "Using application name = $app."
|
||||||
echo "Creating pods with node feature discovery enabled."
|
echo "Creating pods with node feature discovery enabled."
|
||||||
for i in {1..10}
|
for i in {1..10}
|
||||||
do
|
do
|
||||||
if [ "$app" == "parsec" ]
|
if [ "$app" == "parsec" ]
|
||||||
then
|
then
|
||||||
sed -e "s/NUM/$i-with-discovery/" -e "s/VER/$version/" -e "s/APP/demo-1/" demo-pod-with-discovery.json.parsec.template > demo-pod-with-discovery.json
|
sed -e "s/NUM/$i-with-discovery/" -e "s/APP/demo-1/" demo-pod-with-discovery.json.parsec.template > demo-pod-with-discovery.json
|
||||||
kubectl create -f demo-pod-with-discovery.json
|
kubectl create -f demo-pod-with-discovery.json
|
||||||
else
|
else
|
||||||
sed -e "s/NUM/$i-with-discovery/" -e "s/VER/$version/" -e "s/APP/demo-2/" demo-pod-with-discovery.yaml.cloverleaf.template > demo-pod-with-discovery.yaml
|
sed -e "s/NUM/$i-with-discovery/" -e "s/APP/demo-2/" demo-pod-with-discovery.yaml.cloverleaf.template > demo-pod-with-discovery.yaml
|
||||||
kubectl create -f demo-pod-with-discovery.yaml
|
kubectl create -f demo-pod-with-discovery.yaml
|
||||||
fi
|
fi
|
||||||
echo "WithDiscovery" >> labels-with-discovery-$app.log
|
echo "WithDiscovery" >> labels-with-discovery-$app.log
|
||||||
|
|
Loading…
Add table
Reference in a new issue