mlos_bench.services.types.remote_config_type module

Protocol interface for configuring cloud services.

class mlos_bench.services.types.remote_config_type.SupportsRemoteConfig(*args, **kwargs)

Bases: Protocol

Protocol interface for configuring cloud services.

Methods

configure(config, params)

Update the parameters of a SaaS service in the cloud.

is_config_pending(config)

Check if the configuration of a service requires reboot or restart.

configure(config: Dict[str, Any], params: Dict[str, Any]) Tuple[Status, dict]

Update the parameters of a SaaS service in the cloud.

Parameters:
configDict[str, Any]

Key/value pairs of configuration parameters (e.g., vmName).

paramsDict[str, Any]

Key/value pairs of the service parameters to update.

Returns:
result(Status, dict={})

A pair of Status and result. The result is always {}. Status is one of {PENDING, SUCCEEDED, FAILED}

is_config_pending(config: Dict[str, Any]) Tuple[Status, dict]

Check if the configuration of a service requires reboot or restart.

Parameters:
configDict[str, Any]

Key/value pairs of configuration parameters (e.g., vmName).

Returns:
result(Status, dict)

A pair of Status and result. A Boolean field “isConfigPendingRestart” indicates whether the service restart is required. If “isConfigPendingReboot” is set to True, rebooting a VM is necessary. Status is one of {PENDING, TIMED_OUT, SUCCEEDED, FAILED}