From 6850ad4816e2462ea3d133d7514d2a12d1b6686f Mon Sep 17 00:00:00 2001 From: gifrerenom <lluis.gifre@cttc.es> Date: Wed, 29 Mar 2023 20:17:37 +0200 Subject: [PATCH] Manifests: - Updated requests and limits per pod - Updated HPA replica limits --- manifests/contextservice.yaml | 10 +++++----- manifests/deviceservice.yaml | 6 +++--- manifests/load_generatorservice.yaml | 6 +++--- manifests/pathcompservice.yaml | 4 ++-- manifests/performance-hpa.txt | 14 ++++++++++++++ manifests/serviceservice.yaml | 12 ++++++------ manifests/sliceservice.yaml | 12 ++++++------ 7 files changed, 39 insertions(+), 25 deletions(-) create mode 100644 manifests/performance-hpa.txt diff --git a/manifests/contextservice.yaml b/manifests/contextservice.yaml index 811f00d7a..8655b275b 100644 --- a/manifests/contextservice.yaml +++ b/manifests/contextservice.yaml @@ -52,11 +52,11 @@ spec: command: ["/bin/grpc_health_probe", "-addr=:1010"] resources: requests: - cpu: 50m + cpu: 75m memory: 64Mi limits: - cpu: 500m - memory: 512Mi + cpu: 100m + memory: 128Mi --- apiVersion: v1 kind: Service @@ -87,8 +87,8 @@ spec: apiVersion: apps/v1 kind: Deployment name: contextservice - minReplicas: 2 - maxReplicas: 5 + minReplicas: 1 + maxReplicas: 20 metrics: - type: Resource resource: diff --git a/manifests/deviceservice.yaml b/manifests/deviceservice.yaml index ca2c81f0f..ad54f4b6c 100644 --- a/manifests/deviceservice.yaml +++ b/manifests/deviceservice.yaml @@ -45,11 +45,11 @@ spec: command: ["/bin/grpc_health_probe", "-addr=:2020"] resources: requests: - cpu: 50m + cpu: 128m memory: 64Mi limits: - cpu: 500m - memory: 512Mi + cpu: 256m + memory: 128Mi --- apiVersion: v1 kind: Service diff --git a/manifests/load_generatorservice.yaml b/manifests/load_generatorservice.yaml index b94e11e72..3f65c2c85 100644 --- a/manifests/load_generatorservice.yaml +++ b/manifests/load_generatorservice.yaml @@ -44,11 +44,11 @@ spec: command: ["/bin/grpc_health_probe", "-addr=:50052"] resources: requests: - cpu: 50m + cpu: 256m memory: 64Mi limits: - cpu: 500m - memory: 512Mi + cpu: 512m + memory: 128Mi --- apiVersion: v1 kind: Service diff --git a/manifests/pathcompservice.yaml b/manifests/pathcompservice.yaml index 5703b82ed..3ba12750b 100644 --- a/manifests/pathcompservice.yaml +++ b/manifests/pathcompservice.yaml @@ -108,8 +108,8 @@ spec: apiVersion: apps/v1 kind: Deployment name: pathcompservice - minReplicas: 2 - maxReplicas: 5 + minReplicas: 1 + maxReplicas: 20 metrics: - type: Resource resource: diff --git a/manifests/performance-hpa.txt b/manifests/performance-hpa.txt new file mode 100644 index 000000000..6aadc114f --- /dev/null +++ b/manifests/performance-hpa.txt @@ -0,0 +1,14 @@ +NAME CPU MEM metric +context 0.07 65 min +context 0.085 66 avg +context 0.1 71 max +device 0.112 64 min/avg/max +serviceservice 0.034 32 min +serviceservice 0.047 33 avg +serviceservice 0.06 37 max +pathcompservice 0.087 184 min/avg/max +sliceservice 0.028 103 min +sliceservice 0.046 106 avg +sliceservice 0.062 110 max +load-generator 0.192 35 min/avg/max +webuiservice 0.003 75 min/avg/max diff --git a/manifests/serviceservice.yaml b/manifests/serviceservice.yaml index 655538f49..ce90aa188 100644 --- a/manifests/serviceservice.yaml +++ b/manifests/serviceservice.yaml @@ -45,11 +45,11 @@ spec: command: ["/bin/grpc_health_probe", "-addr=:3030"] resources: requests: - cpu: 50m - memory: 64Mi + cpu: 32m + memory: 32Mi limits: - cpu: 500m - memory: 512Mi + cpu: 128m + memory: 64Mi --- apiVersion: v1 kind: Service @@ -80,8 +80,8 @@ spec: apiVersion: apps/v1 kind: Deployment name: serviceservice - minReplicas: 2 - maxReplicas: 5 + minReplicas: 1 + maxReplicas: 20 metrics: - type: Resource resource: diff --git a/manifests/sliceservice.yaml b/manifests/sliceservice.yaml index 34453735e..8f312e8e0 100644 --- a/manifests/sliceservice.yaml +++ b/manifests/sliceservice.yaml @@ -50,11 +50,11 @@ spec: command: ["/bin/grpc_health_probe", "-addr=:4040"] resources: requests: - cpu: 50m - memory: 64Mi + cpu: 32m + memory: 128Mi limits: - cpu: 500m - memory: 512Mi + cpu: 128m + memory: 256Mi --- apiVersion: v1 kind: Service @@ -85,8 +85,8 @@ spec: apiVersion: apps/v1 kind: Deployment name: sliceservice - minReplicas: 2 - maxReplicas: 5 + minReplicas: 1 + maxReplicas: 20 metrics: - type: Resource resource: -- GitLab