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
3f6da3a1
Commit
3f6da3a1
authored
4 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Allow for scaling up UC3 workload generation
parent
c80f993a
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
execution/run_uc1-new.sh
+0
-3
0 additions, 3 deletions
execution/run_uc1-new.sh
execution/run_uc3-new.sh
+7
-5
7 additions, 5 deletions
execution/run_uc3-new.sh
execution/uc3-workload-generator/deployment.yaml
+10
-3
10 additions, 3 deletions
execution/uc3-workload-generator/deployment.yaml
with
17 additions
and
11 deletions
execution/run_uc1-new.sh
+
0
−
3
View file @
3f6da3a1
...
...
@@ -9,9 +9,6 @@ PARTITIONS=$4
#KAFKA_STREAMS_COMMIT_INTERVAL_MS=100
EXECUTION_MINUTES
=
5
# Start up Kafka
# TODO
# Create Topics
#PARTITIONS=40
#kubectl run temp-kafka --rm --attach --restart=Never --image=solsson/kafka --command -- bash -c "./bin/kafka-topics.sh --zookeeper my-confluent-cp-zookeeper:2181 --create --topic input --partitions $PARTITIONS --replication-factor 1; ./bin/kafka-topics.sh --zookeeper my-confluent-cp-zookeeper:2181 --create --topic configuration --partitions 1 --replication-factor 1; ./bin/kafka-topics.sh --zookeeper my-confluent-cp-zookeeper:2181 --create --topic output --partitions $PARTITIONS --replication-factor 1"
...
...
This diff is collapsed.
Click to expand it.
execution/run_uc3-new.sh
+
7
−
5
View file @
3f6da3a1
...
...
@@ -9,8 +9,6 @@ PARTITIONS=$4
#KAFKA_STREAMS_COMMIT_INTERVAL_MS=100
EXECUTION_MINUTES
=
5
# Maybe start up Kafka
# Create Topics
#PARTITIONS=40
#kubectl run temp-kafka --rm --attach --restart=Never --image=solsson/kafka --command -- bash -c "./bin/kafka-topics.sh --zookeeper my-confluent-cp-zookeeper:2181 --create --topic input --partitions $PARTITIONS --replication-factor 1; ./bin/kafka-topics.sh --zookeeper my-confluent-cp-zookeeper:2181 --create --topic configuration --partitions 1 --replication-factor 1; ./bin/kafka-topics.sh --zookeeper my-confluent-cp-zookeeper:2181 --create --topic output --partitions $PARTITIONS --replication-factor 1"
...
...
@@ -19,7 +17,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"
uc3-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"
uc3-workload-generator/deployment.yaml | kubectl apply
-f
-
# Start application
REPLICAS
=
$INSTANCES
...
...
@@ -35,8 +35,10 @@ python lag_analysis.py $EXP_ID uc3 $DIM_VALUE $INSTANCES
deactivate
# Stop wl and app
kubectl delete
-f
uc3-workload-generator/deployment.yaml
kubectl delete
-f
uc3-application/aggregation-deployment.yaml
#kubectl delete -f uc3-workload-generator/deployment.yaml
#sed "s/{{INSTANCES}}/1/g" uc3-workload-generator/deployment.yaml | kubectl delete -f -
sed
"s/{{NUM_SENSORS}}/
$NUM_SENSORS
/g; s/{{INSTANCES}}/
$WL_INSTANCES
/g"
uc3-workload-generator/deployment.yaml | kubectl delete
-f
-
kubectl delete
-f
uc1-application/aggregation-deployment.yaml
# Delete topics instead of Kafka
...
...
This diff is collapsed.
Click to expand it.
execution/uc3-workload-generator/deployment.yaml
+
10
−
3
View file @
3f6da3a1
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
/uc3-wg:latest
image
:
soerenhenning
/uc3-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