You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ta...@apache.org on 2021/11/14 06:16:42 UTC

[skywalking-showcase] 02/03: fix es cluster yellow if only one es replica.

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

tanjian pushed a commit to branch es_cluster_yellow
in repository https://gitbox.apache.org/repos/asf/skywalking-showcase.git

commit 836f280527f78960070789923593ce37456c52e4
Author: JaredTan95 <ji...@daocloud.io>
AuthorDate: Sun Nov 14 14:13:07 2021 +0800

    fix es cluster yellow if only one es replica.
---
 deploy/platform/kubernetes/feature-cluster/resources.yaml     | 2 ++
 deploy/platform/kubernetes/feature-single-node/resources.yaml | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/deploy/platform/kubernetes/feature-cluster/resources.yaml b/deploy/platform/kubernetes/feature-cluster/resources.yaml
index f2dc205..212f9f4 100644
--- a/deploy/platform/kubernetes/feature-cluster/resources.yaml
+++ b/deploy/platform/kubernetes/feature-cluster/resources.yaml
@@ -205,6 +205,8 @@ spec:
               value: elasticsearch
             - name: SW_STORAGE_ES_CLUSTER_NODES
               value: elasticsearch:9200
+            - name: SW_STORAGE_ES_INDEX_REPLICAS_NUMBER
+              value: "0"
             - name: SW_TELEMETRY
               value: prometheus # @feature: so11y; expose the metrics of self o11y through prometheus
             - name: SW_ENVOY_METRIC_ALS_HTTP_ANALYSIS
diff --git a/deploy/platform/kubernetes/feature-single-node/resources.yaml b/deploy/platform/kubernetes/feature-single-node/resources.yaml
index 5af8ad0..cbf50f8 100644
--- a/deploy/platform/kubernetes/feature-single-node/resources.yaml
+++ b/deploy/platform/kubernetes/feature-single-node/resources.yaml
@@ -155,6 +155,8 @@ spec:
               value: elasticsearch
             - name: SW_STORAGE_ES_CLUSTER_NODES
               value: elasticsearch:9200
+            - name: SW_STORAGE_ES_INDEX_REPLICAS_NUMBER
+              value: "0"
             - name: SW_TELEMETRY
               value: prometheus # @feature: so11y; expose the metrics of self o11y through prometheus
             - name: SW_ENVOY_METRIC_ALS_HTTP_ANALYSIS