configuration files and runner scripts are reorganized

This commit is contained in:
Cagatay Sonmez 2017-06-19 22:41:07 +03:00
parent 138adb8f32
commit 4d98cac8b5
11 changed files with 107 additions and 282 deletions

View File

@ -1,63 +0,0 @@
<?xml version="1.0"?>
<applications>
<application name="FACE_REC_APP">
<usage_percentage>100</usage_percentage>
<prob_cloud_selection>10</prob_cloud_selection>
<poisson_interarrival>3</poisson_interarrival>
<active_period>45</active_period>
<idle_period>15</idle_period>
<data_upload>1500</data_upload>
<data_download>16</data_download>
<task_length>1500</task_length>
<required_core>2</required_core>
<vm_utilization>10</vm_utilization>
</application>
<application name="HEALTH_APP">
<usage_percentage>0</usage_percentage>
<prob_cloud_selection>0</prob_cloud_selection>
<poisson_interarrival>0</poisson_interarrival>
<active_period>0</active_period>
<idle_period>0</idle_period>
<data_upload>0</data_upload>
<data_download>0</data_download>
<task_length>0</task_length>
<required_core>0</required_core>
<vm_utilization>0</vm_utilization>
</application>
<application name="HEAVY_COMP_APP">
<usage_percentage>0</usage_percentage>
<prob_cloud_selection>0</prob_cloud_selection>
<poisson_interarrival>0</poisson_interarrival>
<active_period>0</active_period>
<idle_period>0</idle_period>
<data_upload>0</data_upload>
<data_download>0</data_download>
<task_length>0</task_length>
<required_core>0</required_core>
<vm_utilization>0</vm_utilization>
</application>
<application name="VIDEO_GAME_APP">
<usage_percentage>0</usage_percentage>
<prob_cloud_selection>0</prob_cloud_selection>
<poisson_interarrival>0</poisson_interarrival>
<active_period>0</active_period>
<idle_period>0</idle_period>
<data_upload>0</data_upload>
<data_download>0</data_download>
<task_length>0</task_length>
<required_core>0</required_core>
<vm_utilization>0</vm_utilization>
</application>
<application name="SIMPLE_SERVICE_APP">
<usage_percentage>0</usage_percentage>
<prob_cloud_selection>0</prob_cloud_selection>
<poisson_interarrival>0</poisson_interarrival>
<active_period>0</active_period>
<idle_period>0</idle_period>
<data_upload>0</data_upload>
<data_download>0</data_download>
<task_length>0</task_length>
<required_core>0</required_core>
<vm_utilization>0</vm_utilization>
</application>
</applications>

View File

@ -1,29 +0,0 @@
#default config file
simulation_time=2
warm_up_period=1200
vm_load_check_interval=30
vm_location_check_interval=30
basic_file_log_enabled=false
deep_file_log_enabled=false
min_number_of_mobile_devices=50
max_number_of_mobile_devices=250
mobile_device_counter_size=25
wan_propogation_delay=0.1
lan_internal_delay=0.004
wlan_bandwidth=300
wan_bandwidth=20
gsm_bandwidth=10
mips_for_cloud=20000
#use ',' for multiple values
orchestrator_policies=NEXT_FIT
#use ',' for multiple values
simulation_scenarios=SINGLE_TIER,TWO_TIER,TWO_TIER_WITH_EO
attractiveness_L1_mean_waiting_time=60
attractiveness_L2_mean_waiting_time=30
attractiveness_L3_mean_waiting_time=15

View File

@ -1,4 +0,0 @@
#!/bin/sh
rm -rf ../bin
mkdir ../bin
javac -classpath "../lib/cloudsim-4.0.jar:../lib/commons-math3-3.6.1.jar" -sourcepath ../src ../src/edu/boun/edgecloudsim/sample_application/mainApp.java -d ../bin

View File

@ -1,18 +0,0 @@
#!/bin/sh
script_root_path="$(dirname "$(readlink -f "$0")")"
simulation_out_folder=$1
scenario_name=$2
edge_devices_file=$3
applications_file=$4
iteration_number=$5
scenario_out_folder=${simulation_out_folder}/${scenario_name}/ite${iteration_number}
scenario_conf_file=${script_root_path}/../config/${scenario_name}.properties
scenario_edge_devices_file=${script_root_path}/../config/${edge_devices_file}
scenario_applications_file=${script_root_path}/../config/${applications_file}
mkdir -p $scenario_out_folder
java -classpath '../bin:../lib/cloudsim-4.0.jar:../lib/commons-math3-3.6.1.jar' edu.boun.edgecloudsim.sample_application.mainApp $scenario_conf_file $scenario_edge_devices_file $scenario_applications_file $scenario_out_folder $iteration_number > ${scenario_out_folder}.log
tar -czf ${scenario_out_folder}.tar.gz -C $simulation_out_folder/${scenario_name} ite${iteration_number}
rm -rf $scenario_out_folder

View File

@ -0,0 +1,4 @@
#!/bin/sh
rm -rf ../../bin
mkdir ../../bin
javac -classpath "../../lib/cloudsim-4.0.jar:../../lib/commons-math3-3.6.1.jar:../../lib/colt.jar" -sourcepath ../../src ../../src/edu/boun/edgecloudsim/sample_application/mainApp.java -d ../../bin

View File

@ -0,0 +1,55 @@
<?xml version="1.0"?>
<applications>
<application name="AUGMENTED_REALITY">
<usage_percentage>30</usage_percentage>
<prob_cloud_selection>20</prob_cloud_selection>
<poisson_interarrival>5</poisson_interarrival>
<delay_sensitivity>0.90</delay_sensitivity>
<active_period>45</active_period>
<idle_period>15</idle_period>
<data_upload>1500</data_upload>
<data_download>25</data_download>
<task_length>2000</task_length>
<required_core>1</required_core>
<vm_utilization>20</vm_utilization>
</application>
<application name="HEALTH_APP">
<usage_percentage>20</usage_percentage>
<prob_cloud_selection>20</prob_cloud_selection>
<poisson_interarrival>30</poisson_interarrival>
<delay_sensitivity>0.05</delay_sensitivity>
<active_period>10</active_period>
<idle_period>20</idle_period>
<data_upload>1250</data_upload>
<data_download>20</data_download>
<task_length>400</task_length>
<required_core>1</required_core>
<vm_utilization>5</vm_utilization>
</application>
<application name="HEAVY_COMP_APP">
<usage_percentage>20</usage_percentage>
<prob_cloud_selection>40</prob_cloud_selection>
<poisson_interarrival>60</poisson_interarrival>
<delay_sensitivity>0.15</delay_sensitivity>
<active_period>60</active_period>
<idle_period>60</idle_period>
<data_upload>2500</data_upload>
<data_download>250</data_download>
<task_length>3000</task_length>
<required_core>1</required_core>
<vm_utilization>30</vm_utilization>
</application>
<application name="INFOTAINMENT_APP">
<usage_percentage>30</usage_percentage>
<prob_cloud_selection>15</prob_cloud_selection>
<poisson_interarrival>7</poisson_interarrival>
<delay_sensitivity>0.5</delay_sensitivity>
<active_period>15</active_period>
<idle_period>45</idle_period>
<data_upload>25</data_upload>
<data_download>2000</data_download>
<task_length>750</task_length>
<required_core>1</required_core>
<vm_utilization>10</vm_utilization>
</application>
</applications>

View File

@ -0,0 +1,30 @@
#default config file
simulation_time=20
warm_up_period=3
vm_load_check_interval=0.1
vm_location_check_interval=0.1
file_log_enabled=true
deep_file_log_enabled=false
min_number_of_mobile_devices=100
max_number_of_mobile_devices=1000
mobile_device_counter_size=100
wan_propogation_delay=0.1
lan_internal_delay=0.005
wlan_bandwidth=200
wan_bandwidth=15
gsm_bandwidth=10
mips_for_cloud=20000
#use ',' for multiple values
orchestrator_policies=NEXT_FIT
#use ',' for multiple values
simulation_scenarios=SINGLE_TIER,TWO_TIER,TWO_TIER_WITH_EO
#mean waiting time in seconds
attractiveness_L1_mean_waiting_time=500
attractiveness_L2_mean_waiting_time=300
attractiveness_L3_mean_waiting_time=120

View File

@ -30,18 +30,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>
@ -76,18 +64,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>
@ -122,18 +98,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>
@ -168,18 +132,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>
@ -214,18 +166,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>
@ -260,18 +200,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>
@ -306,18 +234,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>
@ -352,18 +268,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>
@ -398,18 +302,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>
@ -444,18 +336,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>
@ -490,18 +370,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>
@ -536,18 +404,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>
@ -582,18 +438,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>
@ -628,18 +472,6 @@
<ram>2000</ram> <ram>2000</ram>
<storage>50000</storage> <storage>50000</storage>
</VM> </VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
<VM vmm="Xen">
<core>2</core>
<mips>1000</mips>
<ram>2000</ram>
<storage>50000</storage>
</VM>
</VMs> </VMs>
</host> </host>
</hosts> </hosts>

View File

@ -0,0 +1,18 @@
#!/bin/sh
script_root_path="$(dirname "$(readlink -f "$0")")"
simulation_out_folder=$1
scenario_name=$2
edge_devices_file=$3
applications_file=$4
iteration_number=$5
scenario_out_folder=${simulation_out_folder}/${scenario_name}/ite${iteration_number}
scenario_conf_file=${script_root_path}/config/${scenario_name}.properties
scenario_edge_devices_file=${script_root_path}/config/${edge_devices_file}
scenario_applications_file=${script_root_path}/config/${applications_file}
mkdir -p $scenario_out_folder
java -classpath '../../bin:../../lib/cloudsim-4.0.jar:../../lib/commons-math3-3.6.1.jar:../../lib/colt.jar' edu.boun.edgecloudsim.sample_application.mainApp $scenario_conf_file $scenario_edge_devices_file $scenario_applications_file $scenario_out_folder $iteration_number > ${scenario_out_folder}.log
tar -czf ${scenario_out_folder}.tar.gz -C $simulation_out_folder/${scenario_name} ite${iteration_number}
rm -rf $scenario_out_folder