Skip to content

Commit

Permalink
chore(ci): add more replicas (GreptimeTeam#4015)
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu authored May 23, 2024
1 parent b90b7ad commit 614643e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 16 deletions.
12 changes: 7 additions & 5 deletions .github/actions/setup-etcd-cluster/action.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Setup Etcd cluster
description: Deploy Etcd cluster on Kubernetes
inputs:
etcd-replica-count:
default: 1
description: "Etcd replica count"
etcd-replicas:
default: 3
description: "Etcd replicas"
namespace:
default: "etcd-cluster"

Expand All @@ -15,9 +15,11 @@ runs:
run: |
helm upgrade \
--install etcd oci://registry-1.docker.io/bitnamicharts/etcd \
--set replicaCount=${{ inputs.etcd-replica-count }} \
--set replicaCount=${{ inputs.etcd-replicas }} \
--set resources.requests.cpu=50m \
--set resources.requests.memory=128Mi \
--set auth.rbac.create=false \
--set auth.rbac.token.enabled=false \
--set persistence.size=1Gi \
--set persistence.size=2Gi \
--create-namespace \
-n ${{ inputs.namespace }}
31 changes: 20 additions & 11 deletions .github/actions/setup-greptimedb-cluster/action.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
name: Setup GreptimeDB cluster
description: Deploy GreptimeDB cluster on Kubernetes
inputs:
frontend-replica-count:
default: 1
description: "Frontend replica count"
datanode-replica-count:
frontend-replicas:
default: 2
description: "Datanode replica count"
metasrv-replica-count:
default: 1
description: "Metasrv replica count"
etcd-replica-count:
default: 1
description: "Etcd replica count"
description: "Number of Frontend replicas"
datanode-replicas:
default: 2
description: "Number of Datanode replicas"
meta-replicas:
default: 3
description: "Number of Metasrv replicas"
image-registry:
default: "docker.io"
description: "Image registry"
Expand Down Expand Up @@ -50,6 +47,13 @@ runs:
--set image.registry=${{ inputs.image-registry }} \
--set image.repository=${{ inputs.image-repository }} \
--set image.tag=${{ inputs.image-tag }} \
--set base.podTemplate.main.resources.requests.cpu=50m \
--set base.podTemplate.main.resources.requests.memory=256Mi \
--set base.podTemplate.main.resources.limits.cpu=1000m \
--set base.podTemplate.main.resources.limits.memory=2Gi \
--set frontend.replicas=${{ inputs.frontend-replicas }} \
--set datanode.replicas=${{ inputs.datanode-replicas }} \
--set meta.replicas=${{ inputs.meta-replicas }} \
greptime/greptimedb-cluster \
--create-namespace \
-n my-greptimedb \
Expand All @@ -74,3 +78,8 @@ runs:
shell: bash
run: |
kubectl get all --show-labels -n my-greptimedb
- name: Describe Nodes
if: always()
shell: bash
run: |
kubectl describe nodes
5 changes: 5 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ jobs:
with:
target: ${{ matrix.target }}
max-total-time: 120
- name: Describe Nodes
if: failure()
shell: bash
run: |
kubectl describe nodes
- name: Export kind logs
if: failure()
shell: bash
Expand Down

0 comments on commit 614643e

Please sign in to comment.