From e39841d413d5ff881e464f0d5a102ed9de1470b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Henning?= <soeren.henning@email.uni-kiel.de> Date: Tue, 29 Nov 2022 09:50:40 +0100 Subject: [PATCH] Add PodResources resource type for Hazelcast Jet --- .../uc1-hazelcastjet-benchmark-operator.yaml | 16 ++++++++++++++++ .../uc2-hazelcastjet-benchmark-operator.yaml | 16 ++++++++++++++++ .../uc3-hazelcastjet-benchmark-operator.yaml | 16 ++++++++++++++++ .../uc4-hazelcastjet-benchmark-operator.yaml | 16 ++++++++++++++++ 4 files changed, 64 insertions(+) diff --git a/theodolite-benchmarks/definitions/uc1-hazelcastjet/uc1-hazelcastjet-benchmark-operator.yaml b/theodolite-benchmarks/definitions/uc1-hazelcastjet/uc1-hazelcastjet-benchmark-operator.yaml index 9835950ef..6730dd25f 100644 --- a/theodolite-benchmarks/definitions/uc1-hazelcastjet/uc1-hazelcastjet-benchmark-operator.yaml +++ b/theodolite-benchmarks/definitions/uc1-hazelcastjet/uc1-hazelcastjet-benchmark-operator.yaml @@ -26,6 +26,22 @@ spec: patchers: - type: "ReplicaPatcher" 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: - typeName: "NumSensors" patchers: diff --git a/theodolite-benchmarks/definitions/uc2-hazelcastjet/uc2-hazelcastjet-benchmark-operator.yaml b/theodolite-benchmarks/definitions/uc2-hazelcastjet/uc2-hazelcastjet-benchmark-operator.yaml index 0e26fc60e..36af6c97d 100644 --- a/theodolite-benchmarks/definitions/uc2-hazelcastjet/uc2-hazelcastjet-benchmark-operator.yaml +++ b/theodolite-benchmarks/definitions/uc2-hazelcastjet/uc2-hazelcastjet-benchmark-operator.yaml @@ -26,6 +26,22 @@ spec: patchers: - type: "ReplicaPatcher" 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: - typeName: "NumSensors" patchers: diff --git a/theodolite-benchmarks/definitions/uc3-hazelcastjet/uc3-hazelcastjet-benchmark-operator.yaml b/theodolite-benchmarks/definitions/uc3-hazelcastjet/uc3-hazelcastjet-benchmark-operator.yaml index 33a37157d..b7caeae32 100644 --- a/theodolite-benchmarks/definitions/uc3-hazelcastjet/uc3-hazelcastjet-benchmark-operator.yaml +++ b/theodolite-benchmarks/definitions/uc3-hazelcastjet/uc3-hazelcastjet-benchmark-operator.yaml @@ -26,6 +26,22 @@ spec: patchers: - type: "ReplicaPatcher" 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: - typeName: "NumSensors" patchers: diff --git a/theodolite-benchmarks/definitions/uc4-hazelcastjet/uc4-hazelcastjet-benchmark-operator.yaml b/theodolite-benchmarks/definitions/uc4-hazelcastjet/uc4-hazelcastjet-benchmark-operator.yaml index 79c0fdbf7..55cf01826 100644 --- a/theodolite-benchmarks/definitions/uc4-hazelcastjet/uc4-hazelcastjet-benchmark-operator.yaml +++ b/theodolite-benchmarks/definitions/uc4-hazelcastjet/uc4-hazelcastjet-benchmark-operator.yaml @@ -26,6 +26,22 @@ spec: patchers: - type: "ReplicaPatcher" resource: "uc4-hazelcastjet-deployment.yaml" + - typeName: PodResources + patchers: + - type: ResourceLimitPatcher + resource: uc4-hazelcastjet-deployment.yaml + properties: + container: uc-application + limitedResource: cpu + factor: 1000 + format: m + - type: ResourceLimitPatcher + resource: uc4-hazelcastjet-deployment.yaml + properties: + container: uc-application + limitedResource: memory + factor: 4 + format: Gi loadTypes: - typeName: "NumNestedGroups" patchers: -- GitLab