HUAWEI CLOUD Services - Relational Database Service
HUAWEI CLOUD Services - Relational Database Service
1 Huawei Confidential
Objectives
2 Huawei Confidential
Contents
3 Huawei Confidential
HUAWEI CLOUD Database Portfolio
Relational database services Non-relational database services
Database tools
Huawei- Open-
developed source
4 Huawei Confidential
Contents
▫ GaussDB(openGauss)
▫ GaussDB(for MySQL)
5 Huawei Confidential
RDS for MySQL Introduction
MySQL is one of the world's most popular open-source relational databases. It works with
Linux, Apache, and PHP to establish a LAMP stack, thereby providing efficient web solutions.
RDS for MySQL is reliable, scalable, easy to manage, and immediately ready to use, letting
you focus on developing your services.
6 Huawei Confidential
RDS for MySQL Key Features
Feature Description
• Database type and version: MySQL 5.6, 5.7, and 8.0
DBA Delivery and O&M Developer User • Data security: Multiple security measures such as VPCs, subnets,
personnel security groups, VPNs, and SSL certificates protect databases and
Manage Deploy Develop Access user privacy.
• Database reliability: Three-copy data storage ensures up to 9 nines
Application of database data reliability and up to 11 nines of backup data
reliability.
• High availability (intra-city disaster recovery): Primary/standby DB
RDS console Read/write Read only
instances are deployed within an AZ or across AZs, ensuring service
Backup availability over 99.95%.
Instance
Launch
management Failover • DB instance access: Multiple access methods are provided, such as
Instance access Primary Standby floating IP addresses, public IP addresses, or VPNs.
instance Read replica
Backup & restoration Monitor instance • DB instance management: DB instances can be added, deleted,
Instance monitoring
Scale
Replication modified, or queried.
Elastic scaling • DB instance monitoring: Key performance metrics of DB instance
Log management OSs and DB engines are monitored. These metrics include the CPU
Parameter usage, memory usage, storage space usage, I/O activity, database
configuration connections, QPS, TPS, buffer pools, and read/write activities.
Storage Storage Storage
7 Huawei Confidential
RDS for MySQL Application Scenarios
Internet, e-commerce, and gaming
8 Huawei Confidential
Contents
▫ GaussDB(openGauss)
▫ GaussDB(for MySQL)
9 Huawei Confidential
Introduction to RDS for PostgreSQL
PostgreSQL
PostgreSQL, or "PG", evolved from POSTGRES at the
University of California, Berkeley. After more than 30
years of development, PostgreSQL has become the
most powerful open-source database in the world. It
has earned a reputation for reliability, stability, and
data consistency, and has become the preferred
choice as an open-source relational database for
many enterprises.
11 Huawei Confidential
RDS for PostgreSQL Application Scenarios
Websites
Application
scenarios
Location- Complex
based data
applications processing
12 Huawei Confidential
Contents
▫ GaussDB(for MySQL)
13 Huawei Confidential
Introduction to GaussDB(openGauss)
• With the rapid development of mobile and Internet services, the user and transaction volume in the
traditional finance sector has exploded. For high-volume online transaction processing,
GaussDB(openGauss) uses sharding to meet the requirements for horizontal expansion. It breaks
storage and performance bottlenecks of single databases, and adapts to the peak traffic access
requirements of many Internet services. A geo-redundant deployment solution is provided to
Background prevent single points of failure, site-level failures, or even city-level disasters.
14 Huawei Confidential
GaussDB(openGauss) Key Features
High High
High High performance compatibility Integrated
availability scalability Support for standard
syntax: SQL-92,
solution
Based on the Kunpeng 920
processor, a single database SQL:1999, and SQL:2003; Pre-integration and
Strong consistency highly compatible with
Failover time < 10s; delivers 30% higher pre-optimization,
in distributed mode; common SQL syntax of
support for performance than top unleashing high
TPC-C expansion top commercial
flashback databases and distributed 16- performance of
ratio > 0.8 databases;
node TPC-C test can reach Kunpeng hardware
tens of millions of tpmC. support for offline/online
migration
15 Huawei Confidential
GaussDB(openGauss) Application Scenarios
Flume
Data Push
Hive Spark Ad hoc query
GaussDB
Cloud service
File
log data HDFS
access Dataload
gateway
Batch computing cluster Metadata
Flume management model
development
Data Push
Kafka Stream processing cluster (spark streaming)
16 Huawei Confidential
Contents
▫ GaussDB(openGauss)
GaussDB(for MySQL)
17 Huawei Confidential
Introduction to GaussDB(for MySQL)
GaussDB(for MySQL)
18 Huawei Confidential
GaussDB(for MySQL) Key Features
19 Huawei Confidential
GaussDB(for MySQL) Application Scenarios
capacity expansion
20 Huawei Confidential
Contents
▫ RDS Usage
21 Huawei Confidential
Introduction to RDS
• RDS is an online relational database service managed on the cloud. It is reliable, scalable,
inexpensive, easy to manage, and immediately ready for use. RDS supports MySQL,
PostgreSQL, and Microsoft SQL Server DB instances that can be deployed in standalone or
Definition primary/standby mode. DB instances can be created on the RDS console within minutes.
• RDS also provides database O&M functions, such as high availability, disaster recovery,
backup and restoration, elastic scaling, and performance monitoring.
Features and • RDS significantly reduces the complexity and cost of database O&M, allowing you to focus
on developing their applications.
Advantages
22 Huawei Confidential
Comparison of Cloud Databases and Other Database
Solutions
Self-built databases V.S. Databases on cloud servers V.S. Cloud databases
• Purchase and installation of servers • Purchase and installation of • No need to purchase and install any
and systems database software hardware and software
• Equipment room hosting fees • Cloud server rent fees • Focusing on database architecture design
• OS and database O&M • Database O&M • Focusing on database application optimization
Database architecture design Database architecture design Database architecture design
OS version upgrade and patch installation OS version upgrade and patch installation OS version upgrade and patch installation
Handled by users Handled by DBAs and cloud services Handled by cloud services
23 Huawei Confidential
RDS Application Scenarios
Scenario Description
Websites for online gaming, e-commerce, e-government, enterprise portals, social media
Internet websites platforms, and community forums can be migrated to HUAWEI CLOUD, where RDS can quickly
provide easy-to-use and secure database services with low cost and high performance.
RDS can provide reliable database analysis capabilities for IoT applications, such as Internet of
Internet of Things
Vehicles (IoV) applications that need to connect, monitor, and manage a large number of
(IoT)
terminal devices.
Software developers can set up a development and testing environment on HUAWEI CLOUD. In
Dev/Test this way, they can directly use stable, reliable RDS with various specifications to perform joint
tests instead of building databases by themselves, which takes much time and high costs.
Service systems such as enterprise office applications and SaaS applications can be migrated to
Enterprise application
HUAWEI CLOUD on which RDS can manage service data and reduce IT construction costs and
systems
maintenance workload. In addition, you can work or use the SaaS service anytime, anywhere.
RDS enables you to add and configure mobile apps to their terminals. Moreover, RDS can
Mobile apps
authenticate identities and store, push, release, and analyze data.
24 Huawei Confidential
RDS Advantages
Ready
for use
Reliable Secure
Easy to
Scalable
manage
25 Huawei Confidential
RDS Product Architecture
27 Huawei Confidential
RDS and Related Services
28 Huawei Confidential
Contents
▫ RDS Usage
29 Huawei Confidential
RDS Highlights
Inexpensive
High-
performance Highlights Reliable
Secure
30 Huawei Confidential
RDS Key Feature - High Availability
Advantages
RDS can provide high availability and failover support for DB
Read/write
instances with just a few clicks.
Solutions
Data replication The primary DB instance is asynchronously or semi-
Read/write
synchronously replicated to the standby DB instance.
If the primary DB instance fails, RDS quickly and automatically
Storage Storage switches over to the standby DB instance and continues to serve
database read and write requests. After the failover is complete,
the direction of the replication between the primary and
standby DB instances is reversed.
31 Huawei Confidential
RDS Key Feature - Backup and Restoration
Advantages
Read/write
Compute Compute
Although RDS supports high availability, if a database or
Failover table is maliciously or mistakenly deleted from the primary
Primary Standby
instance instance DB instance, data on the standby DB instance is also
Data deleted. In this case, RDS uses backups to restore DB
Read/write replication
instances.
Storage Storage
Backup
Solutions
Automated backups: automatically created during a
specific, user-definable backup window.
Manual backups: user-initiated backup jobs that back up
Backup
DB instances to a particular known state.
32 Huawei Confidential
RDS Key Feature - Instance Monitoring
Advantages
View metrics or DBA
set alarm rules
You can track the performance and health of RDS DB
Manage
instances.
Cloud Eye console Alarm
RDS console
Solutions
Connect Instance management Cloud Eye displays the performance and health of DB
Backup management instances for free.
Task center RDS monitors active DB instances and sends raw
performance data and dimensions to Cloud Eye.
33 Huawei Confidential
Contents
34 Huawei Confidential
DB Instance Lifecycle Management
The basic building block of RDS is the DB instance. A DB instance is an isolated database environment in the cloud. A DB
instance can contain multiple user-created databases, and you can access it using the same tools and applications that you
use with a stand-alone DB instance. You can use the RDS console or API to create and modify a DB instance.
Create
Create:
Delete:
Delete Query Buy DB instances
Delete DB
instances Connect to DB instances
Configure network information and
security policies
Reboot Modify
Back up databases
Reboot: Modify:
Reboot DB Scale up storage space Query:
instances
Change instance classes Query DB instance details
(CPU and memory)
Query monitoring metrics of DB instances
Restore DB instances
Query database logs
Configure instance
parameters
Change instance names
35 Huawei Confidential
Create - Buying an RDS DB Instance
Scenarios
This page describes how to quickly buy an RDS DB instance.
Procedure
1. Log in to the management console.
2. Click Service List. Under Database, click Relational Database Service. The RDS console is displayed.
4. On the displayed page, select a billing mode and configure information about the DB instance, storage, and network. Then, click Next.
5. If the DB instance is billed on the pay-per-use basis, confirm the specifications. If the DB instance is billed on the yearly/monthly basis, confirm the
order.
6. After the DB instance is created, you can view and manage it on the Instance Management page.
After the DB instance is created, the DB engine cannot be changed. Therefore, exercise caution when selecting a DB engine.
An automated backup policy is enabled by default. After the DB instance is created, you can modify this policy as required. An automated full backup is
immediately triggered after the DB instance is created.
The default database port is 3306. After the DB instance is created, you can change the port.
36 Huawei Confidential
Create - Connecting to an RDS DB Instance
Scenarios
You can connect to and manage RDS DB instances using the DAS service or other database clients. By default, you have the
permissions required for remote login. It is recommended that you use the DAS service to connect to and manage DB
instances, which is more secure and convenient. You can also connect to RDS DB instances through a floating IP address or an
EIP.
This page describes how to connect to an RDS DB instance using the DAS service. For details on how to connect to a DB
instance using a database client, see "Connecting to a DB Instance" in the Getting Started with RDS.
Procedure
3. Click Service List. Under Database, click Relational Database Service to go to the RDS console.
4. On the Instance Management page, locate the target DB instance and click Log In in the Operation column.
5. On the displayed login page, enter the correct username and password and click Log In.
37 Huawei Confidential
Query - Querying DB Instance Details
Scenarios
You can use DAS to query details of your DB instances.
Procedure
2. On the displayed Basic Information page, view information about the DB instance, connection,
storage/backup space, and billing.
38 Huawei Confidential
Modify - Changing a DB Instance Class
Scenarios
You can change the DB instance class (CPU and memory) as required. Once the change is complete, the status of a DB
instance changes from Changing instance class to Available.
Procedure
1. Log in to the management console.
2. Select a region and a project.
3. Click Service List. Under Database, click Relational Database Service to go to the RDS console.
4. On the Instance Management page, locate the target DB instance and click Scale in the Operation column. Alternatively, click
the target DB instance to go to the Basic Information page. In the DB Information area, click Change in the Instance Class
field.
5. On the displayed page, specify the desired instance class and scheduled time, and click Next.
6. Confirm specifications.
7. View the DB instance class change result.
On the Instance Management page, the instance status becomes Changing instance class. After 5 to 15 minutes, check whether
the change is successful by viewing the instance class on the Basic Information page of the target DB instance.
39 Huawei Confidential
Modify - Scaling Up Storage Space
Scenarios
You can scale up storage space if it is no longer sufficient for your requirements. If the DB instance status is Storage full and
data cannot be written to databases, you need to scale up storage space. The instance needs to preserve at least 15% of its
capacity to work properly. The new minimum storage space required to make this instance available has been automatically
calculated for you.
Procedure
1. Log in to the management console.
2. Click in the upper left corner and select a region and a project.
3. Click Service List. Under Database, click Relational Database Service. The RDS console is displayed.
4. On the Instance Management page, locate the target DB instance and choose More > Scale Storage Space in the Operation
column.
5. On the displayed page, specify the new storage space and click Next.
6. Confirm specifications.
40 Huawei Confidential
Modify - Configuring Instance Parameters
Scenarios
You can modify parameters in custom parameter groups as needed.
Procedure
3. Click Service List. Under Database, click Relational Database Service to go to the RDS console.
6. After parameters are modified, click Change History to view parameter modification details.
41 Huawei Confidential
Rebooting a DB Instance
Scenarios
You may need to reboot a DB instance during maintenance. For example, if a DB instance is abnormal, you can try rebooting
it to restore its status to Available. After modifying parameters, you may need to reboot the DB instance for the modifications
to take effect. You can reboot a primary DB instance or a read replica on the RDS console.
Procedure
1. Log in to the management console.
2. Select a region and a project.
3. Click Service List. Under Database, click Relational Database Service to go to the RDS console.
4. On the Instance Management page, locate the target DB instance or read replica and choose More > Reboot in the
Operation column.
5. If you have enabled operation protection, in the displayed dialog box, click Send Code, enter the obtained verification code,
and click OK. The page then automatically closes.
6. In the displayed dialog box, click OK.
7. Refresh the DB instance list and view the status of the DB instance. If its status is Available, it has been rebooted successfully.
42 Huawei Confidential
Deleting a Pay-per-Use DB Instance
Scenarios
If the following types of DB instances are no longer used, you can manually delete them:
Primary instances
Read replicas
Procedure
1. Log in to the management console.
2. Select a region and a project.
3. Click Service List. Under Database, click Relational Database Service to go to the RDS console.
4. Locate the primary DB instance or read replica to be deleted and choose More > Delete in the Operation
column.
5. If you have enabled operation protection, in the displayed dialog box, click Send Code, enter the obtained
verification code, and click OK. The page is closed automatically.
6. In the displayed dialog box, click Yes. Refresh the Instance Management page later to confirm that the DB
instance or read replica has been deleted.
43 Huawei Confidential
FAQs (1)
1. What are the precautions when using RDS?
DB instance operating systems are invisible to users. Your applications can only see the
database IP address and port.
The backup files stored in OBS and the ECS where the RDS resides are invisible to users. They
are only visible to the RDS instance management system.
After buying an RDS DB instance, you do not need to perform basic database O&M operations,
such as configuring high availability or installing security patches, but you should:
Check whether the vCPUs, IOPS, and storage space are sufficient. If any of them is
insufficient, change the DB instance class or scale up storage space.
Check whether RDS DB instances have performance issues, whether there are a large number
of slow SQL statements, whether SQL statements need to be optimized, and whether there
are redundant or missing indexes.
44 Huawei Confidential
FAQs (2)
1. How many DB instances can run on RDS?
RDS has no limit on the number of running DB instances.
45 Huawei Confidential
FAQs (3)
1. Is MySQL compatible with MariaDB?
• MariaDB is a community-developed, commercially supported fork of the MySQL relational database
management system (RDBMS), intended to remain free and open-source software under the GNU General
Public License (GPL). Development is led by some of the original developers of MySQL, who forked it due
to concerns over its acquisition by Oracle Corporation in 2009. MariaDB intended to maintain high
compatibility with MySQL, ensuring a drop-in replacement capability with MySQL APIs and commands.
MariaDB also provides many better new features. In terms of storage engine, XtraDB is used to replace
InnoDB of MySQL and is fully compatible with InnoDB. InnoDB tables will be converted to XtraDB by
default in MariaDB.
• MariaDB is compatible with MySQL in most aspects. There is no difference for front-end applications (such
as PHP, Perl, Python, Java, .NET, MyODBC, Ruby and MySQL C connector).
46 Huawei Confidential
Summary
47 Huawei Confidential
Quiz
B. GaussDB(for Mongo)
C. GaussDB(for Influx)
D. GaussDB(for MySQL)
48 Huawei Confidential
More Information
For details about basic RDS operations, see the HUAWEI CLOUD database
documentation.
https://support.huaweicloud.com/intl/en-us/productdesc-rds/en-
us_topic_dashboard.html
49 Huawei Confidential
Recommendations
50 Huawei Confidential
Thank you. 把数字世界带入每个人、每个家庭、
每个组织,构建万物互联的智能世界。
Bring digital to every person, home, and
organization for a fully connected,
intelligent world.