Skip to content

Commit

Permalink
add sysctls configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
cofyc committed Mar 25, 2020
1 parent 3980534 commit 106c209
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion deploy/gcp/manifests/db.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ spec:
value: CLUSTER_NAME-pd
tidb:
config: {}
annotations:
tidb.pingcap.com/sysctl-init: "true"
podSecurityContext:
sysctls:
- name: net.core.somaxconn
value: "32768"
- name: net.ipv4.tcp_keepalive_intvl
value: "75"
- name: net.ipv4.tcp_keepalive_time
value: "300"
nodeSelector:
dedicated: CLUSTER_NAME-tidb
replicas: 2
Expand All @@ -32,7 +42,9 @@ spec:
separateSlowLog: true
service:
type: LoadBalancer
exposeStatus: true
externalTrafficPolicy: Local
annotations:
tidb.pingcap.com/sysctl-init: "true"
slowLogTailer:
limits:
cpu: 100m
Expand All @@ -48,6 +60,12 @@ spec:
tikv:
config:
log-level: info
annotations:
tidb.pingcap.com/sysctl-init: "true"
podSecurityContext:
sysctls:
- name: net.core.somaxconn
value: "32768"
nodeSelector:
dedicated: CLUSTER_NAME-tikv
replicas: 3
Expand Down

0 comments on commit 106c209

Please sign in to comment.