Internet Offline: Mengukur kiwix dengan ab

From OnnoWiki
Revision as of 14:23, 17 December 2018 by Onnowpurbo (talk | contribs) (Created page with "Secara umum: ab -kc 20 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ ==Script kiwix-ab.sh== ssh pi@192.168.0.1 /home/pi/kiwix-on.sh & sleep 5 rm -Rf ha...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Secara umum:

ab -kc 20 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/


Script kiwix-ab.sh

ssh pi@192.168.0.1 /home/pi/kiwix-on.sh &
sleep 5
rm -Rf hasil-kiwix-ab-192.168.0.1.txt
touch hasil-kiwix-ab-192.168.0.1.txt
echo 10 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 10 -t 60 http://192.168.0.1:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.1.txt
echo 20 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 20 -t 60 http://192.168.0.1:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.1.txt
echo 30 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 30 -t 60 http://192.168.0.1:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.1.txt
echo 40 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 40 -t 60 http://192.168.0.1:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.1.txt
echo 50 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 50 -t 60 http://192.168.0.1:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.1.txt
ssh pi@192.168.0.1 /home/pi/kiwix-off.sh &

ssh onno@192.168.0.2 /home/onno/kiwix-on.sh &
sleep 5
rm -Rf hasil-kiwix-ab-192.168.0.2.txt
touch hasil-kiwix-ab-192.168.0.2.txt
echo 10 >> hasil-kiwix-ab-192.168.0.2.txt
ab -kc 10 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.2.txt
echo 20 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 20 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.2.txt
echo 30 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 30 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.2.txt
echo 40 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 40 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.2.txt
echo 50 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 50 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.2.txt
ssh onno@192.168.0.2 /home/pi/kiwix-off.sh &

ssh onno@192.168.0.3 /home/onno/kiwix-on.sh &
sleep 5
VBoxManage controlvm "Offline" acpipowerbutton
sleep 30
VBoxManage modifyvm "Offline" --memory 1024
VBoxManage modifyvm "Offline" --unplugcpu 3
VBoxManage modifyvm "Offline" --unplugcpu 2
VBoxManage modifyvm "Offline" --unplugcpu 1
VBoxManage startvm "Offline"
sleep 110
rm -Rf hasil-kiwix-ab-192.168.0.3.txt
touch hasil-kiwix-ab-192.168.0.3.txt
echo 10 >> hasil-kiwix-ab-192.168.0.3.txt
ab -kc 10 -t 60 http://192.168.0.3:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt
echo 20 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 20 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt
echo 30 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 30 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt
echo 40 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 40 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt
echo 50 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 50 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt
echo 100 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 100 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt
echo 150 >> hasil-kiwix-ab-192.168.0.1.txt
ab -kc 150 -t 60 http://192.168.0.2:8080/wikipedia_id_all_novid_2018-07/ >> hasil-kiwix-ab-192.168.0.3.txt
ssh onno@192.168.0.3 /home/pi/kiwix-off.sh &