Skip to main content

kx_scaling_groups

Creates, updates, deletes, gets or lists a kx_scaling_groups resource.

Overview

Namekx_scaling_groups
TypeResource
Idaws.finspace.kx_scaling_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
availability_zone_idstringThe identifier of the availability zones. (pattern: <code>^[a-zA-Z0-9-]+$</code>)
clustersarrayThe list of Managed kdb clusters that are currently active in the given scaling group.
created_timestampstring (date-time)The timestamp at which the scaling group was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
host_typestringThe memory and CPU capabilities of the scaling group host on which FinSpace Managed kdb clusters will be placed. It can have one of the following values: kx.sg.large – The host type with a configuration of 16 GiB memory and 2 vCPUs. kx.sg.xlarge – The host type with a configuration of 32 GiB memory and 4 vCPUs. kx.sg.2xlarge – The host type with a configuration of 64 GiB memory and 8 vCPUs. kx.sg.4xlarge – The host type with a configuration of 108 GiB memory and 16 vCPUs. kx.sg.8xlarge – The host type with a configuration of 216 GiB memory and 32 vCPUs. kx.sg.16xlarge – The host type with a configuration of 432 GiB memory and 64 vCPUs. kx.sg.32xlarge – The host type with a configuration of 864 GiB memory and 128 vCPUs. kx.sg1.16xlarge – The host type with a configuration of 1949 GiB memory and 64 vCPUs. kx.sg1.24xlarge – The host type with a configuration of 2948 GiB memory and 96 vCPUs. (pattern: <code>^[a-zA-Z0-9._]+</code>)
last_modified_timestampstring (date-time)The last time that the scaling group was updated in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
scaling_group_arnstringThe ARN identifier for the scaling group. (pattern: <code>^arn:::::*</code>)
scaling_group_namestringA unique identifier for the kdb scaling group. (pattern: <code>^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$</code>)
statusstringThe status of scaling group. CREATING – The scaling group creation is in progress. CREATE_FAILED – The scaling group creation has failed. ACTIVE – The scaling group is active. UPDATING – The scaling group is in the process of being updated. UPDATE_FAILED – The update action failed. DELETING – The scaling group is in the process of being deleted. DELETE_FAILED – The system failed to delete the scaling group. DELETED – The scaling group is successfully deleted. (CREATING, CREATE_FAILED, ACTIVE, DELETING, DELETED, DELETE_FAILED)
status_reasonstringThe error message when a failed state occurs. (pattern: <code>^[a-zA-Z0-9_-.\s]+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_kx_scaling_groupselectenvironment_id, scaling_group_name, regionRetrieves details of a scaling group.
list_kx_scaling_groupsselectenvironment_id, regionmaxResults, nextTokenReturns a list of scaling groups in a kdb environment.
create_kx_scaling_groupinsertenvironment_id, region, clientToken, scalingGroupName, hostType, availabilityZoneIdCreates a new scaling group.
delete_kx_scaling_groupdeleteenvironment_id, scaling_group_name, regionclientTokenDeletes the specified scaling group. This action is irreversible. You cannot delete a scaling group until all the clusters running on it have been deleted.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
environment_idstringA unique identifier for the kdb environment, from where you want to delete the dataview.
regionstringAWS region (default: us-east-1)
scaling_group_namestringA unique identifier for the kdb scaling group.
clientTokenstringA token that ensures idempotency. This token expires in 10 minutes.
maxResultsintegerThe maximum number of results to return in this request.
nextTokenstringA token that indicates where a results page should begin.

SELECT examples

Retrieves details of a scaling group.

SELECT
availability_zone_id,
clusters,
created_timestamp,
host_type,
last_modified_timestamp,
scaling_group_arn,
scaling_group_name,
status,
status_reason
FROM aws.finspace.kx_scaling_groups
WHERE environment_id = '{{ environment_id }}' -- required
AND scaling_group_name = '{{ scaling_group_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new scaling group.

INSERT INTO aws.finspace.kx_scaling_groups (
clientToken,
scalingGroupName,
hostType,
availabilityZoneId,
tags,
environment_id,
region
)
SELECT
'{{ clientToken }}' /* required */,
'{{ scalingGroupName }}' /* required */,
'{{ hostType }}' /* required */,
'{{ availabilityZoneId }}' /* required */,
'{{ tags }}',
'{{ environment_id }}',
'{{ region }}'
RETURNING
availability_zone_id,
created_timestamp,
environment_id,
host_type,
last_modified_timestamp,
scaling_group_name,
status
;

DELETE examples

Deletes the specified scaling group. This action is irreversible. You cannot delete a scaling group until all the clusters running on it have been deleted.

DELETE FROM aws.finspace.kx_scaling_groups
WHERE environment_id = '{{ environment_id }}' --required
AND scaling_group_name = '{{ scaling_group_name }}' --required
AND region = '{{ region }}' --required
AND clientToken = '{{ clientToken }}'
;