Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kube: liveness and readiness probe #3085

Merged
merged 1 commit into from
Dec 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions kube/manifest/starcoin-barnard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,31 @@ spec:
secretKeyRef:
name: node-keys
key: node-keys
livenessProbe:
tcpSocket:
port: 9840
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timeoutSeconds 这个感觉要设置长一些,不然升级的过程中清洗数据,会被判定为超时,然后反复 kill 掉重试.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

多久比较合适 10s?

failureThreshold: 3
successThreshold: 1
readinessProbe:
exec:
command:
- /starcoin/starcoin
- -n
- barnard
- -d
- /sc-data
- node
- sync
- status|grep
- Synchronized
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 3
successThreshold: 1
volumeClaimTemplates:
- metadata:
name: starcoin-volume
Expand Down
25 changes: 25 additions & 0 deletions kube/manifest/starcoin-halley.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,31 @@ spec:
secretKeyRef:
name: node-keys
key: node-keys
livenessProbe:
tcpSocket:
port: 9840
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 3
successThreshold: 1
readinessProbe:
exec:
command:
- /starcoin/starcoin
- -n
- halley
- -d
- /sc-data
- node
- sync
- status|grep
- Synchronized
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 3
successThreshold: 1
volumeClaimTemplates:
- metadata:
name: starcoin-volume
Expand Down
25 changes: 25 additions & 0 deletions kube/manifest/starcoin-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,31 @@ spec:
secretKeyRef:
name: node-keys
key: node-keys
livenessProbe:
tcpSocket:
port: 9840
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 3
successThreshold: 1
readinessProbe:
exec:
command:
- /starcoin/starcoin
- -n
- main
- -d
- /sc-data
- node
- sync
- status|grep
- Synchronized
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 3
successThreshold: 1
volumeClaimTemplates:
- metadata:
name: starcoin-volume
Expand Down
25 changes: 25 additions & 0 deletions kube/manifest/starcoin-proxima.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,31 @@ spec:
secretKeyRef:
name: node-keys
key: node-keys
livenessProbe:
tcpSocket:
port: 9840
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 3
successThreshold: 1
readinessProbe:
exec:
command:
- /starcoin/starcoin
- -n
- proxima
- -d
- /sc-data
- node
- sync
- status|grep
- Synchronized
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 3
successThreshold: 1
volumeClaimTemplates:
- metadata:
name: starcoin-volume
Expand Down