You can access the tutorial artifact including deployment script (Terraform), related source code, sample data and instruction guidance from the github project.
More tutorial around Alibaba Cloud Database, please refer to this link.
If you are the 1st time to use Terraform, please refer to this link to learn how to install and use the Terraform on different operating systems.
Run the terraform script to provision the resources and services.
Open 2 CLI windows and log on them to ECS with ECS EIP
. By default, the password is N1cetest
, which is preset in the terraform provision script in Step 1. If you've already changed it, please update accordingly.
ssh root@<ECS_EIP>
Within one CLI window, edit and configure source_rdsmysql_app.py with connection to RDS MySQL, then run it as the OLTP demo application.
cd ~
vim source_rdsmysql_app.py
Then run this Python script as the OLTP demo application, which will be continuously inserting data into the RDS MySQL database.
python3 source_rdsmysql_app.py
Within another CLI window, edit and configure target_adbmysql_app.py with connection to AnalyticDB MySQL, then run it as the OLAP demo application.
cd ~
vim target_adbmysql_app.py
Then run this Python script as the OLAP demo application, which will be continuously querying data from the AnalyticDB MySQL data warehouse.
python3 target_adbmysql_app.py
Quick Path to Build BI Dashboard with Cube, React and RDS PostgreSQL
Quick Path to Create RDS SQL Server Enterprise Edition Primary Instance and Read-Only Instance
ApsaraDB - June 18, 2021
ApsaraDB - April 19, 2019
ApsaraDB - February 24, 2025
ApsaraDB - August 12, 2020
Alibaba Clouder - July 7, 2020
ApsaraDB - April 10, 2024
Alibaba Cloud PolarDB for MySQL is a cloud-native relational database service 100% compatible with MySQL.
Learn MoreTair is a Redis-compatible in-memory database service that provides a variety of data structures and enterprise-level capabilities.
Learn MoreApsaraDB for HBase is a NoSQL database engine that is highly optimized and 100% compatible with the community edition of HBase.
Learn MoreProtect, backup, and restore your data assets on the cloud with Alibaba Cloud database services.
Learn MoreMore Posts by ApsaraDB