Skip to content

Commit

Permalink
chore(mgo): remove probe & adjust memory limit (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mengjiang Bao authored Jun 30, 2020
1 parent c18266b commit 872cb02
Showing 1 changed file with 34 additions and 31 deletions.
65 changes: 34 additions & 31 deletions release/infra-mongo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,50 @@ _config:
template:
type: template.caicloud.io/application
version: 1.0.0
version: "v0.0.9"
version: "v0.0.10"
controllers:
- containers:
- name: mongo
image: '[[ registry_library ]]/mongo:3.6.13'
imagePullPolicy: IfNotPresent
resources:
# Starting in MongoDB 3.4, the default WiredTiger internal cache size is the larger of either:
# 50% of (RAM - 1 GB), or 256 MB.
limits:
memory: 8Gi
memory: 5Gi
requests:
cpu: 100m
memory: 2Gi
probe:
liveness:
handler:
type: EXEC
method:
command:
- mongo
- --eval
- "db.adminCommand('ping')"
threshold:
success: 1
failure: 40
delay: 30
period: 15
timeout: 5
readiness:
handler:
type: EXEC
method:
command:
- mongo
- --eval
- "db.adminCommand('ping')"
threshold:
success: 1
failure: 6
delay: 5
period: 10
timeout: 5
# Remove probe as it can make mongo unable to start in extreme situation
# probe:
# liveness:
# handler:
# type: EXEC
# method:
# command:
# - mongo
# - --eval
# - "db.adminCommand('ping')"
# threshold:
# success: 1
# failure: 40
# delay: 30
# period: 15
# timeout: 5
# readiness:
# handler:
# type: EXEC
# method:
# command:
# - mongo
# - --eval
# - "db.adminCommand('ping')"
# threshold:
# success: 1
# failure: 6
# delay: 5
# period: 10
# timeout: 5
args:
- mongod
- "--replSet"
Expand Down

0 comments on commit 872cb02

Please sign in to comment.