Skip to content

Commit

Permalink
chore: modify default values of startup probe
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 committed Oct 25, 2024
1 parent 9bd069d commit 272c727
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 24 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ The GreptimeDB Operator includes, but is not limited to, the following features:

Bootstrap the GreptimeDB monitoring stack for the GreptimeDB cluster by providing the `monitoring` field in the `GreptimeDBCluster` CR.

## Prerequisites

The GreptimeDB Operator requires at least Kubernetes `1.18.0`.

## Quick Start

The fastest way to install the GreptimeDB Operator is to use `bundle.yaml`:
Expand Down
8 changes: 4 additions & 4 deletions apis/v1alpha1/defaulting.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,11 @@ func defaultStartupProbe() *corev1.Probe {
Port: intstr.FromInt32(DefaultHTTPPort),
},
},
PeriodSeconds: 10,
PeriodSeconds: 5,

// The StartupProbe can try up to 30 * 10 = 300 seconds to start the container.
// For some scenarios, the database may take a long time to start, so we set the failure threshold to 30.
FailureThreshold: 30,
// The StartupProbe can try up to 60 * 5 = 300 seconds to start the container.
// For some scenarios, the datanode may take a long time to start, so we set the failure threshold to 60.
FailureThreshold: 60,
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ spec:
httpGet:
path: /health
port: 4000
periodSeconds: 10
failureThreshold: 30
periodSeconds: 5
failureThreshold: 60
frontend:
replicas: 1
httpPort: 9000
Expand Down Expand Up @@ -78,8 +78,8 @@ spec:
httpGet:
path: /health
port: 9000
periodSeconds: 10
failureThreshold: 30
periodSeconds: 5
failureThreshold: 60
resources:
limits:
cpu: 100m
Expand Down Expand Up @@ -119,8 +119,8 @@ spec:
httpGet:
path: /health
port: 4000
periodSeconds: 10
failureThreshold: 30
periodSeconds: 5
failureThreshold: 60
resources:
limits:
cpu: 50m
Expand Down Expand Up @@ -164,8 +164,8 @@ spec:
httpGet:
path: /health
port: 4000
periodSeconds: 10
failureThreshold: 30
periodSeconds: 5
failureThreshold: 60
resources:
limits:
cpu: 100m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ spec:
httpGet:
path: /health
port: 4000
periodSeconds: 10
failureThreshold: 30
periodSeconds: 5
failureThreshold: 60
frontend:
replicas: 1
httpPort: 4000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ spec:
httpGet:
path: /health
port: 4000
periodSeconds: 10
failureThreshold: 30
periodSeconds: 5
failureThreshold: 60
resources:
requests:
cpu: "500m"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ spec:
httpGet:
path: /health
port: 4000
periodSeconds: 10
failureThreshold: 30
periodSeconds: 5
failureThreshold: 60
frontend:
replicas: 1
httpPort: 4000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ spec:
httpGet:
path: /health
port: 4000
periodSeconds: 10
failureThreshold: 30
periodSeconds: 5
failureThreshold: 60
version: latest
initializer:
image: greptime/greptimedb-initializer:latest
Expand Down Expand Up @@ -101,8 +101,8 @@ spec:
httpGet:
path: /health
port: 4000
periodSeconds: 10
failureThreshold: 30
periodSeconds: 5
failureThreshold: 60
datanodeStorage:
dataHome: /data/greptimedb
fs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ spec:
httpGet:
path: /health
port: 4000
periodSeconds: 10
failureThreshold: 30
periodSeconds: 5
failureThreshold: 60
service:
type: ClusterIP
logging:
Expand Down

0 comments on commit 272c727

Please sign in to comment.