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
36f1786d
Commit
36f1786d
authored
4 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Add basic support for distributed load generation in UC1
parent
7bfa849b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
execution/run_uc1-new.sh
+3
-1
3 additions, 1 deletion
execution/run_uc1-new.sh
execution/uc1-workload-generator/deployment.yaml
+10
-3
10 additions, 3 deletions
execution/uc1-workload-generator/deployment.yaml
with
13 additions
and
4 deletions
execution/run_uc1-new.sh
+
3
−
1
View file @
36f1786d
...
...
@@ -19,7 +19,9 @@ kubectl exec kafka-client -- bash -c "kafka-topics --zookeeper my-confluent-cp-z
# Start workload generator
NUM_SENSORS
=
$DIM_VALUE
sed
"s/{{NUM_SENSORS}}/
$NUM_SENSORS
/g"
uc1-workload-generator/deployment.yaml | kubectl apply
-f
-
WL_MAX_RECORDS
=
150000
WL_INSTANCES
=
$((
(
NUM_SENSORS
+
(
WL_MAX_RECORDS
-
1
))
/ WL_MAX_RECORDS
))
sed
"s/{{NUM_SENSORS}}/
$NUM_SENSORS
/g; s/{{INSTANCES}}/
$WL_INSTANCES
/g"
uc1-workload-generator/deployment.yaml | kubectl apply
-f
-
# Start application
REPLICAS
=
$INSTANCES
...
...
This diff is collapsed.
Click to expand it.
execution/uc1-workload-generator/deployment.yaml
+
10
−
3
View file @
36f1786d
apiVersion
:
apps/v1
kind
:
Deploymen
t
kind
:
StatefulSe
t
metadata
:
name
:
titan-ccp-load-generator
spec
:
selector
:
matchLabels
:
app
:
titan-ccp-load-generator
replicas
:
1
serviceName
:
titan-ccp-load-generator
replicas
:
{{
INSTANCES
}}
template
:
metadata
:
labels
:
...
...
@@ -15,10 +16,16 @@ spec:
terminationGracePeriodSeconds
:
0
containers
:
-
name
:
workload-generator
image
:
benediktwetzel
/uc1-wg:latest
image
:
soerenhenning
/uc1-wg:latest
env
:
-
name
:
KAFKA_BOOTSTRAP_SERVERS
value
:
"
my-confluent-cp-kafka:9092"
-
name
:
NUM_SENSORS
value
:
"
{{NUM_SENSORS}}"
-
name
:
POD_NAME
valueFrom
:
fieldRef
:
fieldPath
:
metadata.name
-
name
:
INSTANCES
value
:
"
{{INSTANCES}}"
\ No newline at end of file
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