ALIYUN::POLARDB::DBClusterEndpoint is used to create a custom endpoint for a PolarDB cluster.
Syntax
{
"Type": "ALIYUN::POLARDB::DBClusterEndpoint",
"Properties": {
"DBClusterId": String,
"ReadWriteMode": String,
"EndpointType": String,
"AutoAddNewNodes": String,
"Nodes": List,
"EndpointConfig": Map
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
DBClusterId | String | Yes | No | The ID of the cluster. | None. |
ReadWriteMode | String | No | Yes | The read/write mode. | Valid values:
|
EndpointType | String | No | No | The type of the cluster endpoint. | Set the value to Custom. |
AutoAddNewNodes | String | No | Yes | Specifies whether to automatically associate newly added nodes with the cluster endpoint. | Valid values:
|
Nodes | List | No | Yes | The nodes used to process read requests. | Example: At least two nodes must be specified for this property. If you do not specify this property, all nodes in the cluster are used to process read requests sent to the endpoint. |
EndpointConfig | Map | No | Yes | The advanced configurations of the cluster endpoint. | For more information, see EndpointConfig properties. |
EndpointConfig syntax
"EndpointConfig": {
"ConsistLevel": String,
"ConsistTimeout": String,
"LoadBalancePolicy": String,
"ConnectionPersist": String,
"DistributedTransaction": String,
"EnableOverloadThrottle": String,
"MasterAcceptReads": String,
"ConsistTimeoutAction": String,
"EnableHtapImci": String,
"MaxParallelDegree": String
}
EndpointConfig properties
Property | Type | Required | Editable | Description | Constraint |
ConsistLevel | String | No | Yes | The consistency level. | Valid values:
|
ConsistTimeout | String | No | Yes | The global consistency read timeout. | None. |
LoadBalancePolicy | String | No | Yes | The load balancing policy. | Format: {"LoadBalancePolicy":"Value"}. Valid values:
|
ConnectionPersist | String | No | Yes | Specifies whether to enable the connection pool. | Format: {"ConnectionPersist":"Value"}. Valid values:
|
DistributedTransaction | String | No | Yes | Specifies whether to enable transaction splitting. | Format: {"DistributedTransaction":"Value"}. Valid values:
|
EnableOverloadThrottle | String | No | Yes | Specifies whether to enable overload protection. | Format: {"EnableOverloadThrottle":"Value"}. Valid values:
|
MasterAcceptReads | String | No | Yes | Specifies whether the primary node accepts reads. | Format: {"MasterAcceptReads":"off"}. Valid values:
|
ConsistTimeoutAction | String | No | Yes | The global consistency timeout policy. | Valid values:
|
EnableHtapImci | String | No | Yes | Specifies whether to enable automatic request distribution between row store and column store nodes. | Format: {"EnableHtapImci":"Value"}. Valid values:
|
MaxParallelDegree | String | No | Yes | Specifies whether to enable parallel query. | Format: {"MaxParallelDegree":"Value"}. Valid values:
|
Return values
Fn::GetAtt
DBEndpointId: the ID of the cluster endpoint.
ConnectionString: the connection string of the cluster.
Addresses: the IP addresses.