Skip to content

Commit 19a327c

Browse files
committed
feat: set max open file num in blobfuse-proxy deployment
1 parent 9798e89 commit 19a327c

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

deploy/blobfuse-proxy/blobfuse-proxy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ spec:
4949
dpkg -i /tmp/blobfuse-proxy.deb
5050
rm -f /tmp/packages-microsoft-prod.deb /tmp/blobfuse-proxy.deb
5151
mkdir -p /var/lib/kubelet/plugins/blob.csi.azure.com
52+
echo "set max open file num"
53+
sysctl -w fs.file-max=9000000
5254
echo "Enabling blobfuse proxy systemctl service"
5355
systemctl daemon-reload
5456
systemctl enable blobfuse-proxy

deploy/install-driver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if [ $ver != "master" ]; then
3434
fi
3535

3636
if [[ "$#" -gt 1 ]]; then
37-
if [[ "$2" == *"local"* ]] && [[ "$2" == *"enable-blobfuse-proxy"* ]]; then
37+
if [[ "$2" == *"local"* ]] && [[ "$2" == *"blobfuse-proxy"* ]]; then
3838
echo "set enable-blobfuse-proxy as true ..."
3939
kubectl apply -f ./deploy/blobfuse-proxy/blobfuse-proxy.yaml
4040
sed -i 's/enable-blobfuse-proxy=false/enable-blobfuse-proxy=true/g' $repo/csi-blob-node.yaml

deploy/uninstall-driver.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ if [ $ver != "master" ]; then
3333
repo="$repo/$ver"
3434
fi
3535

36+
if [[ "$#" -gt 1 ]]; then
37+
if [[ "$2" == *"blobfuse-proxy"* ]]; then
38+
echo "remove blobfuse-proxy deployment ..."
39+
kubectl delete -f ./deploy/blobfuse-proxy/blobfuse-proxy.yaml
40+
fi
41+
fi
42+
3643
echo "Uninstalling Azure Blob Storage CSI driver, version: $ver ..."
3744
kubectl delete -f $repo/csi-blob-controller.yaml --ignore-not-found
3845
kubectl delete -f $repo/csi-blob-node.yaml --ignore-not-found

0 commit comments

Comments
 (0)