9 echo "ploadstart [options]"
12 echo " -c msg_count Number of messages to send (max UINT32_T default 1500000)"
13 echo " -s msg_size Size of messages in bytes (max 1000000 default 300)"
14 echo " -h display this help"
17 while getopts "hs:c:" optflag
; do
36 [ -n "$msg_count" ] && corosync-cmapctl
-s pload.count u32
$msg_count
37 [ -n "$msg_size" ] && corosync-cmapctl
-s pload.size u32
$msg_size
39 echo "***** WARNING *****"
41 echo "Running pload test will kill your cluster and all corosync daemons will exit"
42 echo "at the end of the load test"
44 echo "***** END OF WARNING *****"
46 echo "YOU HAVE BEEN WARNED"
48 echo "If you agree, and want to proceed, please type:"
49 echo "Yes, I fully understand the risks of what I am doing"
51 read -p "type here: " ans
53 [ "$ans" = "Yes, I fully understand the risks of what I am doing" ] ||
{
54 echo "Wise choice.. or you simply didn't type it right"
58 corosync-cmapctl
-s pload.start str i_totally_understand_pload_will_crash_my_cluster_and_kill_corosync_on_exit
60 echo "PLOAD started, please see corosync.log for final results"