tencentcloud.MysqlRoGroup
Explore with Pulumi AI
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:
- Instance
Id string - Instance ID, in the format: cdbro-3i70uj0k.
- Ro
Group stringId - The ID of the RO group.
- Is
Balance doubleRo Load - 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 stringGroup Id - ID of the resource.
- Ro
Group MysqlInfo Ro Group Ro Group Info - Details of the RO group.
- Ro
Weight List<MysqlValues Ro Group Ro Weight Value> - 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 string - Instance ID, in the format: cdbro-3i70uj0k.
- Ro
Group stringId - The ID of the RO group.
- Is
Balance float64Ro Load - 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 stringGroup Id - ID of the resource.
- Ro
Group MysqlInfo Ro Group Ro Group Info Args - Details of the RO group.
- Ro
Weight []MysqlValues Ro Group Ro Weight Value Args - 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 String - Instance ID, in the format: cdbro-3i70uj0k.
- ro
Group StringId - The ID of the RO group.
- is
Balance DoubleRo Load - 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 StringGroup Id - ID of the resource.
- ro
Group MysqlInfo Ro Group Ro Group Info - Details of the RO group.
- ro
Weight List<MysqlValues Ro Group Ro Weight Value> - 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 string - Instance ID, in the format: cdbro-3i70uj0k.
- ro
Group stringId - The ID of the RO group.
- is
Balance numberRo Load - 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 stringGroup Id - ID of the resource.
- ro
Group MysqlInfo Ro Group Ro Group Info - Details of the RO group.
- ro
Weight MysqlValues Ro Group Ro Weight Value[] - 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_ strid - The ID of the RO group.
- is_
balance_ floatro_ load - 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_ strgroup_ id - ID of the resource.
- ro_
group_ Mysqlinfo Ro Group Ro Group Info Args - Details of the RO group.
- ro_
weight_ Sequence[Mysqlvalues Ro Group Ro Weight Value Args] - 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 String - Instance ID, in the format: cdbro-3i70uj0k.
- ro
Group StringId - The ID of the RO group.
- is
Balance NumberRo Load - 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 StringGroup Id - ID of the resource.
- ro
Group Property MapInfo - Details of the RO group.
- ro
Weight List<Property Map>Values - 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.
- Instance
Id string - Instance ID, in the format: cdbro-3i70uj0k.
- Is
Balance doubleRo Load - 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 stringGroup Id - ID of the resource.
- Ro
Group stringId - The ID of the RO group.
- Ro
Group MysqlInfo Ro Group Ro Group Info - Details of the RO group.
- Ro
Weight List<MysqlValues Ro Group Ro Weight Value> - 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 string - Instance ID, in the format: cdbro-3i70uj0k.
- Is
Balance float64Ro Load - 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 stringGroup Id - ID of the resource.
- Ro
Group stringId - The ID of the RO group.
- Ro
Group MysqlInfo Ro Group Ro Group Info Args - Details of the RO group.
- Ro
Weight []MysqlValues Ro Group Ro Weight Value Args - 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 String - Instance ID, in the format: cdbro-3i70uj0k.
- is
Balance DoubleRo Load - 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 StringGroup Id - ID of the resource.
- ro
Group StringId - The ID of the RO group.
- ro
Group MysqlInfo Ro Group Ro Group Info - Details of the RO group.
- ro
Weight List<MysqlValues Ro Group Ro Weight Value> - 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 string - Instance ID, in the format: cdbro-3i70uj0k.
- is
Balance numberRo Load - 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 stringGroup Id - ID of the resource.
- ro
Group stringId - The ID of the RO group.
- ro
Group MysqlInfo Ro Group Ro Group Info - Details of the RO group.
- ro
Weight MysqlValues Ro Group Ro Weight Value[] - 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_ floatro_ load - 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_ strgroup_ id - ID of the resource.
- ro_
group_ strid - The ID of the RO group.
- ro_
group_ Mysqlinfo Ro Group Ro Group Info Args - Details of the RO group.
- ro_
weight_ Sequence[Mysqlvalues Ro Group Ro Weight Value Args] - 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 String - Instance ID, in the format: cdbro-3i70uj0k.
- is
Balance NumberRo Load - 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 StringGroup Id - ID of the resource.
- ro
Group StringId - The ID of the RO group.
- ro
Group Property MapInfo - Details of the RO group.
- ro
Weight List<Property Map>Values - 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
- Min
Ro doubleIn Group - 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 doubleTime - Delayed replication time.
- Ro
Group stringName - RO group name.
- Ro
Max doubleDelay Time - 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 doubleDelay - 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 string - weight mode. Supported values include:
system
- automatically assigned by the system;custom
- user-defined settings. Note that if thecustom
mode is set, the RO instance weight configuration (RoWeightValues) parameter must be set.
- Min
Ro float64In Group - 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 float64Time - Delayed replication time.
- Ro
Group stringName - RO group name.
- Ro
Max float64Delay Time - 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 float64Delay - 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 string - weight mode. Supported values include:
system
- automatically assigned by the system;custom
- user-defined settings. Note that if thecustom
mode is set, the RO instance weight configuration (RoWeightValues) parameter must be set.
- min
Ro DoubleIn Group - 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 DoubleTime - Delayed replication time.
- ro
Group StringName - RO group name.
- ro
Max DoubleDelay Time - 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 DoubleDelay - 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 String - weight mode. Supported values include:
system
- automatically assigned by the system;custom
- user-defined settings. Note that if thecustom
mode is set, the RO instance weight configuration (RoWeightValues) parameter must be set.
- min
Ro numberIn Group - 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 numberTime - Delayed replication time.
- ro
Group stringName - RO group name.
- ro
Max numberDelay Time - 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 numberDelay - 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 string - weight mode. Supported values include:
system
- automatically assigned by the system;custom
- user-defined settings. Note that if thecustom
mode is set, the RO instance weight configuration (RoWeightValues) parameter must be set.
- min_
ro_ floatin_ group - 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_ floattime - Delayed replication time.
- ro_
group_ strname - RO group name.
- ro_
max_ floatdelay_ time - 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_ floatdelay - 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 thecustom
mode is set, the RO instance weight configuration (RoWeightValues) parameter must be set.
- min
Ro NumberIn Group - 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 NumberTime - Delayed replication time.
- ro
Group StringName - RO group name.
- ro
Max NumberDelay Time - 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 NumberDelay - 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 String - weight mode. Supported values include:
system
- automatically assigned by the system;custom
- user-defined settings. Note that if thecustom
mode is set, the RO instance weight configuration (RoWeightValues) parameter must be set.
MysqlRoGroupRoWeightValue, MysqlRoGroupRoWeightValueArgs
- Instance
Id string - RO instance ID.
- Weight double
- Weights. The value range is [0, 100].
- Instance
Id string - RO instance ID.
- Weight float64
- Weights. The value range is [0, 100].
- instance
Id String - RO instance ID.
- weight Double
- Weights. The value range is [0, 100].
- instance
Id 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].
- instance
Id 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.