ServerGroupProps
Properties for defining a ServerGroup.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-gwlb-servergroup
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkgwlb"
&alicloudroscdkgwlb.ServerGroupProps {
VpcId: interface{},
ConnectionDrainConfig: interface{},
HealthCheckConfig: interface{},
Protocol: interface{},
ResourceGroupId: interface{},
Scheduler: interface{},
ServerGroupName: interface{},
ServerGroupType: interface{},
Servers: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkgwlb.RosServerGroup.TagsProperty,
}
Properties
| Name | Type | Description |
|---|---|---|
VpcId | interface{} | Property vpcId: The VPC instance ID. |
ConnectionDrainConfig | interface{} | Property connectionDrainConfig: Connected graceful interrupt configuration. |
HealthCheckConfig | interface{} | Property healthCheckConfig: Health check configurations. |
Protocol | interface{} | Property protocol: Backend Protocol. |
ResourceGroupId | interface{} | Property resourceGroupId: The ID of the resource group. |
Scheduler | interface{} | Property scheduler: Scheduling algorithm. |
ServerGroupName | interface{} | Property serverGroupName: The server group name. |
ServerGroupType | interface{} | Property serverGroupType: The server group type. |
Servers | interface{} | Property servers: List of servers. |
Tags | *[]TagsProperty | Property tags: Tags of server group. |
VpcIdRequired
VpcId interface{}
- Type: interface{}
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
ConnectionDrainConfig interface{}
- Type: interface{}
Property connectionDrainConfig: Connected graceful interrupt configuration.
HealthCheckConfigOptional
HealthCheckConfig interface{}
- Type: interface{}
Property healthCheckConfig: Health check configurations.
ProtocolOptional
Protocol interface{}
- Type: interface{}
Property protocol: Backend Protocol.
Value: GENEVE (default).
ResourceGroupIdOptional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: The ID of the resource group.
SchedulerOptional
Scheduler interface{}
- Type: interface{}
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
ServerGroupName interface{}
- Type: interface{}
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
ServerGroupType interface{}
- Type: interface{}
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
Servers interface{}
- Type: interface{}
Property servers: List of servers.
TagsOptional
Tags *[]TagsProperty
- Type: *[]TagsProperty
Property tags: Tags of server group.