Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
eaf4b6de
Commit
eaf4b6de
authored
4 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Create instances count as required
parent
351b9ec6
No related branches found
No related tags found
2 merge requests
!33
Fix workload generation for benchmark UC2
,
!32
Draft: Create instances count as required
Pipeline
#822
passed
4 years ago
Stage: build
Stage: test
Stage: check
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
execution/run_uc2.sh
+6
-0
6 additions, 0 deletions
execution/run_uc2.sh
execution/run_uc4.sh
+5
-2
5 additions, 2 deletions
execution/run_uc4.sh
with
11 additions
and
2 deletions
execution/run_uc2.sh
+
6
−
0
View file @
eaf4b6de
...
@@ -26,7 +26,13 @@ kubectl exec kafka-client -- bash -c "kafka-topics --zookeeper my-confluent-cp-z
...
@@ -26,7 +26,13 @@ kubectl exec kafka-client -- bash -c "kafka-topics --zookeeper my-confluent-cp-z
# Start workload generator
# Start workload generator
NUM_NESTED_GROUPS
=
$DIM_VALUE
NUM_NESTED_GROUPS
=
$DIM_VALUE
WL_MAX_RECORDS
=
150000
APROX_NUM_SENSORS
=
$((
4
**
NUM_NESTED_GROUPS
))
NUM_NESTED_GROUPS
WL_INSTANCES
=
$((
(
APROX_NUM_SENSORS
+
(
WL_MAX_RECORDS
-
1
))
/ WL_MAX_RECORDS
))
sed
"s/{{NUM_NESTED_GROUPS}}/
$NUM_NESTED_GROUPS
/g"
uc2-workload-generator/deployment.yaml | kubectl apply
-f
-
sed
"s/{{NUM_NESTED_GROUPS}}/
$NUM_NESTED_GROUPS
/g"
uc2-workload-generator/deployment.yaml | kubectl apply
-f
-
WORKLOAD_GENERATOR_YAML
=
$(
sed
"s/{{NUM_NESTED_GROUPS}}/
$NUM_NESTED_GROUPS
/g; s/{{INSTANCES}}/
$WL_INSTANCES
/g"
uc2-workload-generator/deployment.yaml
)
echo
"
$WORKLOAD_GENERATOR_YAML
"
| kubectl apply
-f
-
# Start application
# Start application
REPLICAS
=
$INSTANCES
REPLICAS
=
$INSTANCES
...
...
This diff is collapsed.
Click to expand it.
execution/run_uc4.sh
+
5
−
2
View file @
eaf4b6de
...
@@ -26,8 +26,11 @@ kubectl exec kafka-client -- bash -c "kafka-topics --zookeeper my-confluent-cp-z
...
@@ -26,8 +26,11 @@ kubectl exec kafka-client -- bash -c "kafka-topics --zookeeper my-confluent-cp-z
# Start workload generator
# Start workload generator
NUM_SENSORS
=
$DIM_VALUE
NUM_SENSORS
=
$DIM_VALUE
#NUM_SENSORS=xy
WL_MAX_RECORDS
=
150000
sed
"s/{{NUM_SENSORS}}/
$NUM_SENSORS
/g"
uc4-workload-generator/deployment.yaml | kubectl apply
-f
-
WL_INSTANCES
=
$((
(
NUM_SENSORS
+
(
WL_MAX_RECORDS
-
1
))
/ WL_MAX_RECORDS
))
WORKLOAD_GENERATOR_YAML
=
$(
sed
"s/{{NUM_SENSORS}}/
$NUM_SENSORS
/g; s/{{INSTANCES}}/
$WL_INSTANCES
/g"
uc4-workload-generator/deployment.yaml
)
echo
"
$WORKLOAD_GENERATOR_YAML
"
| kubectl apply
-f
-
# Start application
# Start application
REPLICAS
=
$INSTANCES
REPLICAS
=
$INSTANCES
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment