commit 30247fe121ec7cb6a7dc212fa3d4cc822488a817 Author: Ferdian_M.Syarif Date: Thu Jul 31 12:38:45 2025 +0700 Upload files to "/" 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