Scaling Group Functions¶
-
class
ai.backend.client.scaling_group.
ScalingGroup
(name)[source]¶ Provides getting scaling-group information required for the current user.
The scaling-group is an opaque server-side configuration which splits the whole cluster into several partitions, so that server administrators can apply different auto-scaling policies and operation standards to each partition of agent sets.
-
session
= None¶ The client session instance that this function class is bound to.
-
classmethod await
list_available
(group)[source]¶ List available scaling groups for the current user, considering the user, the user’s domain, and the designated user group.
-
classmethod await
list
(fields=None)[source]¶ List available scaling groups for the current user, considering the user, the user’s domain, and the designated user group.
-
classmethod await
create
(name, description='', is_active=True, driver=None, driver_opts=None, scheduler=None, scheduler_opts=None, fields=None)[source]¶ Creates a new scaling group with the given options.
- Return type
-
classmethod await
update
(name, description='', is_active=True, driver=None, driver_opts=None, scheduler=None, scheduler_opts=None, fields=None)[source]¶ Update existing scaling group.
- Return type
-
classmethod await
associate_domain
(scaling_group, domain)[source]¶ Associate scaling_group with domain.
-
classmethod await
dissociate_domain
(scaling_group, domain)[source]¶ Dissociate scaling_group from domain.
-
classmethod await
dissociate_all_domain
(domain)[source]¶ Dissociate all scaling_groups from domain.
- Parameters
domain (
str
) – The name of a domain.
-
classmethod await
associate_group
(scaling_group, group_id)[source]¶ Associate scaling_group with group.
-