Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Node count to 3 for demo

  • Loading branch information...
commit 7701d34af41cea334e128493bd8efe505795e273 1 parent 528ae4f
@mtrl authored
View
10 mtrl-tools/gitpullnodes
@@ -5,10 +5,10 @@ source $MY_DIR/nodecount
echo "Pulling"
echo "-----"
-#for i in 6
-#do
-# echo vc$i
-# ssh ubuntu@vc$i 'cd convert;git pull;'
-#done
+for i in `seq 1 $NODECOUNT`
+do
+ echo vc$i
+ ssh ubuntu@vc$i 'cd convert;git pull;'
+done
echo vcf
ssh ubuntu@vcf 'cd convert;git pull;'
View
20 mtrl-tools/hosts
@@ -9,13 +9,13 @@ ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
# Video conversions
-10.48.153.78 vc1
-10.226.34.160 vc2
-10.226.75.192 vc3
-10.226.75.146 vc4
-10.226.143.226 vcf
-10.48.193.29 vc5
-10.227.201.205 vc6
-10.226.39.48 vc7
-10.48.182.186 vc8
-10.228.213.188 vc9
+10.226.238.146 vc1
+10.48.182.241 vc2
+10.48.181.208 vc3
+#10.226.75.146 vc4
+10.244.229.155 vcf
+#10.48.193.29 vc5
+#10.227.201.205 vc6
+#10.226.39.48 vc7
+#10.48.182.186 vc8
+#10.228.213.188 vc9
View
2  mtrl-tools/nodecount
@@ -1,2 +1,2 @@
#!/bin/zsh
-NODECOUNT=9
+NODECOUNT=3
View
34 mtrl-tools/vcstats
@@ -2,25 +2,25 @@
#Downloaded
echo "# Stats as of `date`"
#echo "## FLVs downloaded from Siemens' media server"
-#for i in 6
-#do
- #echo vc$i
+for i in `seq 1 $NODECOUNT`
+do
+ echo vc$i
#vc1 'cd convert; find flvs -name "*.flv" | wc -l'
-# DOWNLOADS=$(ssh ubuntu@vc$i 'find convert/flvs -type f \( -iname "*.flv" ! -iname ".*" \) | wc -l')
-# FILESIZE=$(ssh ubuntu@vc$i 'cd convert; du -h flvs/ --max-depth=0 | cut -f1')
-# echo vc$i = $DOWNLOADS / $FILESIZE
-# echo;
-#done
+ DOWNLOADS=$(ssh ubuntu@vc$i 'find convert/flvs -type f \( -iname "*.flv" ! -iname ".*" \) | wc -l')
+ FILESIZE=$(ssh ubuntu@vc$i 'cd convert; du -h flvs/ --max-depth=0 | cut -f1')
+ echo vc$i = $DOWNLOADS / $FILESIZE
+ echo;
+done
-#echo "## Number of converted MP4 files"
-#for i in 6
-#do
- #echo vc$i
-# COUNT=$(ssh ubuntu@vc$i 'cd convert; find mp4s -name "*.mp4" | wc -l')
-# FILESIZE=$(ssh ubuntu@vc$i 'cd convert; du -h mp4s/ --max-depth=0 | cut -f1')
-# echo vc$i = $COUNT / $FILESIZE
-# echo;
-#done
+echo "## Number of converted MP4 files"
+for i in `seq 1 $NODECOUNT`
+do
+ echo vc$i
+ COUNT=$(ssh ubuntu@vc$i 'cd convert; find mp4s -name "*.mp4" | wc -l')
+ FILESIZE=$(ssh ubuntu@vc$i 'cd convert; du -h mp4s/ --max-depth=0 | cut -f1')
+ echo vc$i = $COUNT / $FILESIZE
+ echo;
+done
# permanent storage stats
echo "## Files rsynced to permanent storage"
COUNT=$(ssh ubuntu@54.247.162.110 'cd ~/ebs;find flvs -type f \( -iname "*.flv" ! -iname ".*" \) | wc -l')
Please sign in to comment.
Something went wrong with that request. Please try again.