source $(echo $0 | sed -e "s/\(.*\/\)*.*/\1.\//g")/cb_common.sh
LOAD_PROFILE=$1
LOAD_LEVEL=$2
LOAD_DURATION=$3
LOAD_ID=$4
SLA_RUNTIME_TARGETS=$5
if [[ -z "$LOAD_PROFILE" || -z "$LOAD_LEVEL" || -z "$LOAD_DURATION" || -z "$LOAD_ID" ]]
then
syslog_netcat "Usage: cb_netperf.sh <load profile> <load level> <load duration> <load_id>"
exit 1
fi
LOAD_GENERATOR_IP=$(get_my_ai_attribute load_generator_ip)
LOAD_GENERATOR_TARGET_IP=$(get_my_ai_attribute load_generator_target_ip)
netperf=$(which netperf)
LOAD_PROFILE=$(echo ${LOAD_PROFILE} | tr '[:upper:]' '[:lower:]')
declare -A CMDLINE_START
CMDLINE_START["tcp_stream"]="-t TCP_STREAM"
CMDLINE_START["tcp_maerts"]="-t TCP_MAERTS"
CMDLINE_START["udp_stream"]="-t UDP_STREAM"
CMDLINE_START["tcp_rr"]="-t TCP_RR"
CMDLINE_START["tcp_cc"]="-t TCP_CC"
CMDLINE_START["tcp_crr"]="-t TCP_CRR"
CMDLINE_START["udp_rr"]="-t UDP_RR"
LOAD_PROFILE = default
Hi Michael,
Thanks for dropping in. You have two options:
1. Drop this into your configuration file:
[AI_TEMPLATES : NETPERF]
LOAD_PROFILE = FOO # such as tcp_stream
Or set this on the command line during runtime:
2. cbtool> cldalter ai_templates
netperf_load_profile=tcp_stream
For a list of runtime configurables, either use the GUI or show
the current settings:
3. cbtool> cldshow all
/* * Michael R. Hines * Senior Engineer, DigitalOcean. */
If I want to change the recv_buffer_size or send_buffer_size, is there a specific format to do that? Can I do cldalter ai_templates netperf_recv_buffer_size 1k or should I do cldalter ai_templates netperf_recv_buffer_size 1024?
Also, load_duration is showing load_duration: uniformIXIXI70I90. Can this attribute be changed to time in seconds?