# Parameters for this Virtual Application (Application Instance - AI) type should
# be set on YOUR private configuration configuration file, including the ones 
# commented.

[AI_TEMPLATES : WRK] 

# Attributes MANDATORY for all Virtual Applications
SUT = wrk->apache
LOAD_BALANCER_SUPPORTED = $True
LOAD_BALANCER = $False
LOAD_BALANCER_TARGET_PORTS = 80
LOAD_BALANCER_TARGET_URL = 
LOAD_BALANCER_PORT = 80
LOAD_BALANCER_URL =
RESIZE_SUPPORTED = $True
REGENERATE_DATA = $False 
LOAD_GENERATOR_ROLE = wrk
LOAD_MANAGER_ROLE = wrk
METRIC_AGGREGATOR_ROLE = wrk
CAPTURE_ROLE = apache
LOAD_PROFILE = default
LOAD_LEVEL = uniformIXIXI1I5
LOAD_DURATION = 30
CATEGORY = application-stress
PROFILES = default
REFERENCE = https://github.com/wg/wrk/
LICENSE = Apache_v2
REPORTED_METRICS = throughput,latency,completion_time,errors,quiescent_time

# VApp-specific MANDATORY attributes
DESCRIPTION =Deploys an instance running the wrk HTTP load generator and one or\n
DESCRIPTION +=more instances running the Apache Web Server (in case of multiple\n
DESCRIPTION +=instances, an additional load balancer instance running HAProxy\n
DESCRIPTION +=is also deployed).\n
DESCRIPTION +=  - LOAD_PROFILE possible values: _PROFILES_ \n
DESCRIPTION +=  - LOAD_LEVEL meaning: number of threads on wrk (parameter -t).\n 
DESCRIPTION +=  - LOAD_DURATION meaning: for how long should wrk run.\n
# This only has effect if the parameter LOAD_BALANCER is set to "$True"
LB_SETUP1 = cb_restart_loadbalancer.sh
LB_RESET1 = cb_restart_loadbalancer.sh
# These are always executed
APACHE_SETUP1 = cb_restart_apache.sh
START = cb_run_wrk.sh

# VApp-specific modifier parameters. Commented attributes imply default values assumed
CONNECTIONS=400
PROTOCOL=http
URL=index.html

# Inter-Virtual Application instances (inter-AI) synchronized execution. Entirely optional
#SYNC_COUNTER_NAME = synchronization_counter
#CONCURRENT_AIS = 2
#SYNC_CHANNEL_NAME = synchronization_channel
#RUN_COUNTER_NAME = experiment_id_counter
