You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2022/01/07 12:22:33 UTC
[skywalking-swck] branch master updated: Add stabilization windows feature in satellite HPA documentation and sample file (#57)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-swck.git
The following commit(s) were added to refs/heads/master by this push:
new 957844f Add stabilization windows feature in satellite HPA documentation and sample file (#57)
957844f is described below
commit 957844fe3c773ae425ad3a167f43c5abf63dcfb5
Author: mrproliu <74...@qq.com>
AuthorDate: Fri Jan 7 20:22:27 2022 +0800
Add stabilization windows feature in satellite HPA documentation and sample file (#57)
---
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: