Skip to main content

Constants for the fields of the /alter/resourcegroup request.

Option fields

options

Constants for options.

pub const FALSE: &str = “false”;
pub const IS_DEFAULT_GROUP: &str = “is_default_group”;

If true, this request applies to the global default resource group. It is an error for this field to be true when the name field is also populated.

pub const MAX_CPU_CONCURRENCY: &str = “max_cpu_concurrency”;

Maximum number of simultaneous threads that will be used to execute a request, per rank, for this group.

pub const MAX_DATA: &str = “max_data”;

Maximum amount of data, per rank, in bytes, that can be used by all database objects within this group. Set to -1 to indicate no upper limit.

pub const MAX_SCHEDULING_PRIORITY: &str = “max_scheduling_priority”;

Maximum priority of a scheduled task for this group.

pub const MAX_TIER_PRIORITY: &str = “max_tier_priority”;

Maximum priority of a tiered object for this group.

pub const PERSIST: &str = “persist”;

If true and a system-level change was requested, the system configuration will be written to disk upon successful application of this request. This will commit the changes from this request and any additional in-memory modifications.

pub const TRUE: &str = “true”;

ranking

Constants for ranking.

pub const AFTER: &str = “after”;

Place this resource group after the one specified by adjoining_resource_group in the ordering.

pub const BEFORE: &str = “before”;

Place this resource group before the one specified by adjoining_resource_group in the ordering.

pub const EMPTY_STRING: &str = "";

Don’t change the ranking.

pub const FIRST: &str = “first”;

Make this resource group the new first one in the ordering.

pub const LAST: &str = “last”;

Make this resource group the new last one in the ordering.

tier_attributes

Constants for tier_attributes.

pub const MAX_MEMORY: &str = “max_memory”;

Maximum amount of memory usable at one time, per rank, per GPU, for the VRAM tier; or maximum amount of memory usable at one time, per rank, for the RAM tier.