Scaling Group Functions

class ai.backend.client.scaling_group.ScalingGroup(name)[소스]

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)[소스]

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)[소스]

List available scaling groups for the current user, considering the user, the user's domain, and the designated user group.

반환 형식

Sequence[dict]

classmethod await detail(name, fields=None)[소스]

Fetch information of a scaling group by name.

매개변수
  • name (str) -- Name of the scaling group.

  • fields (Optional[Iterable[str]]) -- Additional per-scaling-group query fields.

반환 형식

Sequence[dict]

classmethod await create(name, description='', is_active=True, driver=None, driver_opts=None, scheduler=None, scheduler_opts=None, fields=None)[소스]

Creates a new scaling group with the given options.

반환 형식

dict

classmethod await update(name, description='', is_active=True, driver=None, driver_opts=None, scheduler=None, scheduler_opts=None, fields=None)[소스]

Update existing scaling group.

반환 형식

dict

classmethod await delete(name)[소스]

Deletes an existing scaling group.

classmethod await associate_domain(scaling_group, domain)[소스]

Associate scaling_group with domain.

매개변수
  • scaling_group (str) -- The name of a scaling group.

  • domain (str) -- The name of a domain.

classmethod await dissociate_domain(scaling_group, domain)[소스]

Dissociate scaling_group from domain.

매개변수
  • scaling_group (str) -- The name of a scaling group.

  • domain (str) -- The name of a domain.

classmethod await dissociate_all_domain(domain)[소스]

Dissociate all scaling_groups from domain.

매개변수

domain (str) -- The name of a domain.

classmethod await associate_group(scaling_group, group_id)[소스]

Associate scaling_group with group.

매개변수
  • scaling_group (str) -- The name of a scaling group.

  • group_id (str) -- The ID of a group.

classmethod await dissociate_group(scaling_group, group_id)[소스]

Dissociate scaling_group from group.

매개변수
  • scaling_group (str) -- The name of a scaling group.

  • group_id (str) -- The ID of a group.

classmethod await dissociate_all_group(group_id)[소스]

Dissociate all scaling_groups from group.

매개변수

group_id (str) -- The ID of a group.