-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
77 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
SERVICE="blobfuse2" | ||
SCRIPT="longhaul.sh" | ||
|
||
# To create ramdisk | ||
# sudo mount -t tmpfs -o rw,size=4G tmpfs /mnt/ramdisk | ||
|
||
cd /home/vibhansa/go/src/azure-storage-fuse/ | ||
|
||
if pgrep -x "$SERVICE" > /dev/null | ||
|
@@ -23,18 +26,23 @@ then | |
|
||
rm -rf /home/vibhansa/blob_mnt2/stress | ||
rm -rf /home/vibhansa/blob_mnt2/myfile* | ||
|
||
#go test -timeout 120m -v ./test/stress_test/stress_test.go -args -mnt-path=/home/vibhansa/blob_mnt2 -quick=false 2&> ./stress.log | ||
./test/longhaul/stresstest.sh | ||
echo "`whoami` : `date` :: Ending stress test " >> ./longhaul2.log | ||
cp ./longhaul2.log /home/vibhansa/blob_mnt2/ | ||
cp ./stress.log /home/vibhansa/blob_mnt2/ | ||
|
||
sleep 30 | ||
|
||
rm -rf /mnt/ramdisk/* | ||
rm -rf /home/vibhansa/blob_mnt2/stress | ||
sudo rm -rf /var/log/blob*.gz | ||
fi | ||
else | ||
echo "`date` :: Re-Starting blobfuse2 *******************" >> ./longhaul2.log | ||
rm -rf /home/vibhansa/blob_mnt2/* | ||
rm -rf /mnt/ramdisk/* | ||
sudo fusermount -u ~/blob_mnt2 | ||
rm -rf /mnt/ramdisk2/* | ||
./blobfuse2 mount ~/blob_mnt2 --config-file=./config.yaml | ||
|
@@ -47,7 +55,7 @@ else | |
echo "`date`: Restart : `./blobfuse2 --version`" >> ./restart2.log | ||
|
||
# Send email that blobfuse2 has crashed | ||
echo "Blobfuse2 Failure" | mail -s "Blobfuse2 Restart" -A ./restart2.log -a "From: [email protected]" <mail id here> | ||
echo "Blobfuse2 Failure" | mail -s "Blobfuse2 Restart" -A ./restart2.log -a "From: [email protected]" [email protected] | ||
|
||
cp /var/log/blobfuse2.log /home/vibhansa/blob_mnt2/ | ||
cp ./longhaul2.log /home/vibhansa/blob_mnt2/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
#!/bin/bash | ||
|
||
while true | ||
do | ||
while read -r line | ||
do | ||
echo "Running with : " $line | ||
|
||
rm -rf ~/blob_mnt2/stress* | ||
rm -rf ~/blob_mnt2/myfile* | ||
|
||
echo "Un-Mounting Blobfuse2" | ||
./blobfuse2 unmount all | ||
rm -rf ~/blob_mnt2/* | ||
rm -rf ~/blob_mnt2/.* | ||
rm -rf /mnt/ramdisk/* | ||
|
||
echo "Mounting Blobfuse2" | ||
./blobfuse2 mount ~/blob_mnt2 --config-file=./config.yaml --file-cache-timeout=0 --telemetry="$line" | ||
sleep 2 | ||
|
||
echo "Blobfuse2 pid : " `pidof blobfuse2` | ||
echo "`whoami` : `date` :: Starting stress test " >> ./longhaul2.log | ||
./test/longhaul/stresstest.sh | ||
echo "`whoami` : `date` :: Ending stress test " >> ./longhaul2.log | ||
|
||
sleep 300 | ||
done < $1 | ||
done | ||
|