ApsaraDB for MongoDB mendukung peningkatan versi utama database Anda. Sebelum melakukan peningkatan, tentukan versi utama tujuan yang dapat ditingkatkan oleh instans Anda berdasarkan arsitektur layanan dan versi saat ini, serta tinjau perubahan kompatibilitas antar versi utama.
Jalur peningkatan yang didukung
Anda dapat meningkatkan versi utama database di Konsol ApsaraDB for MongoDB. Namun, versi tujuan yang tersedia bervariasi tergantung pada arsitektur instans, tipe instans, dan versi saat ini. Rinciannya sebagai berikut:
Architecture
Instance type
Current major version
Available upgrade versions
Standalone architecture
General-purpose with cloud disk
MongoDB 4.0
No higher major version is available for upgrade.
General-purpose with cloud disk
MongoDB 3.4
In-place upgrade is not supported.
To upgrade the major version, you can create a new instance and use it to replace the original instance.
Replica set architecture
General-purpose with cloud disk
Dedicated with cloud disk
MongoDB 8.0
MongoDB 8.3 (Submit a ticket to apply)
MongoDB 7.0
MongoDB 8.0
MongoDB 6.0
MongoDB 7.0
MongoDB 5.0
MongoDB 6.0
MongoDB 4.4
MongoDB 5.0
When you upgrade an instance from v4.4 to v5.0, the default writeConcern changes from
{w:1}to{w:majority}. This may cause a decrease in write performance and an increase in write latency. Confirm this impact is acceptable before you upgrade.General-purpose with local disk
Dedicated with local disk
Dedicated Physical Server
MongoDB 4.2
In-place upgrade is not supported.
To upgrade the major version, you can create a new instance and use it to replace the original instance.
MongoDB 4.0
MongoDB 4.2
MongoDB 3.4
MongoDB 4.0
MongoDB 4.2
MongoDB 3.2
MongoDB 3.0
Sharded cluster architecture
Dedicated with cloud disk
MongoDB 8.0
MongoDB 8.3 (Submit a ticket to apply)
MongoDB 7.0
MongoDB 8.0
MongoDB 6.0
MongoDB 7.0
MongoDB 5.0
MongoDB 6.0
MongoDB 4.4
MongoDB 5.0
When you upgrade an instance from v4.4 to v5.0, the default writeConcern changes from
{w:1}to{w:majority}. This may cause a decrease in write performance and an increase in write latency. Confirm this impact is acceptable before you upgrade.General-purpose with local disk
Dedicated with local disk
Dedicated Physical Server
MongoDB 4.2
In-place upgrade is not supported.
To upgrade the major version, you can create a new instance and use it to replace the original instance.
MongoDB 4.0
MongoDB 4.2
MongoDB 3.4
MongoDB 4.0
MongoDB 4.2
MongoDB 3.2
MongoDB 3.0
Jika Anda perlu meningkatkan versi utama melintasi arsitektur atau tipe penyimpanan yang berbeda, pertama-tama buat instans dengan versi utama target, lalu gunakan Data Transmission Service (DTS) untuk memigrasikan data dari sumber ke instans baru tersebut.
Lihat topik-topik berikut untuk instruksi migrasi data:
Perubahan kompatibilitas antar versi utama
Perubahan kompatibilitas antar versi utama database adalah sebagai berikut:
Instans harus dalam status Running agar dapat ditingkatkan versi utama databasenya. Untuk instruksi selengkapnya, lihat Upgrade database version.
Menurunkan spesifikasi setelah peningkatan versi utama tidak didukung.
MongoDB 4.0 dan versi setelahnya kompatibel dengan fitur MongoDB 3.6. Untuk menggunakan fitur MongoDB 3.6, tingkatkan ke MongoDB 4.0 atau versi yang lebih baru.
Catatan kompatibilitas ini hanya mencakup perubahan pada kernel ApsaraDB for MongoDB, bukan perubahan pada fitur manajemen instans.
Major database version | Compatibility changes |
MongoDB 8.3 |
Untuk informasi lebih lanjut tentang MongoDB 8.3, lihat Compatibility Changes in MongoDB 8.3. |
MongoDB 8.0 |
Untuk informasi lebih lanjut tentang MongoDB 8.0, lihat Compatibility Changes in MongoDB 8.0. |
MongoDB 7.0 |
Untuk informasi lebih lanjut tentang MongoDB 7.0, lihat Compatibility Changes in MongoDB 7.0. |
MongoDB 6.0 |
Untuk informasi lebih lanjut tentang MongoDB 6.0, lihat Compatibility Changes in MongoDB 6.0. |
MongoDB 5.0 |
Untuk informasi lebih lanjut tentang MongoDB 5.0, lihat Compatibility Changes in MongoDB 5.0. |
MongoDB 4.4 |
Untuk informasi lebih lanjut tentang MongoDB 4.4, lihat Compatibility Changes in MongoDB 4.4. |
MongoDB 4.2 |
Untuk informasi lebih lanjut tentang MongoDB 4.2, lihat MongoDB 4.2 compatibility update notes. |
MongoDB 4.0 |
Untuk informasi lebih lanjut tentang MongoDB 4.0, lihat MongoDB 4.0 compatibility update notes. |
MongoDB 3.6 |
Untuk informasi lebih lanjut tentang MongoDB 3.6, lihat MongoDB 3.6 compatibility update notes. |
MongoDB 3.4 |
Untuk informasi lebih lanjut tentang MongoDB 3.4, lihat MongoDB 3.4 compatibility changes. |
API terkait
Interface | Description |
Upgrades the major database version of an ApsaraDB for MongoDB instance. |