Skip to content

ServerGroupProps

Properties for defining a ServerGroup.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-gwlb-servergroup

Initializer

import com.aliyun.ros.cdk.gwlb.ServerGroupProps;
ServerGroupProps.builder()
    .vpcId(java.lang.String)
    .vpcId(IResolvable)
//  .connectionDrainConfig(IResolvable)
//  .connectionDrainConfig(ConnectionDrainConfigProperty)
//  .healthCheckConfig(IResolvable)
//  .healthCheckConfig(HealthCheckConfigProperty)
//  .protocol(java.lang.String)
//  .protocol(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .scheduler(java.lang.String)
//  .scheduler(IResolvable)
//  .serverGroupName(java.lang.String)
//  .serverGroupName(IResolvable)
//  .serverGroupType(java.lang.String)
//  .serverGroupType(IResolvable)
//  .servers(IResolvable)
//  .servers(java.util.List<IResolvable)
//  .servers(ServersProperty>)
//  .tags(java.util.List<TagsProperty>)
    .build();

Properties

Name Type Description
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: The VPC instance ID.
connectionDrainConfig com.aliyun.ros.cdk.core.IResolvable OR ConnectionDrainConfigProperty Property connectionDrainConfig: Connected graceful interrupt configuration.
healthCheckConfig com.aliyun.ros.cdk.core.IResolvable OR HealthCheckConfigProperty Property healthCheckConfig: Health check configurations.
protocol java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property protocol: Backend Protocol.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: The ID of the resource group.
scheduler java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property scheduler: Scheduling algorithm.
serverGroupName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property serverGroupName: The server group name.
serverGroupType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property serverGroupType: The server group type.
servers com.aliyun.ros.cdk.core.IResolvable OR java.util.ListServersProperty> Property servers: List of servers.
tags java.util.List<TagsProperty> Property tags: Tags of server group.

vpcIdRequired

public java.lang.Object getVpcId();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getConnectionDrainConfig();

Property connectionDrainConfig: Connected graceful interrupt configuration.


healthCheckConfigOptional

public java.lang.Object getHealthCheckConfig();

Property healthCheckConfig: Health check configurations.


protocolOptional

public java.lang.Object getProtocol();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property protocol: Backend Protocol.

Value: GENEVE (default).


resourceGroupIdOptional

public java.lang.Object getResourceGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property resourceGroupId: The ID of the resource group.


schedulerOptional

public java.lang.Object getScheduler();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getServerGroupName();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getServerGroupType();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getServers();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListServersProperty>

Property servers: List of servers.


tagsOptional

public java.util.List<TagsProperty> getTags();

Property tags: Tags of server group.