Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3153754
ploadstart.sh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ploadstart.sh
View Options
#!@BASHPATH@
set -e
msg_count=""
msg_size=""
usage() {
echo "ploadstart [options]"
echo ""
echo "Options:"
echo " -c msg_count Number of messages to send (max UINT32_T default 1500000)"
echo " -s msg_size Size of messages in bytes (max 1000000 default 300)"
echo " -h display this help"
}
while getopts "hs:c:" optflag; do
case "$optflag" in
h)
usage
exit 0
;;
c)
msg_count="$OPTARG"
;;
s)
msg_size="$OPTARG"
;;
\?|:)
usage
exit 1
;;
esac
done
[ -n "$msg_count" ] && corosync-cmapctl -s pload.count u32 $msg_count
[ -n "$msg_size" ] && corosync-cmapctl -s pload.size u32 $msg_size
echo "***** WARNING *****"
echo ""
echo "Running pload test will kill your cluster and all corosync daemons will exit"
echo "at the end of the load test"
echo ""
echo "***** END OF WARNING *****"
echo ""
echo "YOU HAVE BEEN WARNED"
echo ""
echo "If you agree, and want to proceed, please type:"
echo "Yes, I fully understand the risks of what I am doing"
echo ""
read -p "type here: " ans
[ "$ans" = "Yes, I fully understand the risks of what I am doing" ] || {
echo "Wise choice.. or you simply didn't type it right"
exit 0
}
corosync-cmapctl -s pload.start str i_totally_understand_pload_will_crash_my_cluster_and_kill_corosync_on_exit
echo "PLOAD started, please see corosync.log for final results"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 26, 1:14 AM (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1454637
Default Alt Text
ploadstart.sh (1 KB)
Attached To
Mode
rC Corosync
Attached
Detach File
Event Timeline
Log In to Comment