Memigrasikan instans Tair (kompatibel dengan Redis OSS) ke zona lain dalam wilayah yang sama.
Deskripsi operasi
Sebelum memanggil operasi ini, Anda harus melepas titik akhir publik (jika ada) dari instans tersebut. Untuk informasi selengkapnya, lihat Migrasikan instans antar zona.
-
Jika jenis jaringan instans Tair (kompatibel dengan Redis OSS) diubah dari jaringan klasik ke Virtual Private Cloud (VPC), dan titik akhir jaringan klasik tetap dipertahankan, Anda hanya dapat memigrasikan instans tersebut antar zona setelah titik akhir jaringan klasik dilepas saat masa berlakunya habis.
-
Setelah instans dimigrasikan, titik akhir instans tetap tidak berubah. Namun, alamat IP virtual (VIP) akan berubah. Disarankan agar Anda menggunakan titik akhir, bukan VIP, untuk menghubungkan ke instans tersebut.
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 Tair (kompatibel dengan Redis OSS). |
r-bp1zxszhcgatnx**** |
| ZoneId |
string |
Yes |
ID zona primary tujuan. Anda dapat memanggil operasi DescribeZones untuk menanyakan ID zona. |
cn-hangzhou-g |
| VSwitchId |
string |
No |
ID vSwitch. Catatan
|
vsw-bp1e7clcw529l773d**** |
| EffectiveTime |
string |
No |
Waktu pergantian database setelah instans dimigrasikan. Nilai yang valid:
Catatan
Nilai default: Immediately. |
Immediately |
| SecondaryZoneId |
string |
No |
ID zona secondary tempat Anda ingin memigrasikan instans tersebut. Anda dapat memanggil operasi DescribeZones untuk menanyakan ID zona. Catatan
Jika Anda menentukan parameter ini, node master dan node replika instans dapat ditempatkan di zona yang berbeda dan disaster recovery diimplementasikan antar zona. Instans tersebut dapat menahan kegagalan di pusat data. |
cn-hangzhou-h |
| ReplicaCount |
integer |
No |
Jumlah node replika di zona primary. Catatan
|
1 |
| SlaveReplicaCount |
integer |
No |
Jumlah node replika di zona secondary. |
1 |
| ReadOnlyCount |
integer |
No |
Jumlah read replica di zona primary. Catatan
|
1 |
| SlaveReadOnlyCount |
integer |
No |
Jumlah read replica di zona secondary. |
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.