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

[AI_TEMPLATES : IBM_DAYTRADER]

# Attributes MANDATORY for all Virtual Applications
SUT = client_ibm_daytrader->was->db2
LOAD_BALANCER_SUPPORTED = $True
LOAD_BALANCER = $False
LOAD_BALANCER_TARGET_PORTS = 9080
LOAD_BALANCER_TARGET_URL = daytrader
LOAD_BALANCER_PORT = 9080
LOAD_BALANCER_URL = daytrader
RESIZE_SUPPORTED = $True
REGENERATE_DATA = $False
LOAD_GENERATOR_ROLE = client_ibm_daytrader
LOAD_MANAGER_ROLE = client_ibm_daytrader
METRIC_AGGREGATOR_ROLE = client_ibm_daytrader
CAPTURE_ROLE = db2
LOAD_PROFILE = default
LOAD_LEVEL = uniformIXIXI1I10
# The load duration for daytrader should not be smaller than 90 seconds
LOAD_DURATION = uniformIXIXI90I120
CATEGORY = transactional
PROFILES = default
REFERENCE = http://geronimo.apache.org/GMOxDOC22/daytrader-a-more-complex-application.html
LICENSE = IBM
REPORTED_METRICS = throughput,latency,completion_time,quiescent_time,errors

# VApp-specific MANDATORY attributes
DESCRIPTION =Deploys an 2-tier stack, formed by N "application (Websphere)"\n
DESCRIPTION +=instances - if N > 1, then a "load balancer (HAProxy)" instance\n
DESCRIPTION +=is also deployed - and one "database (DB2)" instance, and then\n
DESCRIPTION +=runs the "DayTrader" benchmark on the stack. The actual load is\n
DESCRIPTION +=performed by an additional instance, running the WebSphere Studio\n
DESCRIPTION +=Workload Simulator (iwlengine).\n
DESCRIPTION +=  - LOAD_PROFILE possible values: _PROFILES_ (the only profile that\n
DESCRIPTION +=    we have registered in the iwlengine).
DESCRIPTION +=  - LOAD_LEVEL meaning: number of clients simultaneously performing\n
DESCRIPTION +=    transactions (parameter "-c" on iwlengine).\n 
DESCRIPTION +=  - LOAD_DURATION meaning: total transaction time for all clients.\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
DB2_SETUP1 = cb_restart_db2.sh
WAS_SETUP2 = cb_restart_was.sh
WAS_RESET1 = cb_restart_was.sh
DB2_RESET1 = cb_restart_db2.sh
START = cb_run_daytrader.sh

# VApp-specific modifier parameters. Commented attributes imply default values assumed
JAVA_HOME = auto
TRADEDB_SIZE = small
NR_QUOTES=40000
NR_USERS=15000
DB2_DATA_DIR = /tradedb
DB2_DATA_FSTYP = ext4
DB2_INSTANCE_NAME = klabuser
DB2_DATABASE_NAME = tradedb
PERIODIC_MEASUREMENTS = $False
APP_COLLECTION = lazy

# 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
