From 30247fe121ec7cb6a7dc212fa3d4cc822488a817 Mon Sep 17 00:00:00 2001 From: "Ferdian_M.Syarif" Date: Thu, 31 Jul 2025 12:38:45 +0700 Subject: [PATCH] Upload files to "/" --- wordpress-hpa.yaml | 38 +++++++++++++++++++++++++ wordpress-load-test.jmx | 61 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 wordpress-hpa.yaml create mode 100644 wordpress-load-test.jmx diff --git a/wordpress-hpa.yaml b/wordpress-hpa.yaml new file mode 100644 index 0000000..dfc1b25 --- /dev/null +++ b/wordpress-hpa.yaml @@ -0,0 +1,38 @@ +apiVersion: autoscaling/v2beta2 +kind: HorizontalPodAutoscaler +metadata: + name: wordpress-hpa + namespace: jenkins +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: wordpress # Cek deploy --all-namespaces + minReplicas: 2 + maxReplicas: 15 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 50 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 65 + behavior: + scaleDown: + stabilizationWindowSeconds: 90 + policies: + - type: Percent + value: 20 + periodSeconds: 30 + scaleUp: + stabilizationWindowSeconds: 30 + policies: + - type: Percent + value: 30 + periodSeconds: 15 diff --git a/wordpress-load-test.jmx b/wordpress-load-test.jmx new file mode 100644 index 0000000..0c4327e --- /dev/null +++ b/wordpress-load-test.jmx @@ -0,0 +1,61 @@ + + + + + + false + true + false + + + + + + + + continue + + false + -1 + + 50 + 60 + true + 300 + + true + + + + + + + 10.10.3.235 + 80 + http + + / + GET + true + false + true + false + + + + + + + + 200 + + Assertion.response_code + false + 16 + + + + + + + \ No newline at end of file