Updated on 2023-12-13 GMT+08:00

ULB.Pool

Element Description

For ECS groups under a shared load balancer, one listener corresponds to multiple ECS groups. You can add or delete ECS groups as required. An ECS group consists of multiple ECSs.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

sessionPersistence

No

Session persistence setting

Type: ULB.StickySession

Value Description: If this option is selected, the session persistence function is enabled by default.

Default: {u'type': u'SOURCE_IP'}

Suggestion: Set the value based on specifications and requirements.

protocol

Yes

ECS group protocol

Type: string

Value Description: Supports HTTP and TCP.

Value Constraint: The value can be HTTP or TCP. The value must be consistent with the listener protocol.

Suggestion: Set the value based on specifications and requirements.

name

No

ECS group name

Type: string

Value Description: Supports customization.

Value Constraint: The value supports a maximum of 64 characters and can only contain digits, letters, underscores (_), and hyphens (-).

Suggestion: Customize the value.

lbAlgorithm

Yes

Allocation policy type

Type: string

Value Description: ROUND_ROBIN: indicates the weighted round robin algorithm. LEAST_CONNECTIONS: indicates the weighted least connection. SOURCE_IP: indicates the source IP algorithm.

Default: ROUND_ROBIN

Value Constraint: Supports "ROUND_ROBIN","LEAST_CONNECTIONS","SOURCE_IP"

Suggestion: Set the value based on specifications and requirements.

listenerId

Yes

ID of the belonged listener

Type: string

Value Description: Indicates the ID generated after a ULB instance is created, for example, 8abbd7a9-c1f8-440d-96ff-376ee7382082.

Value Constraint: The ID must be the listener ID of an existing ULB instance.

Suggestion: You are advised to drag the object to the ULB.Listener and use the get_reference function to automatically generate the value. Alternatively, query the ULB listener ID on the ULB page and enter it accordingly.

Relationships Between Elements

Table 2 Relationship description

Description

Target

ContainedIn

ULB.Listener

Return Value

Property

Type

Description

refID

string

ECS group instance ID

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0 
 inputs: 
   pool_protocol: 
     description: ECS group protocol, which must be consistent with the listener protocol 
   pool_listenerId: 
     description: Belonged listener ID 
   pool_lbAlgorithm: 
     description: Allocation policy type 
 node_templates: 
   pool: 
     type: HuaweiCloud.ULB.Pool 
     properties: 
       protocol: 
         get_input: pool_protocol 
       listenerId: 
         get_input: pool_listenerId 
       lbAlgorithm: 
         get_input: pool_lbAlgorithm