hooks#

canary_addoption(parser: Parser) None#
fill_default_node_local_pool(config: CanaryConfig) dict[str, Any]#

Initialize the default single-node resource pool

fill_pool_from_file(config: CanaryConfig) dict[str, Any] | None#
finalize_resource_pool(config: CanaryConfig, pool: ResourcePool) None#

Apply command-line resource-pool modifiers.

Semantics:

  • -r nodes=N sets the number of topology nodes.

  • -r TYPE=N sets N instances of TYPE on each node.

  • -r slots_per_TYPE=N multiplies slots on each resource instance of TYPE by N.

  • --oversubscribe TYPE=N is equivalent to slots_per_TYPE=N.

resource_t(arg: str) dict[str, int]#
class update_action(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)#

Bases: Action