### Siege (https://www.joedog.org/siege-home/) is a HTTP load testing and
### benchmarking tool. It was intended to be a stress test of HTTP applications.
### In this configuration, it is hammering on a single static page served by
### Apache 2.4.10. Due to the small page size, it runs 6 iterations for 30
### seconds and runs from 1 user to 64*NUMCPUS users.

# MM Test Parameters
export MMTESTS="siege"

# Log disk to setup (optional)
#export LOGDISK_PARTITION=/dev/ram0
#export LOGDISK_FILESYSTEM=ext3
#export LOGDISK_MKFS_PARAM=""
#export LOGDISK_MOUNT_ARGS=""

# Test disk to setup (optional)
#export TESTDISK_RAID_DEVICES=
#export TESTDISK_RAID_MD_DEVICE=/dev/md0
#export TESTDISK_RAID_OFFSET=63
#export TESTDISK_RAID_SIZE=250019532
#export TESTDISK_RAID_TYPE=raid0
#export TESTDISK_PARTITION=/dev/sda6
#export TESTDISK_FILESYSTEM=ext3
#export TESTDISK_MKFS_PARAM=""
#export TESTDISK_MOUNT_ARGS=""

# List of monitors
export RUN_MONITOR=yes
export MONITORS_ALWAYS=
export MONITORS_PLAIN=
export MONITORS_GZIP="proc-vmstat top"
export MONITORS_WITH_LATENCY="vmstat iostat"
export MONITOR_UPDATE_FREQUENCY=10
export MONITOR_FTRACE_EVENTS=
export MONITOR_PERF_EVENTS=

# Siege
export SIEGE_MAX_USERS=$((NUMCPUS*64))
export SIEGE_ITERATIONS=6
export SIEGE_ITER_TIME=30

if [ $SIEGE_MAX_USERS -gt 250 ]; then
	SIEGE_MAX_USERS=250
fi
