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

add kernel parameters settings in pod security context #1016

Merged
merged 4 commits into from
Oct 16, 2019
Merged
Changes from 2 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
37 changes: 36 additions & 1 deletion charts/tidb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,15 @@ pd:
# Specify the security context of PD Pod.
# refer to https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
podSecurityContext: {}
# sysctls:
# # You can enable these kernel parameters tuning to improve TiDB performance,
# # when the kubelet is configured to allow unsafe sysctls
tennix marked this conversation as resolved.
Show resolved Hide resolved
# - name: net.core.somaxconn
# value: "32768"
# - name: net.ipv4.tcp_syncookies
# value: "0"
# - name: net.ipv4.tcp_tw_recycle
# value: "0"

# Specify the priorityClassName for PD Pod.
# refer to https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#how-to-use-priority-and-preemption
Expand Down Expand Up @@ -208,7 +217,7 @@ tikv:
#
# # Normally it should be tuned to 30%-50% of `tikv.resources.limits.memory`, for example: 32Gi -> 16GB
# capacity = "1GB"
# Note that we can't set raftstore.capacity in config because it will be overridden by the command line parameter,
# Note that we can't set raftstore.capacity in config because it will be overridden by the command line parameter,
# we can only set capacity in tikv.resources.limits.storage.

replicas: 3
Expand Down Expand Up @@ -257,6 +266,15 @@ tikv:
# Specify the security context of TiKV Pod.
# refer to https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
podSecurityContext: {}
# sysctls:
# # You can enable these kernel parameters tuning to improve TiDB performance,
# # when the kubelet is configured to allow unsafe sysctls
# - name: net.core.somaxconn
# value: "32768"
# - name: net.ipv4.tcp_syncookies
# value: "0"
# - name: net.ipv4.tcp_tw_recycle
# value: "0"

# Specify the priorityClassName for TiKV Pod.
# refer to https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#how-to-use-priority-and-preemption
Expand Down Expand Up @@ -335,6 +353,23 @@ tidb:
# Specify the security context of TiDB Pod.
# refer to https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
podSecurityContext: {}
# sysctls:
# # You can enable these kernel parameters tuning to improve TiDB performance,
tennix marked this conversation as resolved.
Show resolved Hide resolved
# # when the kubelet is configured to allow unsafe sysctls
# - name: net.core.somaxconn
# value: "32768"
# - name: net.ipv4.tcp_syncookies
# value: "0"
# - name: net.ipv4.tcp_tw_recycle
# value: "0"

# # Load balancers usually have an idle timeout (eg. AWS NLB idle timeout is 350),
# # the tcp_keepalive_time must be set to lower than LB idle timeout.
# - name: net.ipv4.tcp_keepalive_time
# value: "300"
# - name: net.ipv4.tcp_keepalive_intvl
# value: "75"


# Specify the priorityClassName for TiDB Pod.
# refer to https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#how-to-use-priority-and-preemption
Expand Down