tencentcloud_mongodb_sharding_instance

最近更新时间:2025-01-08 18:07:03

我的收藏

描述

腾讯云云数据库 MongoDB 分片集群,产品介绍

架构类型: 分片集群

支持的购买方式:
后付费
预付费(用户余额支付)

示例

resource "tencentcloud_mongodb_sharding_instance" "mongodb" {
shard_quantity = 2
nodes_per_shard = 3
memory = 4
volume = 100
engine_version = "MONGO_36_WT"
machine_type = "HIO"
availability_zone = "ap-guangzhou-2"
vpc_id = "vpc-mz3efvbw"
subnet_id = "subnet-lk0svi3p"
password = "password1234"
}

参数说明

类型
名称
数据类型
说明
必填
region
string
地域,如:ap-guangzhou,默认使用 provider 中定义的 region 也可以在 resource 中指定地域,覆盖默认设置
availability_zone
string
可用区
memory
int
内存大小,单位 GB,最小取值 2
volume
int
硬盘大小,单位 GB,最小取值 25
engine_version
enum
MongoDB 版本
枚举值:
MONGO_36_WT
MONGO_40_WT
MONGO_42_WT
MONGO_44_WT
MONGO_50_WT
MONGO_60_WT
machine_type
enum
机器类型
机器类型。 枚举值:
HIO
HIO10G
password
string
实例登录密码
shard_quantity
int
副本集数量
nodes_per_shard
int
每个副本集内节点个数
mongos_cpu
int
Mongos CPU 核数。
mongos_memory
int
Mongos 内存大小,单位:GB。
mongos_node_num
int
Mongos 数量。
可选
count
int
资源数量,默认为 1 如果为 0 则不创建资源
activity_id
int
计费活动 ID,保留字段
vpc_id
string
VPC ID
subnet_id
string
子网 ID
security_groups
string[]
安全组 ID 列表
charge_type
CommonChargeType
计费类型
prepaid_period
int
预付费时长,单位为月,取值范围:1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36。
auto_renew_flag
int
是否自动续费,可选值:0 - 不自动续费;1 - 自动续费。默认为不自动续费
生成
id
string
资源实例 ID
create_time
string
资源创建时间
status
int
实例状态,可能的返回值:0-待初始化,1-流程处理中,2-运行中,-2-实例已过期。
vip
string
实例IP。
vport
int
实例端口号。