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

Add resource type for threads in Kafka Streams

parent 67bcfc6f
Branches beam-dataflow
No related tags found
1 merge request!303Add resource type for threads (vertical scaling)
Pipeline #10097 passed
......@@ -24,6 +24,27 @@ spec:
patchers:
- type: "ReplicaPatcher"
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:
- typeName: "NumSensors"
patchers:
......
......@@ -24,6 +24,27 @@ spec:
patchers:
- type: "ReplicaPatcher"
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:
- typeName: "NumSensors"
patchers:
......
......@@ -24,6 +24,27 @@ spec:
patchers:
- type: "ReplicaPatcher"
resource: "uc3-kstreams-deployment.yaml"
- typeName: ThreadsAndPodResources
patchers:
- type: EnvVarPatcher
resource: uc3-kstreams-deployment.yaml
properties:
container: uc-application
variableName: NUM_STREAM_THREADS
- type: ResourceLimitPatcher
resource: uc3-kstreams-deployment.yaml
properties:
container: uc-application
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: uc3-kstreams-deployment.yaml
properties:
container: uc-application
limitedResource: memory
factor: 4
format: Gi
loadTypes:
- typeName: "NumSensors"
patchers:
......
......@@ -24,6 +24,27 @@ spec:
patchers:
- type: "ReplicaPatcher"
resource: "uc4-kstreams-deployment.yaml"
- typeName: ThreadsAndPodResources
patchers:
- type: EnvVarPatcher
resource: uc4-kstreams-deployment.yaml
properties:
container: uc-application
variableName: NUM_STREAM_THREADS
- type: ResourceLimitPatcher
resource: uc4-kstreams-deployment.yaml
properties:
container: uc-application
limitedResource: cpu
factor: 1000
format: m
- type: ResourceLimitPatcher
resource: uc4-kstreams-deployment.yaml
properties:
container: uc-application
limitedResource: memory
factor: 4
format: Gi
loadTypes:
- typeName: "NumNestedGroups"
patchers:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment