The ALIYUN::POLARDB::DBClusterEndpoint type creates a custom cluster endpoint for PolarDB.
Syntax
{
"Type": "ALIYUN::POLARDB::DBClusterEndpoint",
"Properties": {
"DBClusterId": String,
"ReadWriteMode": String,
"EndpointType": String,
"AutoAddNewNodes": String,
"Nodes": List,
"EndpointConfig": Map
}
}Properties
Property Name | Type | Required | Update allowed | Description | Constraints |
DBClusterId | String | Yes | No | The cluster ID. | None |
ReadWriteMode | String | No | Yes | The read/write mode. | Valid values:
|
EndpointType | String | No | No | The type of the custom cluster endpoint. | Valid value: Custom. |
AutoAddNewNodes | String | No | Yes | Specifies whether to automatically add new nodes to the custom cluster endpoint. | Valid values:
|
Nodes | List | No | Yes | The nodes that process read requests. | Example: The value must contain at least two nodes. The default value is all nodes. |
EndpointConfig | Map | No | Yes | Consistency level | 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 Name | Type | Required | Update allowed | Description | Constraints |
ConsistLevel | String | No | Yes | The consistency level. | Valid values:
|
ConsistTimeout | String | No | Yes | The timeout for global consistency read. | None |
LoadBalancePolicy | String | No | Yes | You can set the load balancing policy. | Format: {"LoadBalancePolicy":"load balancing policy"}. Valid values:
|
ConnectionPersist | String | No | Yes | You can set the connection pool. | Format: {"ConsistLevel":"connection pool"}. Valid values:
|
DistributedTransaction | String | No | Yes | The transaction splitting setting. | Format: {"DistributedTransaction":"transaction splitting"}. Valid values:
|
EnableOverloadThrottle | String | No | Yes | Specifies whether to enable overload protection. | The format is {"EnableOverloadThrottle":"Whether to enable overload protection"}. Valid values:
|
MasterAcceptReads | String | No | Yes | Specifies whether the primary node accepts read requests. | Format: {"MasterAcceptReads":"master read acceptance"}. Valid values:
|
ConsistTimeoutAction | String | No | Yes | The policy for handling global consistency read timeouts. | Valid values:
|
EnableHtapImci | String | No | Yes | Specifies whether to enable automatic traffic steering between the row store and column store. | Format: {"EnableHtapImci":"row/column store traffic steering"}. Valid values:
|
MaxParallelDegree | String | No | Yes | You can configure a parallel query. | Format: {"MaxParallelDegree":"parallel query"}. Valid values:
|
Return values
Fn::GetAtt
DBEndpointId: The ID of the cluster endpoint.
ConnectionString: The connection string.
Addresses: The IP addresses.