This is an automated email from the ASF dual-hosted git repository.

liuhan pushed a commit to branch satellite-hpa-stabilization-window
in repository https://gitbox.apache.org/repos/asf/skywalking-swck.git

commit b6df07df7be99899d22d3eee9bb574e925c5e856
Author: Mrproliu <[email protected]>
AuthorDate: Fri Jan 7 19:18:15 2022 +0800

    Add stabilization windows feature in satellite HPA documentation and sample 
file
---
 docs/examples/satellite.md                 | 1 +
 operator/config/samples/satellite-hpa.yaml | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/docs/examples/satellite.md b/docs/examples/satellite.md
index c344547..4da5f4c 100644
--- a/docs/examples/satellite.md
+++ b/docs/examples/satellite.md
@@ -49,6 +49,7 @@ config:
 ```
 
 4. Add the HorizontalPodAutoScaler `CRD`, and [update the config 
file](../../operator/config/samples/satellite-hpa.yaml) the `service` and 
`target` to your excepted config.
+   It's recommend to set the `stabilizationWindowSeconds` and `selectPolicy` 
of scaling up in HPA, which would help prevent continuous scaling up of pods 
due to metric delay fluctuations. 
 5. Check the HorizontalPodAutoScaler in the Kubernetes:
 
 ```shell
diff --git a/operator/config/samples/satellite-hpa.yaml 
b/operator/config/samples/satellite-hpa.yaml
index 085529d..d1eed79 100644
--- a/operator/config/samples/satellite-hpa.yaml
+++ b/operator/config/samples/satellite-hpa.yaml
@@ -25,9 +25,16 @@ spec:
     apiVersion: apps/v1
     kind: Deployment
     name: skywalking-system-satellite
+  # Satellite count range limit
   minReplicas: 1
   maxReplicas: 3
+  # Limit continuous scaling up
+  behavior:
+    scaleUp:
+      stabilizationWindowSeconds: 60
+      selectPolicy: Min
   metrics:
+    # Average number of connections threshold
     - type: External
       external:
         metric:
@@ -43,6 +50,7 @@ spec:
         target:
           type: Value
           value: 1900
+    # Average CPU usage threshold
     - type: External
       external:
         metric:

Reply via email to