Skip to content
Snippets Groups Projects
Commit f2bdab43 authored by Benedikt Wetzel's avatar Benedikt Wetzel
Browse files

minor code improvments

parent e736e5cf
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!85Introduce new Benchmark class and Patcher,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
...@@ -20,23 +20,23 @@ execution: ...@@ -20,23 +20,23 @@ execution:
configOverrides: configOverrides:
- patcher: - patcher:
type: "NodeSelectorPatcher" type: "NodeSelectorPatcher"
resource: "workloadGenerator.yaml" resource: "uc1-load-generator-deployment.yaml"
variableName: "env" variableName: "env"
value: "prod" value: "prod"
- patcher: - patcher:
type: "NodeSelectorPatcher" type: "NodeSelectorPatcher"
resource: "aggregation-deployment.yaml" resource: "uc1-kstreams-deployment.yaml"
variableName: "env" variableName: "env"
value: "prod" value: "prod"
- patcher: - patcher:
type: "ResourceLimitPatcher" type: "ResourceLimitPatcher"
resource: "aggregation-deployment.yaml" resource: "uc1-kstreams-deployment.yaml"
container: "uc-application" container: "uc-application"
variableName: "cpu" variableName: "cpu"
value: "50m" value: "50m"
- patcher: - patcher:
type: "ResourceLimitPatcher" type: "ResourceLimitPatcher"
resource: "aggregation-deployment.yaml" resource: "uc1-kstreams-deployment.yaml"
container: "uc-application" container: "uc-application"
variableName: "memory" variableName: "memory"
value: "2Gi" value: "2Gi"
\ No newline at end of file
name: "theodolite ist cool" name: "theodolite ist cool"
appResource: appResource:
- "aggregation-deployment.yaml" - "uc1-kstreams-deployment.yaml"
- "aggregation-service.yaml" - "aggregation-service.yaml"
- "jmx-configmap.yaml" - "jmx-configmap.yaml"
loadGenResource: loadGenResource:
- "workloadGenerator.yaml" - "uc1-load-generator-deployment.yaml"
resourceTypes: resourceTypes:
- typeName: "Instances" - typeName: "Instances"
patchers: patchers:
- type: "ReplicaPatcher" - type: "ReplicaPatcher"
resource: "aggregation-deployment.yaml" resource: "uc1-kstreams-deployment.yaml"
loadTypes: loadTypes:
- typeName: "NumSensors" - typeName: "NumSensors"
patchers: patchers:
- type: "EnvVarPatcher" - type: "EnvVarPatcher"
resource: "workloadGenerator.yaml" resource: "uc1-load-generator-deployment.yaml"
container: "workload-generator" container: "workload-generator"
variableName: "NUM_SENSORS" variableName: "NUM_SENSORS"
kafkaConfig: kafkaConfig:
... ...
......
...@@ -62,25 +62,25 @@ class ResourceLimitPatcherTest { ...@@ -62,25 +62,25 @@ class ResourceLimitPatcherTest {
} }
@Test @Test
fun case1() { fun testWithExistingCpuAndMemoryDeclarations() {
// Case 1: In the given YAML declaration memory and cpu are defined // Case 1: In the given YAML declaration memory and cpu are defined
applyTest("cpu-memory-deployment.yaml") applyTest("cpu-memory-deployment.yaml")
} }
@Test @Test
fun case2() { fun testOnlyWithExistingCpuDeclarations() {
// Case 2: In the given YAML declaration only cpu is defined // Case 2: In the given YAML declaration only cpu is defined
applyTest("cpu-deployment.yaml") applyTest("cpu-deployment.yaml")
} }
@Test @Test
fun case3() { fun testOnlyWithExistingMemoryDeclarations() {
// Case 3: In the given YAML declaration only memory is defined // Case 3: In the given YAML declaration only memory is defined
applyTest("memory-deployment.yaml") applyTest("memory-deployment.yaml")
} }
@Test @Test
fun case4() { fun testWithoutResourceDeclarations() {
// Case 4: In the given YAML declaration neither `Resource Request` nor `Request Limit` is defined // Case 4: In the given YAML declaration neither `Resource Request` nor `Request Limit` is defined
applyTest("no-resources-deployment.yaml") applyTest("no-resources-deployment.yaml")
} }
... ...
......
...@@ -62,25 +62,25 @@ class ResourceRequestPatcherTest { ...@@ -62,25 +62,25 @@ class ResourceRequestPatcherTest {
} }
@Test @Test
fun case1() { fun testWithExistingCpuAndMemoryDeclarations() {
// Case 1: In the given YAML declaration memory and cpu are defined // Case 1: In the given YAML declaration memory and cpu are defined
applyTest("cpu-memory-deployment.yaml") applyTest("cpu-memory-deployment.yaml")
} }
@Test @Test
fun case2() { fun testOnlyWithExistingCpuDeclarations() {
// Case 2: In the given YAML declaration only cpu is defined // Case 2: In the given YAML declaration only cpu is defined
applyTest("cpu-deployment.yaml") applyTest("cpu-deployment.yaml")
} }
@Test @Test
fun case3() { fun testOnlyWithExistingMemoryDeclarations() {
// Case 3: In the given YAML declaration only memory is defined // Case 3: In the given YAML declaration only memory is defined
applyTest("memory-deployment.yaml") applyTest("memory-deployment.yaml")
} }
@Test @Test
fun case4() { fun testWithoutResourceDeclarations() {
// Case 4: In the given YAML declaration neither `Resource Request` nor `Request Limit` is defined // Case 4: In the given YAML declaration neither `Resource Request` nor `Request Limit` is defined
applyTest("no-resources-deployment.yaml") applyTest("no-resources-deployment.yaml")
} }
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment