Commit 1de35eb0 authored by Millian Poquet's avatar Millian Poquet
Browse files

[test] redis_enabled / redis_disabled

parent 66cccf3d
......@@ -252,10 +252,16 @@ add_test(sequence_delay
-bod /tmp/batsim_tests/sequence_delay
-bwd ${CMAKE_SOURCE_DIR})
add_test(redis
add_test(redis_enabled
${CMAKE_SOURCE_DIR}/tools/experiments/execute_instances.py
${CMAKE_SOURCE_DIR}/test/test_redis.yaml
-bod /tmp/batsim_tests/redis
${CMAKE_SOURCE_DIR}/test/test_redis_enabled.yaml
-bod /tmp/batsim_tests/redis_enabled
-bwd ${CMAKE_SOURCE_DIR})
add_test(redis_disabled
${CMAKE_SOURCE_DIR}/tools/experiments/execute_instances.py
${CMAKE_SOURCE_DIR}/test/test_redis_disabled.yaml
-bod /tmp/batsim_tests/redis_disabled
-bwd ${CMAKE_SOURCE_DIR})
add_test(dynamic_submit
......
base_output_directory: /tmp/batsim_tests/redis
base_variables:
batsim_dir: ${base_working_directory}
redis_enabled: "false"
implicit_instances:
# Algorithms without parameters
batsched:
sweep:
platform :
- {"name":"homo128", "filename":"${batsim_dir}/platforms/energy_platform_homogeneous_no_net_128.xml"}
workload :
- {"name":"hello", "filename":"${batsim_dir}/workload_profiles/test_workload_profile.json"}
- {"name":"medium_late", "filename":"${batsim_dir}/workload_profiles/batsim_paper_workload_example_late_job.json"}
algo:
- {"name":"easy_bf", "sched_name":"easy_bf"}
- {"name":"filler", "sched_name":"filler"}
- {"name":"conservative_bf", "sched_name":"conservative_bf"}
generic_instance:
timeout: 3600
working_directory: ${base_working_directory}
output_directory: ${base_output_directory}/results/${instance_id}
batsim_command: batsim -p ${platform[filename]} -w ${workload[filename]} -E -e ${output_directory}/out --mmax-workload --config-file ${output_directory}/batsim.conf -vdebug
sched_command: batsched -v ${algo[sched_name]}
commands_before_execution:
# Generate Batsim config file
- |
#!/bin/bash
cat > ${output_directory}/batsim.conf << EOF
{
"redis": {
"enabled": ${redis_enabled}
},
"job_submission": {
"forward_profiles": true
}
}
EOF
pybatsim:
sweep:
platform :
- {"name":"homo128", "filename":"${batsim_dir}/platforms/energy_platform_homogeneous_no_net_128.xml"}
workload :
- {"name":"hello", "filename":"${batsim_dir}/workload_profiles/test_workload_profile.json"}
- {"name":"medium_late", "filename":"${batsim_dir}/workload_profiles/batsim_paper_workload_example_late_job.json"}
algo:
- {"name":"easy_bf", "sched_name":"easyBackfillNotopo"}
- {"name":"filler", "sched_name":"fillerSched"}
generic_instance:
timeout: 3600
working_directory: ${base_working_directory}
output_directory: ${base_output_directory}/results/${instance_id}
batsim_command: batsim -p ${platform[filename]} -w ${workload[filename]} -E -e ${output_directory}/out --mmax-workload --config-file ${output_directory}/batsim.conf -vdebug
sched_command: ${batsim_dir}/schedulers/pybatsim/launcher.py ${algo[sched_name]}
commands_before_execution:
# Generate Batsim config file
- |
#!/bin/bash
cat > ${output_directory}/batsim.conf << EOF
{
"redis": {
"enabled": ${redis_enabled}
},
"job_submission": {
"forward_profiles": true
}
}
EOF
commands_before_instances:
- ${batsim_dir}/test/is_batsim_dir.py ${base_working_directory}
- ${batsim_dir}/test/clean_output_dir.py ${base_output_directory}
......@@ -2,10 +2,11 @@ base_output_directory: /tmp/batsim_tests/redis
base_variables:
batsim_dir: ${base_working_directory}
redis_enabled: "true"
implicit_instances:
# Algorithms without parameters
noparam:
batsched:
sweep:
platform :
- {"name":"homo128", "filename":"${batsim_dir}/platforms/energy_platform_homogeneous_no_net_128.xml"}
......@@ -16,7 +17,6 @@ implicit_instances:
- {"name":"easy_bf", "sched_name":"easy_bf"}
- {"name":"filler", "sched_name":"filler"}
- {"name":"conservative_bf", "sched_name":"conservative_bf"}
redis_enabled: ["false", "true"]
generic_instance:
timeout: 3600
working_directory: ${base_working_directory}
......@@ -38,6 +38,37 @@ implicit_instances:
}
EOF
pybatsim:
sweep:
platform :
- {"name":"homo128", "filename":"${batsim_dir}/platforms/energy_platform_homogeneous_no_net_128.xml"}
workload :
- {"name":"hello", "filename":"${batsim_dir}/workload_profiles/test_workload_profile.json"}
- {"name":"medium_late", "filename":"${batsim_dir}/workload_profiles/batsim_paper_workload_example_late_job.json"}
algo:
- {"name":"easy_bf", "sched_name":"easyBackfillNotopo"}
- {"name":"filler", "sched_name":"fillerSched"}
generic_instance:
timeout: 3600
working_directory: ${base_working_directory}
output_directory: ${base_output_directory}/results/${instance_id}
batsim_command: batsim -p ${platform[filename]} -w ${workload[filename]} -E -e ${output_directory}/out --mmax-workload --config-file ${output_directory}/batsim.conf -vdebug
sched_command: ${batsim_dir}/schedulers/pybatsim/launcher.py ${algo[sched_name]}
commands_before_execution:
# Generate Batsim config file
- |
#!/bin/bash
cat > ${output_directory}/batsim.conf << EOF
{
"redis": {
"enabled": ${redis_enabled}
},
"job_submission": {
"forward_profiles": true
}
}
EOF
commands_before_instances:
- ${batsim_dir}/test/is_batsim_dir.py ${base_working_directory}
- ${batsim_dir}/test/clean_output_dir.py ${base_output_directory}
......@@ -28,8 +28,8 @@ implicit_instances:
timeout: 20
working_directory: ${base_working_directory}
output_directory: ${base_output_directory}/results/${pybatsim_algo[name]}_${workload[name]}_${platform[name]}_${random_seed}
batsim_command: batsim -p ${platform[filename]} -w ${workload[filename]} -e ${output_directory}/out --redis-prefix ${instance_id} --mmax-workload --allow-time-sharing
sched_command: ${batsim_dir}/schedulers/pybatsim/launcher.py ${pybatsim_algo[algo_name]} --redis-prefix ${instance_id}
batsim_command: batsim -p ${platform[filename]} -w ${workload[filename]} -e ${output_directory}/out --mmax-workload --allow-time-sharing
sched_command: ${batsim_dir}/schedulers/pybatsim/launcher.py ${pybatsim_algo[algo_name]}
commands_before_instances:
- ${batsim_dir}/test/is_batsim_dir.py ${base_working_directory}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment