Documentation ¶
Overview ¶
Package uddb include resources of ucloud uddb product
See also
- API: https://docs.ucloud.cn/api/uddb-api/index
- Product: https://www.ucloud.cn/site/product/uddb.html
for detail.
Index ¶
- type ChangeUDDBInstanceNameRequest
- type ChangeUDDBInstanceNameResponse
- type ChangeUDDBSlaveCountRequest
- type ChangeUDDBSlaveCountResponse
- type CreateUDDBInstanceRequest
- type CreateUDDBInstanceResponse
- type DataNodeInfo
- type DataSetUDDB
- type DeleteUDDBInstanceRequest
- type DeleteUDDBInstanceResponse
- type DescribeUDDBInstancePriceRequest
- type DescribeUDDBInstancePriceResponse
- type DescribeUDDBInstanceRequest
- type DescribeUDDBInstanceResponse
- type DescribeUDDBInstanceUpgradePriceRequest
- type DescribeUDDBInstanceUpgradePriceResponse
- type PriceDetailInfo
- type PriceInfo
- type RestartUDDBInstanceRequest
- type RestartUDDBInstanceResponse
- type SlaveInfo
- type StartUDDBInstanceRequest
- type StartUDDBInstanceResponse
- type StopUDDBInstanceRequest
- type StopUDDBInstanceResponse
- type UDDBClient
- func (c *UDDBClient) ChangeUDDBInstanceName(req *ChangeUDDBInstanceNameRequest) (*ChangeUDDBInstanceNameResponse, error)
- func (c *UDDBClient) ChangeUDDBSlaveCount(req *ChangeUDDBSlaveCountRequest) (*ChangeUDDBSlaveCountResponse, error)
- func (c *UDDBClient) CreateUDDBInstance(req *CreateUDDBInstanceRequest) (*CreateUDDBInstanceResponse, error)
- func (c *UDDBClient) DeleteUDDBInstance(req *DeleteUDDBInstanceRequest) (*DeleteUDDBInstanceResponse, error)
- func (c *UDDBClient) DescribeUDDBInstance(req *DescribeUDDBInstanceRequest) (*DescribeUDDBInstanceResponse, error)
- func (c *UDDBClient) DescribeUDDBInstancePrice(req *DescribeUDDBInstancePriceRequest) (*DescribeUDDBInstancePriceResponse, error)
- func (c *UDDBClient) DescribeUDDBInstanceUpgradePrice(req *DescribeUDDBInstanceUpgradePriceRequest) (*DescribeUDDBInstanceUpgradePriceResponse, error)
- func (c *UDDBClient) NewChangeUDDBInstanceNameRequest() *ChangeUDDBInstanceNameRequest
- func (c *UDDBClient) NewChangeUDDBSlaveCountRequest() *ChangeUDDBSlaveCountRequest
- func (c *UDDBClient) NewCreateUDDBInstanceRequest() *CreateUDDBInstanceRequest
- func (c *UDDBClient) NewDeleteUDDBInstanceRequest() *DeleteUDDBInstanceRequest
- func (c *UDDBClient) NewDescribeUDDBInstancePriceRequest() *DescribeUDDBInstancePriceRequest
- func (c *UDDBClient) NewDescribeUDDBInstanceRequest() *DescribeUDDBInstanceRequest
- func (c *UDDBClient) NewDescribeUDDBInstanceUpgradePriceRequest() *DescribeUDDBInstanceUpgradePriceRequest
- func (c *UDDBClient) NewRestartUDDBInstanceRequest() *RestartUDDBInstanceRequest
- func (c *UDDBClient) NewStartUDDBInstanceRequest() *StartUDDBInstanceRequest
- func (c *UDDBClient) NewStopUDDBInstanceRequest() *StopUDDBInstanceRequest
- func (c *UDDBClient) NewUpgradeUDDBDataNodeRequest() *UpgradeUDDBDataNodeRequest
- func (c *UDDBClient) NewUpgradeUDDBInstanceRequest() *UpgradeUDDBInstanceRequest
- func (c *UDDBClient) RestartUDDBInstance(req *RestartUDDBInstanceRequest) (*RestartUDDBInstanceResponse, error)
- func (c *UDDBClient) StartUDDBInstance(req *StartUDDBInstanceRequest) (*StartUDDBInstanceResponse, error)
- func (c *UDDBClient) StopUDDBInstance(req *StopUDDBInstanceRequest) (*StopUDDBInstanceResponse, error)
- func (c *UDDBClient) UpgradeUDDBDataNode(req *UpgradeUDDBDataNodeRequest) (*UpgradeUDDBDataNodeResponse, error)
- func (c *UDDBClient) UpgradeUDDBInstance(req *UpgradeUDDBInstanceRequest) (*UpgradeUDDBInstanceResponse, error)
- type UpgradeUDDBDataNodeRequest
- type UpgradeUDDBDataNodeResponse
- type UpgradeUDDBInstanceRequest
- type UpgradeUDDBInstanceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeUDDBInstanceNameRequest ¶
type ChangeUDDBInstanceNameRequest struct { request.CommonBase // 名称 NewName *string `required:"true"` // UDDB实例Id UDDBId *string `required:"true"` }
ChangeUDDBInstanceNameRequest is request schema for ChangeUDDBInstanceName action
type ChangeUDDBInstanceNameResponse ¶
type ChangeUDDBInstanceNameResponse struct {
response.CommonBase
}
ChangeUDDBInstanceNameResponse is response schema for ChangeUDDBInstanceName action
type ChangeUDDBSlaveCountRequest ¶
type ChangeUDDBSlaveCountRequest struct { request.CommonBase // 每个数据节点的只读实例个数, 取值必须>=0 SlaveCount *string `required:"true"` // UDDB资源id UDDBId *string `required:"true"` }
ChangeUDDBSlaveCountRequest is request schema for ChangeUDDBSlaveCount action
type ChangeUDDBSlaveCountResponse ¶
type ChangeUDDBSlaveCountResponse struct {
response.CommonBase
}
ChangeUDDBSlaveCountResponse is response schema for ChangeUDDBSlaveCount action
type CreateUDDBInstanceRequest ¶
type CreateUDDBInstanceRequest struct { request.CommonBase // 管理员密码, 密码需要使用base64加密 AdminPassword *string `required:"true"` // 管理员帐户名,默认root AdminUser *string `required:"false"` // 付费类型,可选值如下:Year: 按年付费 Month: 按月付费 Dynamic: 按需付费(单位: 小时) Trial: 免费试用 默认值为: Dynamic ChargeType *string `required:"false"` // 使用的代金券id CouponId *string `required:"false"` // UDDB的数据库版本,支持版本如下:mysql-5.6 mysql-5.7. 如果不填,则默认为mysql-5.6 DBTypeId *string `required:"true"` // 初始的数据节点个数 取值必须>0. DataNodeCount *int `required:"true"` // 新的数据节点的磁盘大小配置. 单位: GB 具体数值参考UDB的磁盘大小取值. DataNodeDiskSpace *int `required:"true"` // 新的数据节点的内存配置, 单位:MB 具体数值参考UDB的内存取值. DataNodeMemory *int `required:"true"` // 每个数据节点的只读实例个数, 取值必须>=0. 默认取值为0. DataNodeSlaveCount *int `required:"false"` // 存储节点的高可用模式, 分为高可用UDB(HA)和普通UDB(Normal),如果不填, 则默认为HA InstanceMode *string `required:"false"` // 存储节点和只读实例的磁盘类型。分为:SSD磁盘(SATA_SSD)或普通磁盘(Normal)。 如果不填,则默认为SATA_SSD InstanceType *string `required:"false"` // 实例名称,至少6位 Name *string `required:"true"` // 端口号,mysql默认端口为3306 Port *int `required:"false"` // 购买时长,默认值1 Quantity *int `required:"false"` // 其他版本:该参数可不填;专享版:物理机台数 RouterNodeNum *int `required:"true"` // UDDB路由节点的版本。分为三种: Trival(免费版): 2中间件节点; QPS:1.5W FellFree(标准版): 固定为4中间件节点,后续将根据业务请求量自动扩展,最多扩展到12个节点,QPS为3w - 10w; EnjoyAlone(物理机版):专享物理机,节点数让客户可选 RouterVersion *string `required:"true"` // 子网ID SubnetId *string `required:"false"` // VPC的ID VPCId *string `required:"false"` }
CreateUDDBInstanceRequest is request schema for CreateUDDBInstance action
type CreateUDDBInstanceResponse ¶
type CreateUDDBInstanceResponse struct { response.CommonBase // 如果执行失败, 失败的错误消息 Message string // UDDB实例ID UDDBId string }
CreateUDDBInstanceResponse is response schema for CreateUDDBInstance action
type DataNodeInfo ¶
type DataNodeInfo struct { // 节点的创建时间 CreateTime string // 数据节点的磁盘大小配置. 单位: GB DiskSpace string // 数据节点ID Id string // 最近一次数据迁移任务id LastTransTaskId string // 数据节点的内存配置, 单位:MB Memory string // 数据节点的只读实例个数. SlaveCount string // 只读实例信息列表 SlaveInfos []SlaveInfo // 数据分片状态, 状态列表如下: Init: 初始化中 Fail: 安装失败 Starting: 启动中 Running: 系统正常运行中 Shutdown: 关闭中 Shutoff: 已关闭 Deleted: 已删除 Upgrading: 系统升级中 State string }
DataNodeInfo - UDDB存储节点和下挂的只读实例信息
type DataSetUDDB ¶
type DataSetUDDB struct { // 管理员帐户名,默认root AdminUser string // 付费类型,可选值如下: Year: 按年付费 Month: 按月付费 Dynamic: 按需付费(单位: 小时) Trial: 免费试用 ChargeType string // UDDB实例创建时间,采用UTC计时时间戳 CreateTime string // UDDB的数据库版本 DBTypeId string // 数据节点个数 DataNodeCount string // 数据节点的磁盘大小配置. 单位: GB DataNodeDiskSpace string // UDDB实例的数据节点的信息列表 DataNodeList []DataNodeInfo // 数据节点的内存配置, 单位:MB DataNodeMemory string // 每个数据节点的只读实例个数. DataNodeSlaveCount string // UDDB实例过期时间,采用UTC计时时间戳 ExpiredTime string // 存储节点的高可用模式, 分为高可用UDB(HA)和普通UDB(Normal),如果不填, 则默认为HA InstanceMode string // 存储节点和只读实例的磁盘类型。分为:SSD磁盘(SATA_SSD)或普通磁盘(Normal)。 如果不填,则默认为SATA_SSD InstanceType string // UDDB实例名称 Name string // UDDB实例访问的端口号 Port string // 参考QPS。 免费版: 15000; 畅享版: 30000 - 100000 (根据节点数而定); 专享版: 节点数 * 10w qps RefQps int // 各版本下的节点个数。体验版: 固定为2节点; 畅享版:固定为4节点(后续可通过管理API调整);专享版:物理机台数 RouterNodeNum int // UDDB路由节点的版本。分为三种: Trival(免费版): 2中间件节点; QPS:1.5W FellFree(标准版): 固定为4中间件节点,后续将根据业务请求量自动扩展,最多扩展到12个节点,QPS为3w - 10w; EnjoyAlone(物理机版):专享物理机,节点数让客户可选 RouterVersion string // UDDB状态, 状态列表如下: Init: 初始化中 InitFail: 初始化失败 Starting: 启动中 Running: 系统正常运行中 Abnormal: 系统运行中, 有异常, 还能提供服务 Error: 系统运行中, 但不能正常提供服务 Shutdown: 关闭中 Shutoff: 已关闭 Deleted: 已删除 UpgradingUDDB: 升降级UDDB配置中 UpgradingDataNode: 升降级UDDB节点配置中 ChangingSlaveCount: 改变只读实例数量中 ScalingOutUDDB: 水平扩展中 State string // UDDB实例ID UDDBId string // UDDB实例访问的虚IP VirtualIP string // UDDB实例对应的可用区 Zone string }
DataSetUDDB - UDDB信息的DataSet
type DeleteUDDBInstanceRequest ¶
type DeleteUDDBInstanceRequest struct { request.CommonBase // UDDB实例ID UDDBId *string `required:"true"` }
DeleteUDDBInstanceRequest is request schema for DeleteUDDBInstance action
type DeleteUDDBInstanceResponse ¶
type DeleteUDDBInstanceResponse struct { response.CommonBase // 如果执行失败, 失败的错误消息 Message string }
DeleteUDDBInstanceResponse is response schema for DeleteUDDBInstance action
type DescribeUDDBInstancePriceRequest ¶
type DescribeUDDBInstancePriceRequest struct { request.CommonBase // 付费类型,可选值如下: Year: 按年付费 Month: 按月付费 Dynamic: 按需付费(单位: 小时) Trial: 免费试用 默认值为: Dynamic ChargeType *string `required:"false"` // 初始的数据节点个数 取值必须>0. DataNodeCount *int `required:"true"` // 新的数据节点的磁盘大小配置. 单位: GB 具体数值参考UDB的磁盘大小取值. DataNodeDiskSpace *int `required:"true"` // 新的数据节点的内存配置, 单位:MB 具体数值参考UDB的内存取值. DataNodeMemory *string `required:"true"` // 每个数据节点的只读实例个数, 取值必须>=0. 默认取值为0. DataNodeSlaveCount *int `required:"false"` // 存储节点的高可用模式, 分为高可用UDB(HA)和普通UDB(Normal),如果不填, 则默认为HA InstanceMode *string `required:"false"` // 存储节点和只读实例的磁盘类型。分为:SSD磁盘(SATA_SSD)或普通磁盘(Normal)。 如果不填,则默认为SATA_SSD InstanceType *string `required:"false"` // 购买时长,默认值1 Quantity *int `required:"false"` // 其他版本:该参数可不填;专享版:物理机节点个数。一台物理机有2个节点 RouterNodeNum *int `required:"true"` // UDDB路由节点的版本。分为三种: Trival(免费版): 2中间件节点; QPS:1.5WFeelFree(标准版): 固定为4中间件节点,后续将根据业务请求量自动扩展,最多扩展到12个节点,QPS为3w - 10w;EnjoyAlone(物理机版):专享物理机,节点数让客户可选 RouterVersion *string `required:"true"` }
DescribeUDDBInstancePriceRequest is request schema for DescribeUDDBInstancePrice action
type DescribeUDDBInstancePriceResponse ¶
type DescribeUDDBInstancePriceResponse struct { response.CommonBase // 如果执行失败, 失败的错误消息 Message string // 价格明细, 参考PriceDetailInfo对象定义 PriceInfo PriceDetailInfo }
DescribeUDDBInstancePriceResponse is response schema for DescribeUDDBInstancePrice action
type DescribeUDDBInstanceRequest ¶
type DescribeUDDBInstanceRequest struct { request.CommonBase // UDDB实例ID UDDBId *string `required:"true"` }
DescribeUDDBInstanceRequest is request schema for DescribeUDDBInstance action
type DescribeUDDBInstanceResponse ¶
type DescribeUDDBInstanceResponse struct { response.CommonBase // UDDB实例信息列表, 参见DataSetUDDB项定义 DataSet []DataSetUDDB // 如果执行失败, 失败的错误消息 Message string }
DescribeUDDBInstanceResponse is response schema for DescribeUDDBInstance action
type DescribeUDDBInstanceUpgradePriceRequest ¶
type DescribeUDDBInstanceUpgradePriceRequest struct { request.CommonBase // 新的数据节点个数 取值必须>0. DataNodeCount *int `required:"false"` // 新的数据节点的磁盘大小配置. 单位: GB 具体数值参考UDB的磁盘大小取值. DataNodeDiskSpace *int `required:"false"` // 新的数据节点的内存配置, 单位:MB 具体数值参考UDB的内存取值. DataNodeMemory *int `required:"false"` // 每个数据节点的只读实例个数, 取值必须>=0. DataNodeSlaveCount *int `required:"false"` // 存储节点的高可用模式, 分为高可用UDB(HA)和普通UDB(Normal),如果不填, 则默认为HA InstanceMode *string `required:"false"` // 存储节点和只读实例的磁盘类型。分为:SSD磁盘(SATA_SSD)或普通磁盘(Normal)。 如果不填,则默认为SATA_SSD InstanceType *string `required:"false"` // 其他版本:该参数可不填;专享版:物理机节点的个数。一台物理机有2个节点 RouterNodeNum *int `required:"true"` // UDDB路由节点的版本。分为三种: Trival(免费版): 2中间件节点; QPS:1.5WFeelFree(标准版): 固定为4中间件节点,后续将根据业务请求量自动扩展,最多扩展到12个节点,QPS为3w - 10w;EnjoyAlone(物理机版):专享物理机,节点数让客户可选 RouterVersion *string `required:"true"` // UDDB实例ID UDDBId *string `required:"true"` }
DescribeUDDBInstanceUpgradePriceRequest is request schema for DescribeUDDBInstanceUpgradePrice action
type DescribeUDDBInstanceUpgradePriceResponse ¶
type DescribeUDDBInstanceUpgradePriceResponse struct { response.CommonBase // 如果执行失败, 失败的错误消息 Message string // 价格明细, 参考PriceInfo对象定义 PriceInfo PriceInfo }
DescribeUDDBInstanceUpgradePriceResponse is response schema for DescribeUDDBInstanceUpgradePrice action
type PriceDetailInfo ¶
type PriceDetailInfo struct { // 存储节点费用 DataNodePrice float64 // 只读实例费用 DataNodeSlavePrice float64 // 中间件路由节点费用 MiddlewarePrice float64 }
PriceDetailInfo - UDDB实例计费详情
type PriceInfo ¶
type PriceInfo struct { // 存储节点费用 DataNodePrice float64 // 只读实例费用 DataNodeSlavePrice float64 // 中间件路由节点费用 MiddlewarePrice float64 }
PriceInfo - UDDB实例计费详情
type RestartUDDBInstanceRequest ¶
type RestartUDDBInstanceRequest struct { request.CommonBase // UDDB实例ID UDDBId *string `required:"true"` }
RestartUDDBInstanceRequest is request schema for RestartUDDBInstance action
type RestartUDDBInstanceResponse ¶
type RestartUDDBInstanceResponse struct { response.CommonBase // 如果执行失败, 失败的错误消息 Message string }
RestartUDDBInstanceResponse is response schema for RestartUDDBInstance action
type SlaveInfo ¶
type SlaveInfo struct { // 对应数据节点的ID DataNodeId string // 只读实例ID Id string // 只读实例状态, 状态列表如下: Init: 初始化中 Fail: 安装失败 Starting: 启动中 Running: 系统正常运行中 Shutdown: 关闭中 Shutoff: 已关闭 Deleted: 已删除 Upgrading: 系统升级中 State string }
SlaveInfo - UDDB只读实例信息
type StartUDDBInstanceRequest ¶
type StartUDDBInstanceRequest struct { request.CommonBase // UDDB实例ID UDDBId *string `required:"true"` }
StartUDDBInstanceRequest is request schema for StartUDDBInstance action
type StartUDDBInstanceResponse ¶
type StartUDDBInstanceResponse struct { response.CommonBase // 如果执行失败, 失败的错误消息 Message string }
StartUDDBInstanceResponse is response schema for StartUDDBInstance action
type StopUDDBInstanceRequest ¶
type StopUDDBInstanceRequest struct { request.CommonBase // UDDB实例ID UDDBId *string `required:"true"` }
StopUDDBInstanceRequest is request schema for StopUDDBInstance action
type StopUDDBInstanceResponse ¶
type StopUDDBInstanceResponse struct { response.CommonBase // 如果执行失败, 失败的错误消息 Message string }
StopUDDBInstanceResponse is response schema for StopUDDBInstance action
type UDDBClient ¶
UDDBClient is the client of UDDB
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *UDDBClient
NewClient will return a instance of UDDBClient
func (*UDDBClient) ChangeUDDBInstanceName ¶
func (c *UDDBClient) ChangeUDDBInstanceName(req *ChangeUDDBInstanceNameRequest) (*ChangeUDDBInstanceNameResponse, error)
API: ChangeUDDBInstanceName
修改分布式数据库中间件名称
func (*UDDBClient) ChangeUDDBSlaveCount ¶
func (c *UDDBClient) ChangeUDDBSlaveCount(req *ChangeUDDBSlaveCountRequest) (*ChangeUDDBSlaveCountResponse, error)
API: ChangeUDDBSlaveCount
改变分布式数据库数据节点的只读实例个数 每一个UDDB的数据节点负责处理所有的写入请求。与此同时,每一个数据节点可以配置若干个该节点的只读实例。当主节点的数据写入完毕后,只读实例把这次的写入操作进行更新,从而和数据节点保持一致。 只读实例可以使得数据由多份复制,在数据节点和只读实例之间,可以做请求的读写分离, 也就是说, 主节点写入数据之后, 数据的读操作可以由数据只读实例进行分担, 这样减少主节点的压力, 增加性能 当改变了数据节点的只读实例个数之后,对于现有的和以后的每一个数据节点都采用这个配置。如果UDDB实例有现有的数据节点, 那么它会根据新配置的参数,自动创建或删除数据节点的只读实例 如下状态的UDDB实例可以进行这个操作: Running: 系统正常运行中 当请求返回成功之后,UDDB实例的状态变成"ChangingSlaveCount"; 如果返回失败, UDDB实例状态保持不变 当UDDB更改数据分区的只读实例个数成功之后, UDDB实例的状态变成"Running"(正常运行中); 如果更改过程中出现异常, 状态变成"Abnormal"(异常运行中)或者"Error"(运行错误)
func (*UDDBClient) CreateUDDBInstance ¶
func (c *UDDBClient) CreateUDDBInstance(req *CreateUDDBInstanceRequest) (*CreateUDDBInstanceResponse, error)
API: CreateUDDBInstance
创建创建分布式数据库UDDB实例, 简称UDDB实例。
func (*UDDBClient) DeleteUDDBInstance ¶
func (c *UDDBClient) DeleteUDDBInstance(req *DeleteUDDBInstanceRequest) (*DeleteUDDBInstanceResponse, error)
API: DeleteUDDBInstance
删除UDDB实例。 如下状态的UDDB实例可以进行这个操作: InitFail: 初始化失败 Shutoff: 已关闭 当请求返回成功之后,UDDB实例就已经被删除, 列表上看不到对应的UDDB实例
func (*UDDBClient) DescribeUDDBInstance ¶
func (c *UDDBClient) DescribeUDDBInstance(req *DescribeUDDBInstanceRequest) (*DescribeUDDBInstanceResponse, error)
API: DescribeUDDBInstance
获取分布式数据库UDDB的详细信息
func (*UDDBClient) DescribeUDDBInstancePrice ¶
func (c *UDDBClient) DescribeUDDBInstancePrice(req *DescribeUDDBInstancePriceRequest) (*DescribeUDDBInstancePriceResponse, error)
API: DescribeUDDBInstancePrice
获取分布式数据库UDDB价格
func (*UDDBClient) DescribeUDDBInstanceUpgradePrice ¶
func (c *UDDBClient) DescribeUDDBInstanceUpgradePrice(req *DescribeUDDBInstanceUpgradePriceRequest) (*DescribeUDDBInstanceUpgradePriceResponse, error)
API: DescribeUDDBInstanceUpgradePrice
升级UDDB时,获取升级后的价格
func (*UDDBClient) NewChangeUDDBInstanceNameRequest ¶
func (c *UDDBClient) NewChangeUDDBInstanceNameRequest() *ChangeUDDBInstanceNameRequest
NewChangeUDDBInstanceNameRequest will create request of ChangeUDDBInstanceName action.
func (*UDDBClient) NewChangeUDDBSlaveCountRequest ¶
func (c *UDDBClient) NewChangeUDDBSlaveCountRequest() *ChangeUDDBSlaveCountRequest
NewChangeUDDBSlaveCountRequest will create request of ChangeUDDBSlaveCount action.
func (*UDDBClient) NewCreateUDDBInstanceRequest ¶
func (c *UDDBClient) NewCreateUDDBInstanceRequest() *CreateUDDBInstanceRequest
NewCreateUDDBInstanceRequest will create request of CreateUDDBInstance action.
func (*UDDBClient) NewDeleteUDDBInstanceRequest ¶
func (c *UDDBClient) NewDeleteUDDBInstanceRequest() *DeleteUDDBInstanceRequest
NewDeleteUDDBInstanceRequest will create request of DeleteUDDBInstance action.
func (*UDDBClient) NewDescribeUDDBInstancePriceRequest ¶
func (c *UDDBClient) NewDescribeUDDBInstancePriceRequest() *DescribeUDDBInstancePriceRequest
NewDescribeUDDBInstancePriceRequest will create request of DescribeUDDBInstancePrice action.
func (*UDDBClient) NewDescribeUDDBInstanceRequest ¶
func (c *UDDBClient) NewDescribeUDDBInstanceRequest() *DescribeUDDBInstanceRequest
NewDescribeUDDBInstanceRequest will create request of DescribeUDDBInstance action.
func (*UDDBClient) NewDescribeUDDBInstanceUpgradePriceRequest ¶
func (c *UDDBClient) NewDescribeUDDBInstanceUpgradePriceRequest() *DescribeUDDBInstanceUpgradePriceRequest
NewDescribeUDDBInstanceUpgradePriceRequest will create request of DescribeUDDBInstanceUpgradePrice action.
func (*UDDBClient) NewRestartUDDBInstanceRequest ¶
func (c *UDDBClient) NewRestartUDDBInstanceRequest() *RestartUDDBInstanceRequest
NewRestartUDDBInstanceRequest will create request of RestartUDDBInstance action.
func (*UDDBClient) NewStartUDDBInstanceRequest ¶
func (c *UDDBClient) NewStartUDDBInstanceRequest() *StartUDDBInstanceRequest
NewStartUDDBInstanceRequest will create request of StartUDDBInstance action.
func (*UDDBClient) NewStopUDDBInstanceRequest ¶
func (c *UDDBClient) NewStopUDDBInstanceRequest() *StopUDDBInstanceRequest
NewStopUDDBInstanceRequest will create request of StopUDDBInstance action.
func (*UDDBClient) NewUpgradeUDDBDataNodeRequest ¶
func (c *UDDBClient) NewUpgradeUDDBDataNodeRequest() *UpgradeUDDBDataNodeRequest
NewUpgradeUDDBDataNodeRequest will create request of UpgradeUDDBDataNode action.
func (*UDDBClient) NewUpgradeUDDBInstanceRequest ¶
func (c *UDDBClient) NewUpgradeUDDBInstanceRequest() *UpgradeUDDBInstanceRequest
NewUpgradeUDDBInstanceRequest will create request of UpgradeUDDBInstance action.
func (*UDDBClient) RestartUDDBInstance ¶
func (c *UDDBClient) RestartUDDBInstance(req *RestartUDDBInstanceRequest) (*RestartUDDBInstanceResponse, error)
API: RestartUDDBInstance
重启UDDB实例,开始提供服务。
如下状态的UDDB实例可以进行这个操作:
Running: 正常运行中 Abnormal: 异常运行中 当请求返回成功之后,UDDB实例的状态变成"Starting"(启动中); 如果返回失败, UDDB实例状态保持不变 UDDB实例在重启过程中, 当UDDB实例启动成功之后, UDDB实例的状态变成"Running"(正常运行中); 如果启动过程中出现异常, 状态变成"Abnormal"(异常运行中), 或者"Shutoff"(已关闭
func (*UDDBClient) StartUDDBInstance ¶
func (c *UDDBClient) StartUDDBInstance(req *StartUDDBInstanceRequest) (*StartUDDBInstanceResponse, error)
API: StartUDDBInstance
启动UDDB实例,开始提供服务。
如下状态的UDDB实例可以进行这个操作:
Shutoff: 已关闭 当请求返回成功之后,UDDB实例的状态变成"Starting"(启动中); 如果返回失败, UDDB实例状态保持不变 UDDB实例在启动过程中, 当UDDB实例启动成功之后, UDDB实例的状态变成"Running"(正常运行中); 如果启动过程中出现异常, 状态变成"Abnormal"(异常运行中), 或者"Shutoff"(已关闭)
func (*UDDBClient) StopUDDBInstance ¶
func (c *UDDBClient) StopUDDBInstance(req *StopUDDBInstanceRequest) (*StopUDDBInstanceResponse, error)
API: StopUDDBInstance
关闭UDDB实例,停止提供服务。
如下状态的UDDB实例可以进行这个操作:
Running: 正常运行中 Abnormal: 异常运行中 当请求返回成功之后,UDDB实例的状态变成"Shutdown"(关闭中); 如果返回失败, UDDB实例状态保持不变 UDDB实例在关闭过程中, 当UDDB实例关闭成功之后, UDDB实例的状态变成"Shutoff"(已关闭); 如果关闭过程中出现异常, 根据UDDB实例的情况, 状态变成"Abnormal"(异常运行中), 或者"Running"(正常运行中)
func (*UDDBClient) UpgradeUDDBDataNode ¶
func (c *UDDBClient) UpgradeUDDBDataNode(req *UpgradeUDDBDataNodeRequest) (*UpgradeUDDBDataNodeResponse, error)
API: UpgradeUDDBDataNode
升降级分布式数据库数据节点的配置, 提高/降低数据节点的数据容量和内存
所有数据节点以及其所挂载的只读实例的配置都受到影响
升降级数据节点的配置之后之后, 会按照数据节点新的磁盘和内存大小重新计费
如下状态的数据节点实例可以进行这个操作:
Shutoff: 已关闭 当请求返回成功之后,UDDB实例的状态变成"UpgradingDataNode",相关数据节点的状态变成"Upgrading"; 如果返回失败, UDDB实例状态保持不变 当UDDB实例升级结束之后, UDDB实例的状态变成"Shutoff"
func (*UDDBClient) UpgradeUDDBInstance ¶
func (c *UDDBClient) UpgradeUDDBInstance(req *UpgradeUDDBInstanceRequest) (*UpgradeUDDBInstanceResponse, error)
API: UpgradeUDDBInstance
升降级分布式数据库中间件的配置, 提高/降低请求处理的并发性
修改请求处理节点个数之后, 按照所有请求处理节点的总内存容量和CPU核数重新计费
如下状态的UDDB实例可以进行这个操作:
Running: 系统正常运行中 当请求返回成功之后,UDDB实例的状态变成"UpgradingUDDB"; 如果返回失败, UDDB实例状态保持不变 当UDDB实例升级成功之后, UDDB实例的状态变成"Running"; 如果更改过程中出现异常, 状态变成"Abnormal", 或者"Error"
type UpgradeUDDBDataNodeRequest ¶
type UpgradeUDDBDataNodeRequest struct { request.CommonBase // 使用的代金券id CouponId *string `required:"false"` // 新的数据节点的磁盘大小配置. 单位: GB 具体数值参考UDB的磁盘大小取值. DataNodeDiskSpace *int `required:"true"` // 新的数据节点的内存配置, 单位:MB 具体数值参考UDB的内存取值 DataNodeMemory *int `required:"true"` // UDDB实例ID UDDBId *string `required:"true"` }
UpgradeUDDBDataNodeRequest is request schema for UpgradeUDDBDataNode action
type UpgradeUDDBDataNodeResponse ¶
type UpgradeUDDBDataNodeResponse struct { response.CommonBase // 如果执行失败, 失败的错误消息 Message string }
UpgradeUDDBDataNodeResponse is response schema for UpgradeUDDBDataNode action
type UpgradeUDDBInstanceRequest ¶
type UpgradeUDDBInstanceRequest struct { request.CommonBase // 使用的代金券id CouponId *string `required:"false"` // 其他版本:该参数可不填;专享版:物理机台数 RouterNodeNum *int `required:"true"` // UDDB路由节点的版本。分为三种: Trival(免费版): 2中间件节点; QPS:1.5W FellFree(标准版): 固定为4中间件节点,后续将根据业务请求量自动扩展,最多扩展到12个节点,QPS为3w - 10w; EnjoyAlone(物理机版):专享物理机,节点数让客户可选 RouterVersion *string `required:"true"` // UDDB实例ID UDDBId *string `required:"true"` }
UpgradeUDDBInstanceRequest is request schema for UpgradeUDDBInstance action
type UpgradeUDDBInstanceResponse ¶
type UpgradeUDDBInstanceResponse struct { response.CommonBase // 如果执行失败, 失败的错误消息 Message string }
UpgradeUDDBInstanceResponse is response schema for UpgradeUDDBInstance action