模板名稱
ACS-RDS-BulkyModifyDBInstanceSpec 修改RDS實例的配置
模板描述
修改RDS實例的配置,變更提醒:
RDS變更配置可能涉及底層數據遷移,請您耐心等待。在遷移完成后會進行切換,切換時會出現30秒左右的閃斷,請確保應用具備重連機制。
變更實例規格過程會根據您選擇的切換時間自動重啟實例,無需手動操作。
云盤同存儲類型的擴容業務無感,變配后會將立即執行,不會等待運維窗口;本地盤及不同類型云盤擴容業務會出現閃斷,可選擇運維窗口切換。
閃斷過程中,與數據庫、賬號、網絡等相關的大部分操作都無法執行,因此請盡量在業務低峰期執行變配操作。
主實例磁盤空間須小于等于只讀實例磁盤空間
模板類型
自動化
所有者
Alibaba Cloud
輸入參數
參數名稱 | 描述 | 類型 | 是否必填 | 默認值 | 約束 |
regionId | 地域ID | String | 是 | ||
targets | 目標實例 | Json | 是 | ||
dBInstanceStorageType | 實例儲存類型 | String | 是 | ||
dBInstanceClass | 目標實例規格 | String | 是 | ||
dBInstanceStorage | 目標存儲空間大小 | Number | 是 | ||
effectiveTime | 變更生效時間 | String | 否 | Immediate | |
rateControl | 任務執行的并發比率 | Json | 否 | {'Mode': 'Concurrency', 'MaxErrors': 0, 'Concurrency': 10} | |
OOSAssumeRole | OOS扮演的RAM角色 | String | 否 | "" |
輸出參數
無
執行此模板需要的權限策略
{
"Version": "1",
"Statement": [
{
"Action": [
"rds:DescribeDBInstanceAttribute",
"rds:DescribeDBInstances",
"rds:ModifyDBInstanceSpec"
],
"Resource": "*",
"Effect": "Allow"
}
]
}
詳情
ACS-RDS-BulkyModifyDBInstanceSpec詳情
模板內容
FormatVersion: OOS-2019-06-01
Description:
name-en: ACS-RDS-BulkyModifyDBInstanceSpec
name-zh-cn: 修改RDS實例的配置
en: |-
<div><p>Modify the configuration of the RDS instance, change reminder:</p>
<ul>
<li>Changing the RDS configuration may involve the migration of underlying data, please wait patiently. After the migration is completed, the switch will be performed, and there will be a flash disconnection of about 30 seconds during the switch. Please ensure that the application has a reconnection mechanism.</li>
<li>The instance specification change process will automatically restart the instance according to the switch time you choose, without manual operation.</li>
<li>The expansion business of the same storage type of cloud disk is not sensitive, and it will be executed immediately after the configuration change, and will not wait for the operation and maintenance window; the expansion business of local disks and different types of cloud disks will have flash disconnections, and you can choose to switch in the operation and maintenance window.</li>
<li>During the flash disconnection, most operations related to databases, accounts, networks, etc. cannot be performed, so please try to perform the configuration change operation during the off-peak period of the business.</li>
<li>The disk space of the main instance must be less than or equal to the disk space of the read-only instance</li>
</ul>
</div>
zh-cn: |-
<div><p>修改RDS實例的配置,變更提醒:</p>
<ul>
<li>RDS變更配置可能涉及底層數據遷移,請您耐心等待。在遷移完成后會進行切換,切換時會出現30秒左右的閃斷,請確保應用具備重連機制。</li>
<li>變更實例規格過程會根據您選擇的切換時間自動重啟實例,無需手動操作。</li>
<li>云盤同存儲類型的擴容業務無感,變配后會將立即執行,不會等待運維窗口;本地盤及不同類型云盤擴容業務會出現閃斷,可選擇運維窗口切換。</li>
<li>閃斷過程中,與數據庫、賬號、網絡等相關的大部分操作都無法執行,因此請盡量在業務低峰期執行變配操作。</li>
<li>主實例磁盤空間須小于等于只讀實例磁盤空間</li>
</ul>
</div>
Parameters:
regionId:
Label:
en: RegionId
zh-cn: 地域ID
Type: String
AssociationProperty: ALIYUN::ECS::RegionId
targets:
Type: Json
Label:
en: TargetInstance
zh-cn: 目標實例
AssociationProperty: Targets
AssociationPropertyMetadata:
ResourceType: ALIYUN::RDS::Instance
RegionId: regionId
Status: Running
dBInstanceStorageType:
Type: String
Label:
en: DBInstanceStorageType
zh-cn: 實例儲存類型
Description:
en: |-
<div><p>Instance storage type, value:</p>
<ul>
<li><strong>local_ssd</strong>: Local SSD disk</li>
<li><strong>cloud_essd</strong>: ESSD PL1 cloud disk</li>
<li><strong>cloud_essd2</strong>: ESSD PL2 cloud disk</li>
<li><strong>cloud_essd3</strong>: ESSD PL3 cloud disk</li>
<li><strong>general_essd</strong>: General cloud disk</li>
</ul>
</div>
zh-cn: |-
<div><p>實例儲存類型,取值:</p>
<ul>
<li><strong>local_ssd</strong>:本地 SSD 盤</li>
<li><strong>cloud_essd</strong>:ESSD PL1 云盤</li>
<li><strong>cloud_essd2</strong>:ESSD PL2 云盤</li>
<li><strong>cloud_essd3</strong>:ESSD PL3 云盤</li>
<li><strong>general_essd</strong>:通用云盤</li>
</ul>
</div>
AllowedValues:
- local_ssd
- cloud_essd
- cloud_essd2
- cloud_essd3
- general_essd
dBInstanceClass:
Type: String
Label:
en: DBInstanceClass
zh-cn: 目標實例規格
AssociationProperty: ALIYUN::RDS::Instance::InstanceType
AssociationPropertyMetadata:
DBInstanceStorageType: ${dBInstanceStorageType}
dBInstanceStorage:
Type: Number
Label:
en: DBInstanceStorage
zh-cn: 目標存儲空間大小
Description:
en: Unit:GB. You can increase the storage capacity in increments of 5 GB.
zh-cn: 單位:GB,每 5GB 進行遞增
effectiveTime:
Type: String
Label:
en: EffectiveTime
zh-cn: 變更生效時間
Description:
en: |-
<div><p>The time when the configuration change takes effect:</p>
<ul>
<li><strong>Immediate</strong>: The configuration change takes effect immediately.</li>
<li><strong>MaintainTime</strong>: The configuration change takes effect during the maintenance window.</li>
</ul>
</div>
zh-cn: |-
<div><p>配置變更生效時間:</p>
<ul>
<li><strong>Immediate</strong>:配置變更生效立即生效。</li>
<li><strong>MaintainTime</strong>:配置變更生效于維護時間段。</li>
</ul>
</div>
AllowedValues:
- Immediate
- MaintainTime
Default: Immediate
rateControl:
Label:
en: RateControl
zh-cn: 任務執行的并發比率
Type: Json
AssociationProperty: RateControl
Default:
Mode: Concurrency
MaxErrors: 0
Concurrency: 10
OOSAssumeRole:
Label:
en: OOSAssumeRole
zh-cn: OOS扮演的RAM角色
Type: String
Default: ''
RamRole: '{{ OOSAssumeRole }}'
Tasks:
- Name: getInstance
Description:
en: Get the RDS instances
zh-cn: 獲取RDS實例
Action: ACS::SelectTargets
Properties:
ResourceType: ALIYUN::RDS::Instance
RegionId: '{{ regionId }}'
Filters:
- '{{ targets }}'
Outputs:
instanceIds:
Type: List
ValueSelector: Instances.Instance[].InstanceId
- Name: modifyDBInstanceSpec
Action: ACS::RDS::ModifyDBInstanceSpec
Description:
en: Modify RDS instance spec
zh-cn: 變更RDS實例
Properties:
regionId: '{{ regionId }}'
dBInstanceId: '{{ ACS::TaskLoopItem }}'
dBInstanceClass: '{{ dBInstanceClass }}'
dBInstanceStorage: '{{ dBInstanceStorage }}'
dBInstanceStorageType: '{{ dBInstanceStorageType }}'
effectiveTime: '{{ effectiveTime }}'
Loop:
RateControl: '{{ rateControl }}'
Items: '{{ getInstance.instanceIds }}'
Metadata:
ALIYUN::OOS::Interface:
ParameterGroups:
- Parameters:
- regionId
- targets
Label:
default:
zh-cn: 選擇實例
en: Select RDS Instances
- Parameters:
- dBInstanceStorageType
- dBInstanceClass
- dBInstanceStorage
- effectiveTime
Label:
default:
zh-cn: 配置參數
en: Configuration
- Parameters:
- rateControl
- OOSAssumeRole
Label:
default:
zh-cn: 高級選項
en: Control Options
文檔內容是否對您有幫助?