Skip to content

Commit 9c04311

Browse files
committed
fix: set open file num limit and KillMode in blobfuse-proxy
1 parent 28a3093 commit 9c04311

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkg/blobfuse-proxy/blobfuse-proxy.service

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ Description=Blobfuse proxy service
33

44
[Service]
55
ExecStart=/usr/bin/blobfuse-proxy --v=5 --blobfuse-proxy-endpoint=unix://var/lib/kubelet/plugins/blob.csi.azure.com/blobfuse-proxy.sock
6+
Delegate=yes
7+
KillMode=process
8+
Restart=always
9+
OOMScoreAdjust=-999
10+
# Having non-zero Limit*s causes performance problems due to accounting overhead
11+
# in the kernel. We recommend using cgroups to do container-local accounting.
12+
LimitNPROC=infinity
13+
LimitCORE=infinity
14+
LimitNOFILE=infinity
15+
TasksMax=infinity
616

717
[Install]
818
WantedBy=multi-user.target

0 commit comments

Comments
 (0)