1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. MysqlRoGroup
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.MysqlRoGroup

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a mysql ro_group

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.MysqlRoGroup("example", {
        instanceId: "cdb-e8i766hx",
        isBalanceRoLoad: 1,
        roGroupId: "cdbrg-f49t0gnj",
        roGroupInfo: {
            minRoInGroup: 1,
            replicationDelayTime: 1,
            roGroupName: "keep-ro",
            roMaxDelayTime: 1,
            roOfflineDelay: 1,
            weightMode: "custom",
        },
        roWeightValues: [{
            instanceId: "cdbro-f49t0gnj",
            weight: 10,
        }],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.MysqlRoGroup("example",
        instance_id="cdb-e8i766hx",
        is_balance_ro_load=1,
        ro_group_id="cdbrg-f49t0gnj",
        ro_group_info={
            "min_ro_in_group": 1,
            "replication_delay_time": 1,
            "ro_group_name": "keep-ro",
            "ro_max_delay_time": 1,
            "ro_offline_delay": 1,
            "weight_mode": "custom",
        },
        ro_weight_values=[{
            "instance_id": "cdbro-f49t0gnj",
            "weight": 10,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewMysqlRoGroup(ctx, "example", &tencentcloud.MysqlRoGroupArgs{
    			InstanceId:      pulumi.String("cdb-e8i766hx"),
    			IsBalanceRoLoad: pulumi.Float64(1),
    			RoGroupId:       pulumi.String("cdbrg-f49t0gnj"),
    			RoGroupInfo: &tencentcloud.MysqlRoGroupRoGroupInfoArgs{
    				MinRoInGroup:         pulumi.Float64(1),
    				ReplicationDelayTime: pulumi.Float64(1),
    				RoGroupName:          pulumi.String("keep-ro"),
    				RoMaxDelayTime:       pulumi.Float64(1),
    				RoOfflineDelay:       pulumi.Float64(1),
    				WeightMode:           pulumi.String("custom"),
    			},
    			RoWeightValues: tencentcloud.MysqlRoGroupRoWeightValueArray{
    				&tencentcloud.MysqlRoGroupRoWeightValueArgs{
    					InstanceId: pulumi.String("cdbro-f49t0gnj"),
    					Weight:     pulumi.Float64(10),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.MysqlRoGroup("example", new()
        {
            InstanceId = "cdb-e8i766hx",
            IsBalanceRoLoad = 1,
            RoGroupId = "cdbrg-f49t0gnj",
            RoGroupInfo = new Tencentcloud.Inputs.MysqlRoGroupRoGroupInfoArgs
            {
                MinRoInGroup = 1,
                ReplicationDelayTime = 1,
                RoGroupName = "keep-ro",
                RoMaxDelayTime = 1,
                RoOfflineDelay = 1,
                WeightMode = "custom",
            },
            RoWeightValues = new[]
            {
                new Tencentcloud.Inputs.MysqlRoGroupRoWeightValueArgs
                {
                    InstanceId = "cdbro-f49t0gnj",
                    Weight = 10,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.MysqlRoGroup;
    import com.pulumi.tencentcloud.MysqlRoGroupArgs;
    import com.pulumi.tencentcloud.inputs.MysqlRoGroupRoGroupInfoArgs;
    import com.pulumi.tencentcloud.inputs.MysqlRoGroupRoWeightValueArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new MysqlRoGroup("example", MysqlRoGroupArgs.builder()
                .instanceId("cdb-e8i766hx")
                .isBalanceRoLoad(1)
                .roGroupId("cdbrg-f49t0gnj")
                .roGroupInfo(MysqlRoGroupRoGroupInfoArgs.builder()
                    .minRoInGroup(1)
                    .replicationDelayTime(1)
                    .roGroupName("keep-ro")
                    .roMaxDelayTime(1)
                    .roOfflineDelay(1)
                    .weightMode("custom")
                    .build())
                .roWeightValues(MysqlRoGroupRoWeightValueArgs.builder()
                    .instanceId("cdbro-f49t0gnj")
                    .weight(10)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:MysqlRoGroup
        properties:
          instanceId: cdb-e8i766hx
          isBalanceRoLoad: 1
          roGroupId: cdbrg-f49t0gnj
          roGroupInfo:
            minRoInGroup: 1
            replicationDelayTime: 1
            roGroupName: keep-ro
            roMaxDelayTime: 1
            roOfflineDelay: 1
            weightMode: custom
          roWeightValues:
            - instanceId: cdbro-f49t0gnj
              weight: 10
    

    Create MysqlRoGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MysqlRoGroup(name: string, args: MysqlRoGroupArgs, opts?: CustomResourceOptions);
    @overload
    def MysqlRoGroup(resource_name: str,
                     args: MysqlRoGroupArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def MysqlRoGroup(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     instance_id: Optional[str] = None,
                     ro_group_id: Optional[str] = None,
                     is_balance_ro_load: Optional[float] = None,
                     mysql_ro_group_id: Optional[str] = None,
                     ro_group_info: Optional[MysqlRoGroupRoGroupInfoArgs] = None,
                     ro_weight_values: Optional[Sequence[MysqlRoGroupRoWeightValueArgs]] = None)
    func NewMysqlRoGroup(ctx *Context, name string, args MysqlRoGroupArgs, opts ...ResourceOption) (*MysqlRoGroup, error)
    public MysqlRoGroup(string name, MysqlRoGroupArgs args, CustomResourceOptions? opts = null)
    public MysqlRoGroup(String name, MysqlRoGroupArgs args)
    public MysqlRoGroup(String name, MysqlRoGroupArgs args, CustomResourceOptions options)
    
    type: tencentcloud:MysqlRoGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MysqlRoGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MysqlRoGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MysqlRoGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MysqlRoGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MysqlRoGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    MysqlRoGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MysqlRoGroup resource accepts the following input properties:

    InstanceId string
    Instance ID, in the format: cdbro-3i70uj0k.
    RoGroupId string
    The ID of the RO group.
    IsBalanceRoLoad double
    Whether to rebalance the load of RO instances in the RO group. Supported values include: 1 - rebalance load; 0 - do not rebalance load. The default value is 0. Note that when it is set to rebalance the load, the RO instance in the RO group will have a momentary disconnection of the database connection, please ensure that the application can reconnect to the database.
    MysqlRoGroupId string
    ID of the resource.
    RoGroupInfo MysqlRoGroupRoGroupInfo
    Details of the RO group.
    RoWeightValues List<MysqlRoGroupRoWeightValue>
    The weight of the instance within the RO group. If the weight mode of the RO group is changed to user-defined mode (custom), this parameter must be set, and the weight value of each RO instance needs to be set.
    InstanceId string
    Instance ID, in the format: cdbro-3i70uj0k.
    RoGroupId string
    The ID of the RO group.
    IsBalanceRoLoad float64
    Whether to rebalance the load of RO instances in the RO group. Supported values include: 1 - rebalance load; 0 - do not rebalance load. The default value is 0. Note that when it is set to rebalance the load, the RO instance in the RO group will have a momentary disconnection of the database connection, please ensure that the application can reconnect to the database.
    MysqlRoGroupId string
    ID of the resource.
    RoGroupInfo MysqlRoGroupRoGroupInfoArgs
    Details of the RO group.
    RoWeightValues []MysqlRoGroupRoWeightValueArgs
    The weight of the instance within the RO group. If the weight mode of the RO group is changed to user-defined mode (custom), this parameter must be set, and the weight value of each RO instance needs to be set.
    instanceId String
    Instance ID, in the format: cdbro-3i70uj0k.
    roGroupId String
    The ID of the RO group.
    isBalanceRoLoad Double
    Whether to rebalance the load of RO instances in the RO group. Supported values include: 1 - rebalance load; 0 - do not rebalance load. The default value is 0. Note that when it is set to rebalance the load, the RO instance in the RO group will have a momentary disconnection of the database connection, please ensure that the application can reconnect to the database.
    mysqlRoGroupId String
    ID of the resource.
    roGroupInfo MysqlRoGroupRoGroupInfo
    Details of the RO group.
    roWeightValues List<MysqlRoGroupRoWeightValue>
    The weight of the instance within the RO group. If the weight mode of the RO group is changed to user-defined mode (custom), this parameter must be set, and the weight value of each RO instance needs to be set.
    instanceId string
    Instance ID, in the format: cdbro-3i70uj0k.
    roGroupId string
    The ID of the RO group.
    isBalanceRoLoad number
    Whether to rebalance the load of RO instances in the RO group. Supported values include: 1 - rebalance load; 0 - do not rebalance load. The default value is 0. Note that when it is set to rebalance the load, the RO instance in the RO group will have a momentary disconnection of the database connection, please ensure that the application can reconnect to the database.
    mysqlRoGroupId string
    ID of the resource.
    roGroupInfo MysqlRoGroupRoGroupInfo
    Details of the RO group.
    roWeightValues MysqlRoGroupRoWeightValue[]
    The weight of the instance within the RO group. If the weight mode of the RO group is changed to user-defined mode (custom), this parameter must be set, and the weight value of each RO instance needs to be set.
    instance_id str
    Instance ID, in the format: cdbro-3i70uj0k.
    ro_group_id str
    The ID of the RO group.
    is_balance_ro_load float
    Whether to rebalance the load of RO instances in the RO group. Supported values include: 1 - rebalance load; 0 - do not rebalance load. The default value is 0. Note that when it is set to rebalance the load, the RO instance in the RO group will have a momentary disconnection of the database connection, please ensure that the application can reconnect to the database.
    mysql_ro_group_id str
    ID of the resource.
    ro_group_info MysqlRoGroupRoGroupInfoArgs
    Details of the RO group.
    ro_weight_values Sequence[MysqlRoGroupRoWeightValueArgs]
    The weight of the instance within the RO group. If the weight mode of the RO group is changed to user-defined mode (custom), this parameter must be set, and the weight value of each RO instance needs to be set.
    instanceId String
    Instance ID, in the format: cdbro-3i70uj0k.
    roGroupId String
    The ID of the RO group.
    isBalanceRoLoad Number
    Whether to rebalance the load of RO instances in the RO group. Supported values include: 1 - rebalance load; 0 - do not rebalance load. The default value is 0. Note that when it is set to rebalance the load, the RO instance in the RO group will have a momentary disconnection of the database connection, please ensure that the application can reconnect to the database.
    mysqlRoGroupId String
    ID of the resource.
    roGroupInfo Property Map
    Details of the RO group.
    roWeightValues List<Property Map>
    The weight of the instance within the RO group. If the weight mode of the RO group is changed to user-defined mode (custom), this parameter must be set, and the weight value of each RO instance needs to be set.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MysqlRoGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MysqlRoGroup Resource

    Get an existing MysqlRoGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MysqlRoGroupState, opts?: CustomResourceOptions): MysqlRoGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            instance_id: Optional[str] = None,
            is_balance_ro_load: Optional[float] = None,
            mysql_ro_group_id: Optional[str] = None,
            ro_group_id: Optional[str] = None,
            ro_group_info: Optional[MysqlRoGroupRoGroupInfoArgs] = None,
            ro_weight_values: Optional[Sequence[MysqlRoGroupRoWeightValueArgs]] = None) -> MysqlRoGroup
    func GetMysqlRoGroup(ctx *Context, name string, id IDInput, state *MysqlRoGroupState, opts ...ResourceOption) (*MysqlRoGroup, error)
    public static MysqlRoGroup Get(string name, Input<string> id, MysqlRoGroupState? state, CustomResourceOptions? opts = null)
    public static MysqlRoGroup get(String name, Output<String> id, MysqlRoGroupState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:MysqlRoGroup    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    InstanceId string
    Instance ID, in the format: cdbro-3i70uj0k.
    IsBalanceRoLoad double
    Whether to rebalance the load of RO instances in the RO group. Supported values include: 1 - rebalance load; 0 - do not rebalance load. The default value is 0. Note that when it is set to rebalance the load, the RO instance in the RO group will have a momentary disconnection of the database connection, please ensure that the application can reconnect to the database.
    MysqlRoGroupId string
    ID of the resource.
    RoGroupId string
    The ID of the RO group.
    RoGroupInfo MysqlRoGroupRoGroupInfo
    Details of the RO group.
    RoWeightValues List<MysqlRoGroupRoWeightValue>
    The weight of the instance within the RO group. If the weight mode of the RO group is changed to user-defined mode (custom), this parameter must be set, and the weight value of each RO instance needs to be set.
    InstanceId string
    Instance ID, in the format: cdbro-3i70uj0k.
    IsBalanceRoLoad float64
    Whether to rebalance the load of RO instances in the RO group. Supported values include: 1 - rebalance load; 0 - do not rebalance load. The default value is 0. Note that when it is set to rebalance the load, the RO instance in the RO group will have a momentary disconnection of the database connection, please ensure that the application can reconnect to the database.
    MysqlRoGroupId string
    ID of the resource.
    RoGroupId string
    The ID of the RO group.
    RoGroupInfo MysqlRoGroupRoGroupInfoArgs
    Details of the RO group.
    RoWeightValues []MysqlRoGroupRoWeightValueArgs
    The weight of the instance within the RO group. If the weight mode of the RO group is changed to user-defined mode (custom), this parameter must be set, and the weight value of each RO instance needs to be set.
    instanceId String
    Instance ID, in the format: cdbro-3i70uj0k.
    isBalanceRoLoad Double
    Whether to rebalance the load of RO instances in the RO group. Supported values include: 1 - rebalance load; 0 - do not rebalance load. The default value is 0. Note that when it is set to rebalance the load, the RO instance in the RO group will have a momentary disconnection of the database connection, please ensure that the application can reconnect to the database.
    mysqlRoGroupId String
    ID of the resource.
    roGroupId String
    The ID of the RO group.
    roGroupInfo MysqlRoGroupRoGroupInfo
    Details of the RO group.
    roWeightValues List<MysqlRoGroupRoWeightValue>
    The weight of the instance within the RO group. If the weight mode of the RO group is changed to user-defined mode (custom), this parameter must be set, and the weight value of each RO instance needs to be set.
    instanceId string
    Instance ID, in the format: cdbro-3i70uj0k.
    isBalanceRoLoad number
    Whether to rebalance the load of RO instances in the RO group. Supported values include: 1 - rebalance load; 0 - do not rebalance load. The default value is 0. Note that when it is set to rebalance the load, the RO instance in the RO group will have a momentary disconnection of the database connection, please ensure that the application can reconnect to the database.
    mysqlRoGroupId string
    ID of the resource.
    roGroupId string
    The ID of the RO group.
    roGroupInfo MysqlRoGroupRoGroupInfo
    Details of the RO group.
    roWeightValues MysqlRoGroupRoWeightValue[]
    The weight of the instance within the RO group. If the weight mode of the RO group is changed to user-defined mode (custom), this parameter must be set, and the weight value of each RO instance needs to be set.
    instance_id str
    Instance ID, in the format: cdbro-3i70uj0k.
    is_balance_ro_load float
    Whether to rebalance the load of RO instances in the RO group. Supported values include: 1 - rebalance load; 0 - do not rebalance load. The default value is 0. Note that when it is set to rebalance the load, the RO instance in the RO group will have a momentary disconnection of the database connection, please ensure that the application can reconnect to the database.
    mysql_ro_group_id str
    ID of the resource.
    ro_group_id str
    The ID of the RO group.
    ro_group_info MysqlRoGroupRoGroupInfoArgs
    Details of the RO group.
    ro_weight_values Sequence[MysqlRoGroupRoWeightValueArgs]
    The weight of the instance within the RO group. If the weight mode of the RO group is changed to user-defined mode (custom), this parameter must be set, and the weight value of each RO instance needs to be set.
    instanceId String
    Instance ID, in the format: cdbro-3i70uj0k.
    isBalanceRoLoad Number
    Whether to rebalance the load of RO instances in the RO group. Supported values include: 1 - rebalance load; 0 - do not rebalance load. The default value is 0. Note that when it is set to rebalance the load, the RO instance in the RO group will have a momentary disconnection of the database connection, please ensure that the application can reconnect to the database.
    mysqlRoGroupId String
    ID of the resource.
    roGroupId String
    The ID of the RO group.
    roGroupInfo Property Map
    Details of the RO group.
    roWeightValues List<Property Map>
    The weight of the instance within the RO group. If the weight mode of the RO group is changed to user-defined mode (custom), this parameter must be set, and the weight value of each RO instance needs to be set.

    Supporting Types

    MysqlRoGroupRoGroupInfo, MysqlRoGroupRoGroupInfoArgs

    MinRoInGroup double
    The minimum number of reserved instances. It can be set to any value less than or equal to the number of RO instances under this RO group. Note that if the setting value is greater than the number of RO instances, it will not be removed; if it is set to 0, all instances whose latency exceeds the limit will be removed.
    ReplicationDelayTime double
    Delayed replication time.
    RoGroupName string
    RO group name.
    RoMaxDelayTime double
    RO instance maximum latency threshold. The unit is seconds, the minimum value is 1. Note that the RO group must have enabled instance delay culling policy for this value to be valid.
    RoOfflineDelay double
    Whether to enable delayed culling of instances. Supported values are: 1 - on; 0 - not on. Note that if you enable instance delay culling, you must set the delay threshold (RoMaxDelayTime) parameter.
    WeightMode string
    weight mode. Supported values include: system - automatically assigned by the system; custom - user-defined settings. Note that if the custom mode is set, the RO instance weight configuration (RoWeightValues) parameter must be set.
    MinRoInGroup float64
    The minimum number of reserved instances. It can be set to any value less than or equal to the number of RO instances under this RO group. Note that if the setting value is greater than the number of RO instances, it will not be removed; if it is set to 0, all instances whose latency exceeds the limit will be removed.
    ReplicationDelayTime float64
    Delayed replication time.
    RoGroupName string
    RO group name.
    RoMaxDelayTime float64
    RO instance maximum latency threshold. The unit is seconds, the minimum value is 1. Note that the RO group must have enabled instance delay culling policy for this value to be valid.
    RoOfflineDelay float64
    Whether to enable delayed culling of instances. Supported values are: 1 - on; 0 - not on. Note that if you enable instance delay culling, you must set the delay threshold (RoMaxDelayTime) parameter.
    WeightMode string
    weight mode. Supported values include: system - automatically assigned by the system; custom - user-defined settings. Note that if the custom mode is set, the RO instance weight configuration (RoWeightValues) parameter must be set.
    minRoInGroup Double
    The minimum number of reserved instances. It can be set to any value less than or equal to the number of RO instances under this RO group. Note that if the setting value is greater than the number of RO instances, it will not be removed; if it is set to 0, all instances whose latency exceeds the limit will be removed.
    replicationDelayTime Double
    Delayed replication time.
    roGroupName String
    RO group name.
    roMaxDelayTime Double
    RO instance maximum latency threshold. The unit is seconds, the minimum value is 1. Note that the RO group must have enabled instance delay culling policy for this value to be valid.
    roOfflineDelay Double
    Whether to enable delayed culling of instances. Supported values are: 1 - on; 0 - not on. Note that if you enable instance delay culling, you must set the delay threshold (RoMaxDelayTime) parameter.
    weightMode String
    weight mode. Supported values include: system - automatically assigned by the system; custom - user-defined settings. Note that if the custom mode is set, the RO instance weight configuration (RoWeightValues) parameter must be set.
    minRoInGroup number
    The minimum number of reserved instances. It can be set to any value less than or equal to the number of RO instances under this RO group. Note that if the setting value is greater than the number of RO instances, it will not be removed; if it is set to 0, all instances whose latency exceeds the limit will be removed.
    replicationDelayTime number
    Delayed replication time.
    roGroupName string
    RO group name.
    roMaxDelayTime number
    RO instance maximum latency threshold. The unit is seconds, the minimum value is 1. Note that the RO group must have enabled instance delay culling policy for this value to be valid.
    roOfflineDelay number
    Whether to enable delayed culling of instances. Supported values are: 1 - on; 0 - not on. Note that if you enable instance delay culling, you must set the delay threshold (RoMaxDelayTime) parameter.
    weightMode string
    weight mode. Supported values include: system - automatically assigned by the system; custom - user-defined settings. Note that if the custom mode is set, the RO instance weight configuration (RoWeightValues) parameter must be set.
    min_ro_in_group float
    The minimum number of reserved instances. It can be set to any value less than or equal to the number of RO instances under this RO group. Note that if the setting value is greater than the number of RO instances, it will not be removed; if it is set to 0, all instances whose latency exceeds the limit will be removed.
    replication_delay_time float
    Delayed replication time.
    ro_group_name str
    RO group name.
    ro_max_delay_time float
    RO instance maximum latency threshold. The unit is seconds, the minimum value is 1. Note that the RO group must have enabled instance delay culling policy for this value to be valid.
    ro_offline_delay float
    Whether to enable delayed culling of instances. Supported values are: 1 - on; 0 - not on. Note that if you enable instance delay culling, you must set the delay threshold (RoMaxDelayTime) parameter.
    weight_mode str
    weight mode. Supported values include: system - automatically assigned by the system; custom - user-defined settings. Note that if the custom mode is set, the RO instance weight configuration (RoWeightValues) parameter must be set.
    minRoInGroup Number
    The minimum number of reserved instances. It can be set to any value less than or equal to the number of RO instances under this RO group. Note that if the setting value is greater than the number of RO instances, it will not be removed; if it is set to 0, all instances whose latency exceeds the limit will be removed.
    replicationDelayTime Number
    Delayed replication time.
    roGroupName String
    RO group name.
    roMaxDelayTime Number
    RO instance maximum latency threshold. The unit is seconds, the minimum value is 1. Note that the RO group must have enabled instance delay culling policy for this value to be valid.
    roOfflineDelay Number
    Whether to enable delayed culling of instances. Supported values are: 1 - on; 0 - not on. Note that if you enable instance delay culling, you must set the delay threshold (RoMaxDelayTime) parameter.
    weightMode String
    weight mode. Supported values include: system - automatically assigned by the system; custom - user-defined settings. Note that if the custom mode is set, the RO instance weight configuration (RoWeightValues) parameter must be set.

    MysqlRoGroupRoWeightValue, MysqlRoGroupRoWeightValueArgs

    InstanceId string
    RO instance ID.
    Weight double
    Weights. The value range is [0, 100].
    InstanceId string
    RO instance ID.
    Weight float64
    Weights. The value range is [0, 100].
    instanceId String
    RO instance ID.
    weight Double
    Weights. The value range is [0, 100].
    instanceId string
    RO instance ID.
    weight number
    Weights. The value range is [0, 100].
    instance_id str
    RO instance ID.
    weight float
    Weights. The value range is [0, 100].
    instanceId String
    RO instance ID.
    weight Number
    Weights. The value range is [0, 100].

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack