Memigrasikan instans ApsaraDB for Tair (kompatibel Redis OSS) ke zona lain dalam region yang sama.
Deskripsi operasi
Sebelum Anda memanggil operasi ini, Anda harus melepaskan endpoint publik dari instans. Untuk informasi selengkapnya, lihat Memigrasikan instans ke zona lain.
Jika instans dialihkan dari jaringan klasik ke virtual private cloud (VPC) dan endpoint jaringan klasik dipertahankan, Anda harus menunggu hingga endpoint jaringan klasik dilepaskan setelah kedaluwarsa sebelum Anda dapat memigrasikan instans ke zona lain.
Setelah migrasi, endpoint instans tetap tidak berubah, tetapi VIP berubah. Dalam bisnis Anda, gunakan endpoint sebagai pengganti VIP untuk terhubung ke instans.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:MigrateToOtherZone |
update |
*DBInstance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID instans. |
r-bp1zxszhcgatnx**** |
| ZoneId |
string |
Yes |
ID zona utama tujuan tempat Anda ingin memigrasikan instans. Anda dapat memanggil operasi DescribeZones untuk menanyakan ID zona. |
cn-hangzhou-g |
| VSwitchId |
string |
No |
ID vSwitch. Catatan
|
vsw-bp1e7clcw529l773d**** |
| EffectiveTime |
string |
No |
Waktu saat database dialihkan setelah migrasi data selesai. Nilai yang valid:
Catatan
Nilai default: Immediately. |
Immediately |
| SecondaryZoneId |
string |
No |
ID zona sekunder tujuan tempat Anda ingin memigrasikan instans. Anda dapat memanggil operasi DescribeZones untuk menanyakan ID zona. Catatan
Anda dapat menentukan parameter ini untuk men-deploy node data utama dan sekunder di zona yang berbeda guna menerapkan pemulihan bencana lintas zona dan bertahan dari kegagalan tingkat pusat data. |
cn-hangzhou-h |
| ReplicaCount |
integer |
No |
Jumlah node replika di zona utama. Catatan
|
1 |
| SlaveReplicaCount |
integer |
No |
Jumlah node replika di zona sekunder. |
1 |
| ReadOnlyCount |
integer |
No |
Jumlah node read-only di zona utama. Catatan
|
1 |
| SlaveReadOnlyCount |
integer |
No |
Jumlah node read-only di zona sekunder. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
29B0BF34-D069-4495-92C7-FA6D9452**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "29B0BF34-D069-4495-92C7-FA6D9452****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NetworkType.NotSupport | Specified network type does not support this operation. | |
| 400 | InstanceStatus.NotSupport | Instance status does not support this operation. | |
| 400 | MissingSwitchId | VSwitchId is mandatory for this action. | |
| 400 | IzNotSupportVpcError | Specify zone not support VPC. | |
| 400 | InvalidReginAvzNotFound | Specified user does not find the region and zone. | |
| 400 | ClusterNotSupport | The Specified cluster does not support. | |
| 400 | InvalidVSwitchId.Mismatch | The Specified vSwitchId does not matched VPC. | |
| 400 | InvalidIzNo.NotSupported | The Specified Zone does not supported. | |
| 500 | VpcServiceError | Invoke VPC service failed. | |
| 500 | ZoneMigrationError.StillingRunning | Zone migration task is still running. | |
| 404 | DBInstanceNotFound | Specified instance does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.