Skip to content
Snippets Groups Projects
Commit a704a552 authored by Sören Henning's avatar Sören Henning
Browse files

Merge branch 'vertical-scaling' into 'main'

Add resource type for threads (vertical scaling)

Closes #269

See merge request !303
parents 5bd667c5 c9de34b0
No related branches found
No related tags found
1 merge request!303Add resource type for threads (vertical scaling)
Pipeline #10349 passed
Showing
with 360 additions and 0 deletions
...@@ -7,6 +7,7 @@ metadata: ...@@ -7,6 +7,7 @@ metadata:
data: data:
flink-conf.yaml: |+ flink-conf.yaml: |+
jobmanager.rpc.address: flink-jobmanager jobmanager.rpc.address: flink-jobmanager
taskmanager.numberOfTaskSlots: 1
blob.server.port: 6124 blob.server.port: 6124
jobmanager.rpc.port: 6123 jobmanager.rpc.port: 6123
taskmanager.rpc.port: 6122 taskmanager.rpc.port: 6122
......
...@@ -12,6 +12,7 @@ spec: ...@@ -12,6 +12,7 @@ spec:
- configMap: - configMap:
name: "benchmark-resources-uc1-beam-flink" name: "benchmark-resources-uc1-beam-flink"
files: files:
- "flink-configuration-configmap.yaml"
- "taskmanager-deployment.yaml" - "taskmanager-deployment.yaml"
- "taskmanager-service.yaml" - "taskmanager-service.yaml"
- "service-monitor.yaml" - "service-monitor.yaml"
...@@ -35,6 +36,39 @@ spec: ...@@ -35,6 +36,39 @@ spec:
properties: properties:
container: "jobmanager" container: "jobmanager"
variableName: "PARALLELISM" variableName: "PARALLELISM"
- typeName: TaskSlotsAndPodResources
patchers:
- type: ConfigMapYamlPatcher
resource: flink-configuration-configmap.yaml
properties:
fileName: flink-conf.yaml
variableName: taskmanager.numberOfTaskSlots
- type: ResourceLimitPatcher
resource: taskmanager-deployment.yaml
properties:
container: taskmanager
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: taskmanager-deployment.yaml
properties:
container: taskmanager
limitedResource: memory
factor: 4
format: Gi
- type: ConfigMapYamlPatcher
resource: flink-configuration-configmap.yaml
properties:
fileName: flink-conf.yaml
variableName: taskmanager.memory.process.size
factor: 4
suffix: Gb
- type: "EnvVarPatcher"
resource: "jobmanager-deployment.yaml"
properties:
container: "jobmanager"
variableName: "PARALLELISM"
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
...@@ -37,6 +37,27 @@ spec: ...@@ -37,6 +37,27 @@ spec:
patchers: patchers:
- type: "ReplicaPatcher" - type: "ReplicaPatcher"
resource: "uc1-beam-samza-deployment.yaml" resource: "uc1-beam-samza-deployment.yaml"
- typeName: ThreadsAndPodResources
patchers:
- type: EnvVarPatcher
resource: uc1-beam-samza-deployment.yaml
properties:
container: uc1-beam-samza
variableName: SAMZA_JOB_CONTAINER_THREADS_POOL_SIZE
- type: ResourceLimitPatcher
resource: uc1-beam-samza-deployment.yaml
properties:
container: uc1-beam-samza
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: uc1-beam-samza-deployment.yaml
properties:
container: uc1-beam-samza
limitedResource: memory
factor: 4
format: Gi
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
...@@ -7,6 +7,7 @@ metadata: ...@@ -7,6 +7,7 @@ metadata:
data: data:
flink-conf.yaml: |+ flink-conf.yaml: |+
jobmanager.rpc.address: flink-jobmanager jobmanager.rpc.address: flink-jobmanager
taskmanager.numberOfTaskSlots: 1
blob.server.port: 6124 blob.server.port: 6124
jobmanager.rpc.port: 6123 jobmanager.rpc.port: 6123
taskmanager.rpc.port: 6122 taskmanager.rpc.port: 6122
......
...@@ -36,6 +36,39 @@ spec: ...@@ -36,6 +36,39 @@ spec:
properties: properties:
container: "jobmanager" container: "jobmanager"
variableName: "PARALLELISM" variableName: "PARALLELISM"
- typeName: TaskSlotsAndPodResources
patchers:
- type: ConfigMapYamlPatcher
resource: flink-configuration-configmap.yaml
properties:
fileName: flink-conf.yaml
variableName: taskmanager.numberOfTaskSlots
- type: ResourceLimitPatcher
resource: taskmanager-deployment.yaml
properties:
container: taskmanager
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: taskmanager-deployment.yaml
properties:
container: taskmanager
limitedResource: memory
factor: 4
format: Gi
- type: ConfigMapYamlPatcher
resource: flink-configuration-configmap.yaml
properties:
fileName: flink-conf.yaml
variableName: taskmanager.memory.process.size
factor: 4
suffix: Gb
- type: "EnvVarPatcher"
resource: "jobmanager-deployment.yaml"
properties:
container: "jobmanager"
variableName: "PARALLELISM"
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
...@@ -28,6 +28,22 @@ spec: ...@@ -28,6 +28,22 @@ spec:
patchers: patchers:
- type: "ReplicaPatcher" - type: "ReplicaPatcher"
resource: "uc1-hazelcastjet-deployment.yaml" resource: "uc1-hazelcastjet-deployment.yaml"
- typeName: PodResources
patchers:
- type: ResourceLimitPatcher
resource: uc1-hazelcastjet-deployment.yaml
properties:
container: uc-application
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: uc1-hazelcastjet-deployment.yaml
properties:
container: uc-application
limitedResource: memory
factor: 4
format: Gi
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
...@@ -28,6 +28,27 @@ spec: ...@@ -28,6 +28,27 @@ spec:
patchers: patchers:
- type: "ReplicaPatcher" - type: "ReplicaPatcher"
resource: "uc1-kstreams-deployment.yaml" resource: "uc1-kstreams-deployment.yaml"
- typeName: ThreadsAndPodResources
patchers:
- type: EnvVarPatcher
resource: uc1-kstreams-deployment.yaml
properties:
container: uc-application
variableName: NUM_STREAM_THREADS
- type: ResourceLimitPatcher
resource: uc1-kstreams-deployment.yaml
properties:
container: uc-application
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: uc1-kstreams-deployment.yaml
properties:
container: uc-application
limitedResource: memory
factor: 4
format: Gi
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
...@@ -7,6 +7,7 @@ metadata: ...@@ -7,6 +7,7 @@ metadata:
data: data:
flink-conf.yaml: |+ flink-conf.yaml: |+
jobmanager.rpc.address: flink-jobmanager jobmanager.rpc.address: flink-jobmanager
taskmanager.numberOfTaskSlots: 1
blob.server.port: 6124 blob.server.port: 6124
jobmanager.rpc.port: 6123 jobmanager.rpc.port: 6123
taskmanager.rpc.port: 6122 taskmanager.rpc.port: 6122
......
...@@ -12,6 +12,7 @@ spec: ...@@ -12,6 +12,7 @@ spec:
- configMap: - configMap:
name: "benchmark-resources-uc2-beam-flink" name: "benchmark-resources-uc2-beam-flink"
files: files:
- "flink-configuration-configmap.yaml"
- "taskmanager-deployment.yaml" - "taskmanager-deployment.yaml"
- "taskmanager-service.yaml" - "taskmanager-service.yaml"
- "service-monitor.yaml" - "service-monitor.yaml"
...@@ -35,6 +36,39 @@ spec: ...@@ -35,6 +36,39 @@ spec:
properties: properties:
container: "jobmanager" container: "jobmanager"
variableName: "PARALLELISM" variableName: "PARALLELISM"
- typeName: TaskSlotsAndPodResources
patchers:
- type: ConfigMapYamlPatcher
resource: flink-configuration-configmap.yaml
properties:
fileName: flink-conf.yaml
variableName: taskmanager.numberOfTaskSlots
- type: ResourceLimitPatcher
resource: taskmanager-deployment.yaml
properties:
container: taskmanager
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: taskmanager-deployment.yaml
properties:
container: taskmanager
limitedResource: memory
factor: 4
format: Gi
- type: ConfigMapYamlPatcher
resource: flink-configuration-configmap.yaml
properties:
fileName: flink-conf.yaml
variableName: taskmanager.memory.process.size
factor: 4
suffix: Gb
- type: "EnvVarPatcher"
resource: "jobmanager-deployment.yaml"
properties:
container: "jobmanager"
variableName: "PARALLELISM"
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
...@@ -37,6 +37,27 @@ spec: ...@@ -37,6 +37,27 @@ spec:
patchers: patchers:
- type: "ReplicaPatcher" - type: "ReplicaPatcher"
resource: "uc2-beam-samza-deployment.yaml" resource: "uc2-beam-samza-deployment.yaml"
- typeName: ThreadsAndPodResources
patchers:
- type: EnvVarPatcher
resource: uc2-beam-samza-deployment.yaml
properties:
container: uc2-beam-samza
variableName: SAMZA_JOB_CONTAINER_THREADS_POOL_SIZE
- type: ResourceLimitPatcher
resource: uc2-beam-samza-deployment.yaml
properties:
container: uc2-beam-samza
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: uc2-beam-samza-deployment.yaml
properties:
container: uc2-beam-samza
limitedResource: memory
factor: 4
format: Gi
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
...@@ -7,6 +7,7 @@ metadata: ...@@ -7,6 +7,7 @@ metadata:
data: data:
flink-conf.yaml: |+ flink-conf.yaml: |+
jobmanager.rpc.address: flink-jobmanager jobmanager.rpc.address: flink-jobmanager
taskmanager.numberOfTaskSlots: 1
blob.server.port: 6124 blob.server.port: 6124
jobmanager.rpc.port: 6123 jobmanager.rpc.port: 6123
taskmanager.rpc.port: 6122 taskmanager.rpc.port: 6122
......
...@@ -36,6 +36,39 @@ spec: ...@@ -36,6 +36,39 @@ spec:
properties: properties:
container: "jobmanager" container: "jobmanager"
variableName: "PARALLELISM" variableName: "PARALLELISM"
- typeName: TaskSlotsAndPodResources
patchers:
- type: ConfigMapYamlPatcher
resource: flink-configuration-configmap.yaml
properties:
fileName: flink-conf.yaml
variableName: taskmanager.numberOfTaskSlots
- type: ResourceLimitPatcher
resource: taskmanager-deployment.yaml
properties:
container: taskmanager
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: taskmanager-deployment.yaml
properties:
container: taskmanager
limitedResource: memory
factor: 4
format: Gi
- type: ConfigMapYamlPatcher
resource: flink-configuration-configmap.yaml
properties:
fileName: flink-conf.yaml
variableName: taskmanager.memory.process.size
factor: 4
suffix: Gb
- type: "EnvVarPatcher"
resource: "jobmanager-deployment.yaml"
properties:
container: "jobmanager"
variableName: "PARALLELISM"
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
...@@ -28,6 +28,22 @@ spec: ...@@ -28,6 +28,22 @@ spec:
patchers: patchers:
- type: "ReplicaPatcher" - type: "ReplicaPatcher"
resource: "uc2-hazelcastjet-deployment.yaml" resource: "uc2-hazelcastjet-deployment.yaml"
- typeName: PodResources
patchers:
- type: ResourceLimitPatcher
resource: uc2-hazelcastjet-deployment.yaml
properties:
container: uc-application
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: uc2-hazelcastjet-deployment.yaml
properties:
container: uc-application
limitedResource: memory
factor: 4
format: Gi
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
...@@ -28,6 +28,27 @@ spec: ...@@ -28,6 +28,27 @@ spec:
patchers: patchers:
- type: "ReplicaPatcher" - type: "ReplicaPatcher"
resource: "uc2-kstreams-deployment.yaml" resource: "uc2-kstreams-deployment.yaml"
- typeName: ThreadsAndPodResources
patchers:
- type: EnvVarPatcher
resource: uc2-kstreams-deployment.yaml
properties:
container: uc-application
variableName: NUM_STREAM_THREADS
- type: ResourceLimitPatcher
resource: uc2-kstreams-deployment.yaml
properties:
container: uc-application
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: uc2-kstreams-deployment.yaml
properties:
container: uc-application
limitedResource: memory
factor: 4
format: Gi
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
...@@ -7,6 +7,7 @@ metadata: ...@@ -7,6 +7,7 @@ metadata:
data: data:
flink-conf.yaml: |+ flink-conf.yaml: |+
jobmanager.rpc.address: flink-jobmanager jobmanager.rpc.address: flink-jobmanager
taskmanager.numberOfTaskSlots: 1
blob.server.port: 6124 blob.server.port: 6124
jobmanager.rpc.port: 6123 jobmanager.rpc.port: 6123
taskmanager.rpc.port: 6122 taskmanager.rpc.port: 6122
......
...@@ -12,6 +12,7 @@ spec: ...@@ -12,6 +12,7 @@ spec:
- configMap: - configMap:
name: "benchmark-resources-uc3-beam-flink" name: "benchmark-resources-uc3-beam-flink"
files: files:
- "flink-configuration-configmap.yaml"
- "taskmanager-deployment.yaml" - "taskmanager-deployment.yaml"
- "taskmanager-service.yaml" - "taskmanager-service.yaml"
- "service-monitor.yaml" - "service-monitor.yaml"
...@@ -35,6 +36,39 @@ spec: ...@@ -35,6 +36,39 @@ spec:
properties: properties:
container: "jobmanager" container: "jobmanager"
variableName: "PARALLELISM" variableName: "PARALLELISM"
- typeName: TaskSlotsAndPodResources
patchers:
- type: ConfigMapYamlPatcher
resource: flink-configuration-configmap.yaml
properties:
fileName: flink-conf.yaml
variableName: taskmanager.numberOfTaskSlots
- type: ResourceLimitPatcher
resource: taskmanager-deployment.yaml
properties:
container: taskmanager
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: taskmanager-deployment.yaml
properties:
container: taskmanager
limitedResource: memory
factor: 4
format: Gi
- type: ConfigMapYamlPatcher
resource: flink-configuration-configmap.yaml
properties:
fileName: flink-conf.yaml
variableName: taskmanager.memory.process.size
factor: 4
suffix: Gb
- type: "EnvVarPatcher"
resource: "jobmanager-deployment.yaml"
properties:
container: "jobmanager"
variableName: "PARALLELISM"
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
...@@ -37,6 +37,27 @@ spec: ...@@ -37,6 +37,27 @@ spec:
patchers: patchers:
- type: "ReplicaPatcher" - type: "ReplicaPatcher"
resource: "uc3-beam-samza-deployment.yaml" resource: "uc3-beam-samza-deployment.yaml"
- typeName: ThreadsAndPodResources
patchers:
- type: EnvVarPatcher
resource: uc3-beam-samza-deployment.yaml
properties:
container: uc3-beam-samza
variableName: SAMZA_JOB_CONTAINER_THREADS_POOL_SIZE
- type: ResourceLimitPatcher
resource: uc3-beam-samza-deployment.yaml
properties:
container: uc3-beam-samza
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: uc3-beam-samza-deployment.yaml
properties:
container: uc3-beam-samza
limitedResource: memory
factor: 4
format: Gi
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
...@@ -7,6 +7,7 @@ metadata: ...@@ -7,6 +7,7 @@ metadata:
data: data:
flink-conf.yaml: |+ flink-conf.yaml: |+
jobmanager.rpc.address: flink-jobmanager jobmanager.rpc.address: flink-jobmanager
taskmanager.numberOfTaskSlots: 1
blob.server.port: 6124 blob.server.port: 6124
jobmanager.rpc.port: 6123 jobmanager.rpc.port: 6123
taskmanager.rpc.port: 6122 taskmanager.rpc.port: 6122
......
...@@ -36,6 +36,39 @@ spec: ...@@ -36,6 +36,39 @@ spec:
properties: properties:
container: "jobmanager" container: "jobmanager"
variableName: "PARALLELISM" variableName: "PARALLELISM"
- typeName: TaskSlotsAndPodResources
patchers:
- type: ConfigMapYamlPatcher
resource: flink-configuration-configmap.yaml
properties:
fileName: flink-conf.yaml
variableName: taskmanager.numberOfTaskSlots
- type: ResourceLimitPatcher
resource: taskmanager-deployment.yaml
properties:
container: taskmanager
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: taskmanager-deployment.yaml
properties:
container: taskmanager
limitedResource: memory
factor: 4
format: Gi
- type: ConfigMapYamlPatcher
resource: flink-configuration-configmap.yaml
properties:
fileName: flink-conf.yaml
variableName: taskmanager.memory.process.size
factor: 4
suffix: Gb
- type: "EnvVarPatcher"
resource: "jobmanager-deployment.yaml"
properties:
container: "jobmanager"
variableName: "PARALLELISM"
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
...@@ -28,6 +28,22 @@ spec: ...@@ -28,6 +28,22 @@ spec:
patchers: patchers:
- type: "ReplicaPatcher" - type: "ReplicaPatcher"
resource: "uc3-hazelcastjet-deployment.yaml" resource: "uc3-hazelcastjet-deployment.yaml"
- typeName: PodResources
patchers:
- type: ResourceLimitPatcher
resource: uc3-hazelcastjet-deployment.yaml
properties:
container: uc-application
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: uc3-hazelcastjet-deployment.yaml
properties:
container: uc-application
limitedResource: memory
factor: 4
format: Gi
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment