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
5920ba17
Commit
5920ba17
authored
5 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Prepare for more configurations
parent
fb176462
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
execution/run_uc3-new.sh
+14
-7
14 additions, 7 deletions
execution/run_uc3-new.sh
execution/uc3-application/aggregation-deployment.yaml
+3
-3
3 additions, 3 deletions
execution/uc3-application/aggregation-deployment.yaml
with
17 additions
and
10 deletions
execution/run_uc3-new.sh
+
14
−
7
View file @
5920ba17
...
@@ -4,9 +4,9 @@ EXP_ID=$1
...
@@ -4,9 +4,9 @@ EXP_ID=$1
DIM_VALUE
=
$2
DIM_VALUE
=
$2
INSTANCES
=
$3
INSTANCES
=
$3
PARTITIONS
=
$4
PARTITIONS
=
$4
#
CPU_LIMIT=1000
CPU_LIMIT
=
1000
m
#
MEMORY_LIMIT=4Gi
MEMORY_LIMIT
=
4Gi
#
KAFKA_STREAMS_COMMIT_INTERVAL_MS=100
KAFKA_STREAMS_COMMIT_INTERVAL_MS
=
100
EXECUTION_MINUTES
=
5
EXECUTION_MINUTES
=
5
# Create Topics
# Create Topics
...
@@ -19,11 +19,15 @@ kubectl exec kafka-client -- bash -c "kafka-topics --zookeeper my-confluent-cp-z
...
@@ -19,11 +19,15 @@ kubectl exec kafka-client -- bash -c "kafka-topics --zookeeper my-confluent-cp-z
NUM_SENSORS
=
$DIM_VALUE
NUM_SENSORS
=
$DIM_VALUE
WL_MAX_RECORDS
=
150000
WL_MAX_RECORDS
=
150000
WL_INSTANCES
=
$((
(
NUM_SENSORS
+
(
WL_MAX_RECORDS
-
1
))
/ WL_MAX_RECORDS
))
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
-
WORKLOAD_GENERATOR_YAML
=
$(
sed
"s/{{NUM_SENSORS}}/
$NUM_SENSORS
/g; s/{{INSTANCES}}/
$WL_INSTANCES
/g"
uc3-workload-generator/deployment.yaml
)
echo
"
$WORKLOAD_GENERATOR_YAML
"
| kubectl apply
-f
-
# Start application
# Start application
REPLICAS
=
$INSTANCES
REPLICAS
=
$INSTANCES
kubectl apply
-f
uc3-application/aggregation-deployment.yaml
#kubectl apply -f uc3-application/aggregation-deployment.yaml
APPLICATION_YAML
=
$(
sed
"s/{{CPU_LIMIT}}/
$CPU_LIMIT
/g; s/{{MEMORY_LIMIT}}/
$MEMORY_LIMIT
/g; s/{{KAFKA_STREAMS_COMMIT_INTERVAL_MS}}/
$KAFKA_STREAMS_COMMIT_INTERVAL_MS
/g"
uc3-application/aggregation-deployment.yaml
)
echo
"
$APPLICATION_YAML
"
| kubectl apply
-f
-
kubectl scale deployment titan-ccp-aggregation
--replicas
=
$REPLICAS
kubectl scale deployment titan-ccp-aggregation
--replicas
=
$REPLICAS
# Execute for certain time
# Execute for certain time
...
@@ -37,8 +41,11 @@ deactivate
...
@@ -37,8 +41,11 @@ deactivate
# Stop wl and app
# Stop wl and app
#kubectl delete -f uc3-workload-generator/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/{{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
-
echo
"
$WORKLOAD_GENERATOR_YAML
"
| kubectl delete
-f
-
kubectl delete
-f
uc1-application/aggregation-deployment.yaml
#kubectl delete -f uc1-application/aggregation-deployment.yaml
#sed "s/{{CPU_LIMIT}}/1000m/g; s/{{MEMORY_LIMIT}}/4Gi/g; s/{{KAFKA_STREAMS_COMMIT_INTERVAL_MS}}/100/g" uc3-application/aggregation-deployment.yaml | kubectl delete -f -
echo
"
$APPLICATION_YAML
"
| kubectl delete
-f
-
# Delete topics instead of Kafka
# Delete topics instead of Kafka
...
...
This diff is collapsed.
Click to expand it.
execution/uc3-application/aggregation-deployment.yaml
+
3
−
3
View file @
5920ba17
...
@@ -25,13 +25,13 @@ spec:
...
@@ -25,13 +25,13 @@ spec:
-
name
:
KAFKA_WINDOW_DURATION_MINUTES
-
name
:
KAFKA_WINDOW_DURATION_MINUTES
value
:
"
1"
value
:
"
1"
-
name
:
COMMIT_INTERVAL_MS
-
name
:
COMMIT_INTERVAL_MS
value
:
"
100
"
value
:
"
{{KAFKA_STREAMS_COMMIT_INTERVAL_MS}}
"
-
name
:
JAVA_OPTS
-
name
:
JAVA_OPTS
value
:
"
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=5555"
value
:
"
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=5555"
resources
:
resources
:
limits
:
limits
:
memory
:
"
4Gi
"
memory
:
"
{{MEMORY_LIMIT}}
"
cpu
:
"
1000m
"
cpu
:
"
{{CPU_LIMIT}}
"
-
name
:
prometheus-jmx-exporter
-
name
:
prometheus-jmx-exporter
image
:
"
solsson/kafka-prometheus-jmx-exporter@sha256:6f82e2b0464f50da8104acd7363fb9b995001ddff77d248379f8788e78946143"
image
:
"
solsson/kafka-prometheus-jmx-exporter@sha256:6f82e2b0464f50da8104acd7363fb9b995001ddff77d248379f8788e78946143"
command
:
command
:
...
...
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