Advanced Usage

Running the resource manager

To run the resource manager, it first needs to be composed using the provided modules. The examples directory provides some ready to use scripts. A description of the basic steps is provided below: * Create a Resource Manager instance:

resource_manager = MCAResourceManagerModule()
  • Add a system module, for some topology description using a TopologyGraphCreation module:

resource_manager.run_service("ADD", "SYSTEM", "my_system", PrrteSystem, DefaultTopologyGraphCreationModule, topology_file)
  • Add a policy module:

resource_manager.run_service("ADD", "POLICY", "my_policy", EasyBackfilling)
  • Submit a job representation to be run on the registered systen using a particular submission module:

resource_manager.run_service("SUBMIT", "OBJECT", "my_system", DefaultSubmissionModule, submission_file)