Skip to content

Commit 523f62c

Browse files
author
ohotnikov.ivan
committed
feat(charts/cozystack): add recommended sysctl and etcd defaults
Add recommended sysctl parameters for TCP orphan handling, network backlog, and TCP keepalive to improve DRBD connection stability and prevent port exhaustion. Add etcd quota and request size limits to prevent etcd running out of space with large LINSTOR CRD datasets and allow larger CRD objects to be stored. Signed-off-by: ohotnikov.ivan <ohotnikov.ivan@e-queo.net>
1 parent 00358fd commit 523f62c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

charts/cozystack/templates/_helpers.tpl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ machine:
2929
net.ipv4.neigh.default.gc_thresh1: "4096"
3030
net.ipv4.neigh.default.gc_thresh2: "8192"
3131
net.ipv4.neigh.default.gc_thresh3: "16384"
32+
# TCP orphan handling
33+
net.ipv4.tcp_orphan_retries: "3"
34+
net.ipv4.tcp_fin_timeout: "30"
35+
# Network backlog
36+
net.core.netdev_max_backlog: "5000"
37+
net.core.netdev_budget: "600"
38+
net.core.netdev_budget_usecs: "8000"
39+
# TCP keepalive (early detection of dead connections)
40+
net.ipv4.tcp_keepalive_time: "600"
41+
net.ipv4.tcp_keepalive_intvl: "10"
42+
net.ipv4.tcp_keepalive_probes: "6"
3243
kernel:
3344
modules:
3445
- name: openvswitch
@@ -120,6 +131,9 @@ cluster:
120131
etcd:
121132
advertisedSubnets:
122133
{{- toYaml .Values.advertisedSubnets | nindent 6 }}
134+
extraArgs:
135+
quota-backend-bytes: "8589934592" # 8GiB - prevent etcd running out of space with large LINSTOR CRD datasets
136+
max-request-bytes: "10485760" # 10MiB - allow larger CRD objects to be stored
123137
{{- end }}
124138
{{- end }}
125139

0 commit comments

Comments
 (0)