AWS Database Migration Service: Solusi Migrasi Database ke AWS Cloud Tanpa Downtime

Posted by taufik

October 22, 2024

AWS Database Migration Service (AWS DMS) adalah layanan dari AWS yang membantu migrasi database ke AWS dengan cepat dan aman. Dengan AWS DMS, Anda dapat merencanakan, menilai, mengonversi, dan memigrasi database serta sistem analitik secara efisien, sehingga menghemat waktu, tenaga, dan biaya. 

Selama proses migrasi, database sumber tetap beroperasi normal, sehingga aplikasi yang bergantung padanya tidak akan mengalami downtime. AWS DMS juga mendukung migrasi data dari dan ke berbagai database komersial dan open-source yang populer. 

Dengan AWS DMS, Anda dapat melakukan replikasi data secara terus-menerus dengan latensi rendah dari sumber ke target yang didukung. Layanan ini mencakup migrasi homogen (seperti Oracle ke Oracle) dan heterogen (seperti Oracle ke Amazon Aurora atau SQL Server ke Amazon RDS). 

Anda dapat mereplikasi data dari satu database ke beberapa database atau menggabungkan data dari beberapa sumber ke satu atau lebih database. AWS DMS juga sangat efektif untuk memindahkan database dari on-premises ke AWS, migrasi antar jenis database, dan membangun solusi pemulihan bencana. 

Selain itu, layanan ini dilengkapi dengan fitur AWS DMS Schema Conversion yang membantu mengonversi skema dan kode sumber, serta AWS DMS Serverless yang secara otomatis menangani penyediaan, pemantauan, dan penskalaan sumber daya, sehingga menjadikan proses migrasi lebih mudah dan praktis. 

Jenis Migrasi AWS Database Migration Service

Migrasi Homogen 

Migrasi homogen adalah proses memindahkan data antara database yang memiliki tipe atau format yang sama. Contohnya, jika Anda berpindah dari satu database MySQL ke database MySQL lainnya, proses ini menjadi lebih sederhana karena struktur skema dan tipe data di kedua database tersebut sudah sama. 

Migrasi Heterogen 

Migrasi heterogen adalah proses memindahkan data dari satu database ke database lain yang memiliki tipe atau format berbeda. Misalnya, jika Anda memindahkan data dari database MySQL ke PostgreSQL, Anda perlu melakukan transformasi skema dan kode terlebih dahulu karena struktur skema dan tipe data di kedua database tersebut tidak sama. 

Keuntungan AWS Database Migration Service

Mudah digunakan

AWS DMS dirancang agar sederhana dan mudah dipakai. Anda tidak perlu menginstal driver atau aplikasi tambahan, dan biasanya tidak perlu mengubah database sumber. Cukup dengan beberapa klik di AWS Management Console, Anda dapat memulai migrasi database. 

Downtime minimal

AWS DMS melakukan migrasi database ke AWS dengan hampir tanpa downtime. Selama proses migrasi, semua perubahan data di database sumber secara otomatis diperbarui di database target, sehingga database sumber tetap aktif selama migrasi. 

Hemat biaya

Biaya AWS DMS cukup terjangkau. Anda hanya membayar untuk sumber daya yang digunakan selama migrasi dan penyimpanan log tambahan. 

Tangguh dan andal

AWS DMS sangat dapat diandalkan dengan kemampuan pemulihan otomatis. Layanan ini terus memantau koneksi jaringan, serta database sumber dan target. Jika terjadi masalah, migrasi akan dilanjutkan otomatis dari end-point tanpa kehilangan data. Selain itu, AWS DMS menawarkan opsi Multi-AZ untuk memastikan ketersediaan tinggi dengan menggunakan instance replikasi cadangan. 

Replikasi berkelanjutan

DMS mendukung migrasi berkelanjutan. Replikasi berkelanjutan menjaga agar database sumber dan target tetap sinkron dengan latensi rendah, sehingga data selalu diperbarui secara otomatis. Selain itu, replikasi ini berguna untuk berbagai tujuan, seperti sinkronisasi disaster recovery, distribusi database di lokasi berbeda, dan sinkronisasi Dev/Test.  

Konversi Skema dan support multiple engine

AWS DMS memberikan kemampuan untuk mengonversi database dari satu format ke format lainnya. Layanan ini juga mendukung berbagai jenis database, seperti Amazon Aurora, PostgreSQL, MySQL, MariaDB, Oracle, SQL Server, dan SAP ASE, sehingga memberikan fleksibilitas dalam menerapkan strategi migrasi. 

Cara AWS Database Migration Service Bekerja

The following diagram illustrates the AWS DMS replication process.

Source: https://docs.aws.amazon.com/dms/latest/userguide/Welcome.html 

Proses migrasi dengan AWS Database Migration Service (DMS) dimulai dari database sumber yang berisi data yang ingin dipindahkan. Prosesnya dimulai dengan menghubungkan DMS ke endpoint, yaitu source endpoint dan target database. 

AWS DMS menghubungkan database ini melalui source endpoint yang berfungsi sebagai akses bagi DMS untuk mengambil data dari sumber. Setelah terhubung, instance replikasi menjalankan tugas untuk membaca, memproses, dan memformat data agar sesuai dengan database tujuan. 

Data yang sudah diproses kemudian dikirim melalui target endpoint yang menghubungkan data ke database target. Di sini, data di-load ke dalam database target dengan menjaga agar data tetap konsisten dan sinkron. 

Selama proses ini, AWS DMS juga bisa melakukan replikasi secara terus-menerus untuk memastikan data di database sumber dan target selalu sinkron sampai seluruh proses migrasi selesai. Ini membuat migrasi lebih cepat, aman, dan meminimalkan downtime.   

Best Practices AWS Database Migration Service

Backup data sebelum migrasi

Pastikan data sudah dicadangkan dan uji cadangannya untuk menghindari kehilangan data jika terjadi kesalahan selama proses. 

Rencana

Jangan menyimpang dari rencana awal, baik ketika proses terlihat mudah maupun saat menghadapi kesulitan. Migrasi data bisa rumit, jadi bersiaplah dan ikuti rencana yang telah disusun. 

Uji secara berkala

Lakukan pengujian selama perencanaan, implementasi, dan pemeliharaan untuk memastikan hasil yang diinginkan tercapai. 

Audit dan dokumentasi

Catat dan simpan semua langkah yang diambil selama migrasi sebagai dokumentasi yang lengkap. 

Jadwal migrasi

Rencanakan waktu yang tidak mengganggu operasional bisnis. Pastikan data telah dibersihkan dan dihapus duplikat sebelum dipindahkan untuk menghindari keterlambatan atau biaya tambahan. 

Kapan Harus Menggunakan AWS MGN dan AWS DMS?

AWS Database Migration Service (DMS) dan AWS Application Migration Service (MGN) memiliki tujuan yang berbeda sesuai dengan kebutuhan migrasi Anda. AWS DMS sangat cocok untuk memindahkan atau mereplikasi database dari satu cloud ke AWS Cloud atau antar wilayah AWS. 

Layanan ini ideal bagi Anda yang ingin melakukan upgrade database, seperti beralih dari Oracle ke PostgreSQL, serta untuk replikasi data secara real-time agar database sumber dan target tetap sinkron dengan latensi rendah. Selain itu, DMS dirancang untuk meminimalkan downtime sehingga sangat berguna ketika Anda perlu menjaga layanan tetap berjalan dengan gangguan yang minimal. 

Sementara itu, AWS MGN lebih tepat digunakan untuk migrasi aplikasi secara keseluruhan, bukan hanya database. Layanan ini dapat memindahkan aplikasi yang berjalan di server fisik atau virtual ke AWS, sehingga membantu meningkatkan skalabilitas dan kinerja aplikasi 

AWS MGN juga dapat digunakan untuk migrasi aplikasi berbasis kontainer atau lingkungan multi-tenancy yang lebih kompleks. Oleh karena itu, pemilihan antara AWS DMS dan AWS MGN sebaiknya didasarkan pada kebutuhan spesifik migrasi Anda, apakah lebih fokus pada database atau aplikasi secara keseluruhan. 

Jika Anda ingin melakukan migrasi database maupun aplikasi, sebagai Advanced Partner AWS, Central Data Technology siap membantu Anda memilih layanan migrasi AWS yang paling sesuai dengan kebutuhan Anda. CDT juga dapat mendukung strategi migrasi dan memastikan proses migrasi berjalan lancar, sehingga Anda dapat segera menggunakan layanan AWS sesuai dengan tujuan bisnis Anda. 

Privacy & Policy

PT Central Data Technology (“CDT” or “us”) is strongly committed to ensuring that your privacy is protected as utmost importance to us. https://centraldatatech.com/ , we shall govern your use of this website, including all pages within this website (collectively referred to herein below as this “Website”), we want to contribute to providing a safe and secure environment for visitors.

The following are terms of privacy policy (“Privacy Policy”) between you (“you” or “your”) and CDT. By accessing the website, you acknowledge that you have read, understood and agree to be bound by this Privacy Policy

Use of The Subscription Service by CDT and Our Customers

When you request information from CDT and supply information that personally identifies you or allows us to contact you, you agree to disclose that information with us. CDT may disclose such information for marketing, promotional and activity only for the purpose of CDT and the Website.

Collecting Information

You are free to explore the Website without providing any personal information about yourself. When you visit the Website or register for the subscription service, we provide some navigational information for you to fill out your personal information to access some content we offered.

CDT may collect your personal data such as your name, email address, company name, phone number and other information about yourself or your business. We are collecting your data in some ways, online and offline. CDT collects your data online using features of social media, email marketing, website, and cookies technology. We may collect your data offline in events like conference, gathering, workshop, etc. However, we will not use or disclose those informations with third party or send unsolicited email to any of the addresses we collect, without your express permission. We ensure that your personal identities will only be used in accordance with this Privacy Policy.

How CDT Use the Collected Information

CDT use the information that is collected only in compliance with this privacy policy. Customers who subscribe to our subscription services are obligated through our agreements with them to comply with this Privacy Policy.

In addition to the uses of your information, we may use your personal information to:

  • Improve your browsing experience by personalizing the websites and to improve the subscription services.
  • Send information about CDT.
  • Promote our services to you and share promotional and informational content with you in accordance with your communication preferences.
  • Send information to you regarding changes to our customers’ terms of service, Privacy Policy (including the cookie policy), or other legal agreements

Cookies Technology

Cookies are small pieces of data that the site transfers to the user’s computer hard drive when the user visits the website. Cookies can record your preferences when visiting a particular site and give the advantage of identifying the interest of our visitor for statistical analysis of our site. This information can enable us to improve the content, modifying and making our site more user friendly.

Cookies were used for some reasons such as technical reasons for our website to operate. Cookies also enable us to track and target the interest of our users to enhance the experience of our website and subscription service. This data is used to deliver customized content and promotions within the Helios to customers who have an interest on particular subjects.

You have the right to decide whether to accept or refuse cookies. You can edit your cookies preferences on browser setup. If you choose to refuse the cookies, you may still use our website though your access to some functionality and areas of our website may be restricted.

This Website may also display advertisements from third parties containing links to other websites of interest. Once you have used these links to leave our site, please note that we do not have any control over the website. CDT cannot be responsible for the protection and privacy of any information that you provide while visiting such websites and this Privacy Policy does not govern such websites.

Control Your Personal Data

CDT give control to you to manage your personal data. You can request access, correction, updates or deletion of your personal information. You may unsubscribe from our marketing activity by clicking unsubscribe us from the bottom of our email or contacting us directly to remove you from our subscription list.

We will keep your personal information accurate, and we allow you to correct or change your personal identifiable information through marketing@centraldatatech.com