Commit 42d094ee authored by S. Lackner's avatar S. Lackner

[tools] Improvements on experiment launcher

- allow forwarding of options as parameters to Batsim
- specification of config file in the experiment settings
- specification of complex command (like docker) for batsim executable
- make killing of batsim/scheduler processes more robust
parent dea3c176
......@@ -207,7 +207,7 @@ class Scheduler(metaclass=ABCMeta):
def __init__(self, options={}):
self._options = options
debug = self.options.get("debug", False)
export_prefix = self.options.get("export_prefix", "out")
export_prefix = self.options.get("export-prefix", "out")
# Create the logger
self._logger = Logger(self, debug=debug)
......
This diff is collapsed.
{
"batsim_bin": "batsim",
"_comment": "Should be set to the batsim executable, e.g. to a script which executes: 'docker run batsim \"$@\"'",
"platform":"../../platforms/energy_platform_homogeneous_no_net_512.xml",
"workload":"../../workload_profiles/test_bf.json",
"_comment": "Should be set to the Platform and workload files",
"output_dir":"SELF",
"output-dir":"SELF",
"_comment": "where all output files (stdins, stderrs, csvs...) will be output. If set to 'SELF' then output on the same dir as this option file.",
"export":"out",
"_comment": "The export filename prefix used to generate simulation output",
"batsim": {
"export":"out",
"_comment": "The export filename prefix used to generate simulation output",
"energy-plugin": false,
"_comment": "Enables energy-aware experiments",
"executable": {
"path": "docker",
"args": ["run", "batsim"],
"_comment": "Should be set to the batsim executable"
},
"platform":"../../platforms/energy_platform_homogeneous_no_net_512.xml",
"workload":"../../workload_profiles/test_bf.json",
"_comment": "Should be set to the Platform and workload files",
"energy": false,
"_comment": "Disables energy-aware experiments",
"disable-schedule-tracing": true,
"_comment": "remove paje output",
"verbosity": "information",
"_comment": "Sets the Batsim verbosity level. Available values are : quiet, network-only, information (default), debug."
},
"_comment": "Sets the Batsim verbosity level. Available values are : quiet, network-only, information (default), debug.",
"config": {
"redis": {
"enabled": false,
"hostname": "127.0.0.1",
"port": 6379,
"prefix": "default"
},
"job_submission": {
"forward_profiles": true,
"from_scheduler": {
"enabled": false,
"acknowledge": true
}
}
}
},
"scheduler":{
"name":"fillerSched",
"_comment": "The name of a standard scheduler or the path to a python module containing a scheduler",
"verbosity":10,
"protection":true
"verbose": true,
"protection": true
}
}
{
"redis": {
"enabled": false,
"hostname": "127.0.0.1",
"port": 6379,
"prefix": "default"
},
"job_submission": {
"forward_profiles": true,
"from_scheduler": {
"enabled": true,
"acknowledge": true
}
}
}
This diff is collapsed.
#!/bin/bash
docker run batsim:dev "$@"
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