ServerGroupProps
Properties for defining a ServerGroup.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-gwlb-servergroup
Initializer
import { ServerGroupProps } from '@alicloud/ros-cdk-gwlb'
const serverGroupProps: ServerGroupProps = { ... }
Properties
| Name | Type | Description |
|---|---|---|
vpcId | string | @alicloud/ros-cdk-core.IResolvable | Property vpcId: The VPC instance ID. |
connectionDrainConfig | @alicloud/ros-cdk-core.IResolvable | ConnectionDrainConfigProperty | Property connectionDrainConfig: Connected graceful interrupt configuration. |
healthCheckConfig | @alicloud/ros-cdk-core.IResolvable | HealthCheckConfigProperty | Property healthCheckConfig: Health check configurations. |
protocol | string | @alicloud/ros-cdk-core.IResolvable | Property protocol: Backend Protocol. |
resourceGroupId | string | @alicloud/ros-cdk-core.IResolvable | Property resourceGroupId: The ID of the resource group. |
scheduler | string | @alicloud/ros-cdk-core.IResolvable | Property scheduler: Scheduling algorithm. |
serverGroupName | string | @alicloud/ros-cdk-core.IResolvable | Property serverGroupName: The server group name. |
serverGroupType | string | @alicloud/ros-cdk-core.IResolvable | Property serverGroupType: The server group type. |
servers | @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ServersProperty[] | Property servers: List of servers. |
tags | TagsProperty[] | Property tags: Tags of server group. |
vpcIdRequired
public readonly vpcId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property vpcId: The VPC instance ID.
If the value of ServerGroupType is Instance, only servers in the VPC can be added to the server group.
connectionDrainConfigOptional
public readonly connectionDrainConfig: IResolvable | ConnectionDrainConfigProperty;
- Type: @alicloud/ros-cdk-core.IResolvable | ConnectionDrainConfigProperty
Property connectionDrainConfig: Connected graceful interrupt configuration.
healthCheckConfigOptional
public readonly healthCheckConfig: IResolvable | HealthCheckConfigProperty;
- Type: @alicloud/ros-cdk-core.IResolvable | HealthCheckConfigProperty
Property healthCheckConfig: Health check configurations.
protocolOptional
public readonly protocol: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property protocol: Backend Protocol.
Value: GENEVE (default).
resourceGroupIdOptional
public readonly resourceGroupId: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property resourceGroupId: The ID of the resource group.
schedulerOptional
public readonly scheduler: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property scheduler: Scheduling algorithm.
Value: - 5TCH (default): quintuple hash, which is based on the consistent hash of the quintuple (source IP, Destination IP, source port, destination port, and protocol). The same flow is scheduled to the same backend server. - 3TCH: a three-tuple hash, which is based on the consistent hash of three tuples (source IP address, destination IP address, and protocol). The same flow is dispatched to the same backend server. - 2TCH: Binary Group hash, which is based on the consistent hash of the binary group (source IP and destination IP). The same flow is scheduled to the same backend server.
serverGroupNameOptional
public readonly serverGroupName: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property serverGroupName: The server group name.
It must be 2 to 128 characters in length, start with an uppercase letter or a Chinese character, and can contain digits, half-width periods (.), underscores (_), and dashes (-).
serverGroupTypeOptional
public readonly serverGroupType: string | IResolvable;
- Type: string | @alicloud/ros-cdk-core.IResolvable
Property serverGroupType: The server group type.
Value: - Instance (default): The instance type. You can add Ecs, Eni, and Eci instances to the server group. - Ip: The Ip address type. You can directly add backend servers of the Ip address type to the server group.
serversOptional
public readonly servers: IResolvable | IResolvable | ServersProperty[];
- Type: @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | ServersProperty[]
Property servers: List of servers.
tagsOptional
public readonly tags: TagsProperty[];
- Type: TagsProperty[]
Property tags: Tags of server group.