Updated on 2022-02-22 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

Mandatory

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 the live environment.

protocol

Yes

ECS group protocol

Type: string

Value Description: The options are HTTP and TCP.

Value Constraint: The value must be consistent with the listener protocol.

Suggestion: Set the value based on the live environment.

name

No

ECS group name

Type: string

Value Description: Customize the value.

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: The options are ROUND_ROBIN, LEAST_CONNECTIONS, and SOURCE_IP.

Suggestion: Set the value based on the live environment.

listenerId

Yes

ID of the belonged listener

Type: string

Value Description: 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, obtain the ULB listener ID on the ULB console and enter it accordingly.

Relationships Between Elements

Table 2 Relationship description

Description

Target

Inclusion

ULB.Listener

Return Value

Property

Type

Description

refID

string

ECS group instance ID

Blueprint Example

tosca_definitions_version: cloud_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: Cloud.ULB.Pool
    properties:
      protocol:
        get_input: pool_protocol
      listenerId:
        get_input: pool_listenerId
      lbAlgorithm:
        get_input: pool_lbAlgorithm