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

feat: set max open file num in blobfuse-proxy deployment #539

Merged
merged 2 commits into from
Oct 12, 2021
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions deploy/blobfuse-proxy/blobfuse-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ spec:
dpkg -i /tmp/blobfuse-proxy.deb
rm -f /tmp/packages-microsoft-prod.deb /tmp/blobfuse-proxy.deb
mkdir -p /var/lib/kubelet/plugins/blob.csi.azure.com
echo "set max open file num"
sysctl -w fs.file-max=9000000
echo "Enabling blobfuse proxy systemctl service"
systemctl daemon-reload
systemctl enable blobfuse-proxy
Expand Down
2 changes: 1 addition & 1 deletion deploy/install-driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if [ $ver != "master" ]; then
fi

if [[ "$#" -gt 1 ]]; then
if [[ "$2" == *"local"* ]] && [[ "$2" == *"enable-blobfuse-proxy"* ]]; then
if [[ "$2" == *"local"* ]] && [[ "$2" == *"blobfuse-proxy"* ]]; then
echo "set enable-blobfuse-proxy as true ..."
kubectl apply -f ./deploy/blobfuse-proxy/blobfuse-proxy.yaml
sed -i 's/enable-blobfuse-proxy=false/enable-blobfuse-proxy=true/g' $repo/csi-blob-node.yaml
Expand Down
7 changes: 7 additions & 0 deletions deploy/uninstall-driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ if [ $ver != "master" ]; then
repo="$repo/$ver"
fi

if [[ "$#" -gt 1 ]]; then
if [[ "$2" == *"blobfuse-proxy"* ]]; then
echo "remove blobfuse-proxy deployment ..."
kubectl delete -f ./deploy/blobfuse-proxy/blobfuse-proxy.yaml
fi
fi

echo "Uninstalling Azure Blob Storage CSI driver, version: $ver ..."
kubectl delete -f $repo/csi-blob-controller.yaml --ignore-not-found
kubectl delete -f $repo/csi-blob-node.yaml --ignore-not-found
Expand Down
2 changes: 1 addition & 1 deletion test/sanity/run-tests-all-clouds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function install_csi_sanity_bin {
mkdir -p $GOPATH/src/github.com/kubernetes-csi
pushd $GOPATH/src/github.com/kubernetes-csi
export GO111MODULE=off
git clone https://github.com/kubernetes-csi/csi-test.git -b v4.2.0
git clone https://github.com/kubernetes-csi/csi-test.git -b v4.3.0
pushd csi-test/cmd/csi-sanity
make install
popd
Expand Down