You are on page 1of 30

HUAWEI CLOUD Service - Relational

Database Service
Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. RDS Overview

2. RDS Key Features

3. RDS Basic Operations

4. FAQs

Page 1 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
What Is RDS?
 RDS is a cloud-based web service that is reliable, scalable, easy to manage,
and immediately ready for use. It provides MySQL, PostgreSQL, and SQL
Server DB instances that can be deployed in single or primary/standby
mode. You can obtain a DB instance on the RDS console within several
minutes.

 RDS also provides some database O&M functions, including high


availability, disaster recovery, database backup and restoration, elastic
scaling, and performance monitoring.

 RDS can significantly reduce the complexity and cost of database O&M,
allowing you to focus on developing your services.

Page 2 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Comparison Between Self-Built Databases and
HUAWEI CLOUD Database
Self-Built Databases V.S. Databases on Cloud Servers V.S. HUAWEI CLOUD Database
• Purchase and install both hardware • Purchase and install • No need to purchase and
and software including servers, database software by install any hardware and
systems, and databases yourself software
• Expensive equipment room • Cloud server rent fees • Only RDS fees
hosting
• High DBA costs • Low DBA costs
• High DBA costs

Application optimization Application optimization Application optimization

Database elastic scaling Database elastic scaling Database elastic scaling

Database high availability Database high availability Database high availability

Data backup and restoration Data backup and restoration


Data backup and restoration
Database software upgrade or patch Database software upgrade or patch
Database software upgrade or patch
installation installation
installation
Database software installation Database software installation
Database software installation
OS version upgrade or patch installation OS version upgrade or patch installation
OS version upgrade or patch installation
OS installation OS installation
OS installation
Server deployment and maintenance Server deployment and maintenance
Server deployment and maintenance
Rack stacking Rack stacking
Rack stacking
Infrastructure (equipment rooms, power Infrastructure (equipment rooms, power
Infrastructure (equipment rooms, power supplies, air conditioners, and networks) supplies, air conditioners, and networks)
supplies, air conditioners, and networks)
Solved by yourself Solved by cloud service providers

Page 3 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Application Scenarios
Scenario Type Description
Internet websites Websites for online gaming, e-commerce, e-government, enterprise portals, social platforms, and
community forums can be migrated to HUAWEI CLOUD on which RDS can quickly provide easy-to-
use and secure database services with low cost and high performance.
Internet of Things RDS can provide reliable database services for IoT applications, such as IoV applications that need
(IoT)
to connect, monitor, and manage a large number of terminal devices.
Development and Software developers can set up a development and testing environment on HUAWEI CLOUD. In
testing
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.
Enterprise Service systems such as enterprise office applications and SaaS applications can be migrated to
application
systems HUAWEI CLOUD on which RDS can manage service data, reduce IT construction costs and
maintenance workload. In addition, you can work or use the SaaS service anytime, anywhere.
Mobile RDS enables you to add and configure mobile applications to your terminals (such as mobile
applications
phones or other mobile devices). Moreover, RDS can authenticate identities and store, push,
release, and analyze data.

Page 4 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Advantages
Read/write
Failover
Compute (automati Compute
c)
Primary Standby
DB DB
instance instance

Data replication
Read/write

Storage Storage

Instant Availability High Reliability High Security

Cloud
resources

Easy Management Elastic Scaling

Page 5 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. RDS Overview

2. RDS Key Features

3. RDS Basic Operations

4. FAQs

Page 6 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Key Features RDS Key Features
 Database types and versions: MySQL 5.6/5.7, PostgreSQL 9.5/9.6/10.0, SQL Server 2016 Web/SP1 Standard/SP1
Enterprise Editions, 2014 SP2 Web/SP2 Standard/SP2 Enterprise Editions, 2008 R2 SP3 Web/R2 SP3 Standard
Editions

 Data security: Supports multiple security policies such as VPCs, subnets, security groups, VPNs, and SSL to protect
database and user privacy.

 Database reliability: Supports three data copies and ensures database data reliability up to nine nines and backup
data reliability up to eleven nines.

 High availability: Deploys primary/standby DB instances in an AZ or across AZs. The service availability is greater
than 99.95%.

 DB instance access: Supports multiple access methods including private IP address access, public IP address access,
and VPN access.

 DB instance management: Supports lifecycle management, such as adding, deleting, modifying, querying, and
rebooting DB instances.

 DB instance monitoring: Monitors key performance metrics of DB instance OSs and DB engines, including CPU,
memory, and storage space usage, I/O activities, the number of database connections, QPS/TPS, buffer pool, and
read/write activities.
Read replicas
 Elastic scaling: Horizontal scaling: Creating or deleting read replicas (up to five). Vertical scaling: Changing the DB
instance class or scaling storage space (up to 2 TB).

 Backup and restoration: Backup: Adding, deleting, querying, and replicating automated, manual, full, and
incremental backups. Restoration: Restoring data to any point in time within the backup retention period or
restoring data to a new or an original DB instance.

 Log management: Supports queries of slow query SQL logs and error logs.

 Parameter configuration: Enables you to adjust DB engine parameter configurations based on monitoring and log
information. You can perform lifecycle management of DB engine parameters in batches, such as adding, deleting,
modifying, querying, resetting, comparing, and replicating parameter groups.
Page 7 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Key Feature – High Availability
Advantages
Read/write Read/write
 RDS can automatically provide high availability and failover capabilities for DB
instances with just a few clicks.

Compute Compute  Primary/standby DB instances provide high availability if the primary DB


instance fails. In addition, you can maintain database services in the planned
Failover
(automatic) system maintenance window to enhance the availability.

 Primary and standby DB instances use independent storage and improve data
Primary DB Standby DB
reliability through adding data redundancy.
instance instance
Measures
Data replication
 According to your settings, the primary DB instance can replicate data to the
standby DB instance in asynchronous or semi-synchronous mode.

 If the primary DB instance fails, RDS can fail over to the standby DB instance

Storage Storage immediately to continue to provide database read and write services. After the
failover, the data replication roles of the primary and standby DB instances are
exchanged.

Page 8 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Key Feature – High Availability
Read/write Advantages

Compute Failover Compute Although RDS supports high availability, if a database or table is maliciously or
(automatic) mistakenly deleted, data on the standby DB instance is also deleted and cannot be
Primary Standby
DB DB
restored. In this case, backups can be used to restore DB instances after data is deleted.
instanc instance
e
Read/write
Data
replication
Measures
Storag Storag
 RDS works with the free Cloud Eye service to display the performance and health
e e
status of DB instances and engines.
Backup
 RDS monitors active DB instances and engines, and sends performance metrics to
Cloud Eye.

 RDS monitors key performance metrics of DB instances and engines, including CPU,
memory, and storage space usage, I/O activities, the number of database
Backup
connections, QPS/TPS, buffer pool, and read/write activities.

 You can be redirected to the Cloud Eye console to view the graphs about DB
instance and engine performance.

Page 9 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Key Feature – DB Instance Monitoring
Advantages
DBA
View monitoring
information Manage  You can know the performance and health status of DB instances and
or set alarm rules RDS console engines in real time.
Cloud Eye Send
console alarms
Overview Measures
Instance  RDS works with the free Cloud Eye service to display the performance
Redirected Management and health status of DB instances and engines.
to
Backup  RDS monitors active DB instances and engines, and sends
Management performance metrics to Cloud Eye.
Data Migration
 RDS monitors key performance metrics of DB instances and engines,
Send
Manage including CPU, memory, and storage space usage, I/O activities, the
raw data

VMVM
DB instances
number of database connections,
read/write activities.
QPS/TPS, buffer pool, and

DB engine  You can be redirected to the Cloud Eye console to view the graphs
DB engine
DB engines about DB instance and engine performance.

Page 10 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Contents
1. RDS Overview

2. RDS Key Features

3. RDS Basic Operations

4. FAQs

Page 11 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
DB Instance Lifecycle Management
DB instances are the smallest management units used by RDS. Each is an isolated database environment
on the cloud. A DB instance can contain multiple user-created databases. You can use the same tool or
program to access these databases. You can use the RDS console or APIs to create DB instances and
manage them easily. Add
Add:

Delete:  Buy DB instances


Delete Query
 Delete DB instances  Connect to DB instances

 Configure network security policies


Reboot Modify  Back up databases

Reboot: Modify:

Scale up storage space Query:


 Reboot DB instances 

 Change DB instance classes


 View DB instance details
 Restore databases
 Monitor DB instances and engines
 Configure DB engine parameters
 Query database logs
 Change associated parameter groups

Page 12 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Buying an RDS DB Instance
Scenarios
You can quickly buy a DB instance on the RDS console.

Procedure

Page 13 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Connecting to an RDS DB Instance
Scenarios
You can connect and manage DB instances using the Data Admin Service (DAS) service or other clients. By default, you
have the remote login permission. It is recommended that you use the DAS service to connect and manage DB instances,
which is more secure and convenient.

This slide uses DAS as an example to describe how to connect to a DB instance. For details about how to connect to a DB
instance through a client, see "Connecting to a DB Instance" in the Relational Database Service Getting Started.

Procedure

Page 14 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Creating a Read Replica
Scenarios
Read replicas are used to enhance the read capabilities of primary DB instances and reduce the load on primary DB
instances. After DB instances are created, you can create read replicas for them.

A maximum of five read replicas can be created for a primary DB instance.

Procedure

Page 15 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Changing a Single DB Instance to Primary/Standby

Scenarios
You can change the DB instance type from single to primary/standby to improve the instance reliability while retaining
the original instance resources.

Procedure

Page 16 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Manually Switching Between Primary and Standby
DB Instances
Scenarios
If you choose to create primary/standby DB instances, RDS will create a primary DB instance and a synchronous standby
DB instance in the same region. You can access only the primary DB instance. The standby instance serves as a backup. If
the primary DB instance fails, the standby DB instance is promoted to the new primary instance and takes over services
for failover support.

Procedure

Page 17 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Changing the CPU or Memory of a DB Instance
Scenarios
You can change the CPU or memory of a DB instance as required. If the status of a DB instance changes from Changing
instance class to Available, the change is successful.

Procedure

Page 18 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Rebooting a DB Instance
Scenarios
You may need to reboot a DB instance for maintenance purposes. For example, if the status of a DB instance is
Abnormal, you can try rebooting it to restore its status to Available. After modifying some parameters, you must reboot
the DB instance for the modifications to take effect. You can reboot a primary DB instance or a read replica on the
management console.

Procedure

Page 19 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Renaming a DB instance
Scenarios
This section describes how to change the name of a primary DB instance or read replica.

Procedure

Page 20 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Deleting a Pay-per-Use DB Instance
Scenarios
You can manually delete the following DB instances that are not in use to release resources:

 Primary DB instances

 Read replicas

Procedure

Page 21 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Modifying an Automated Backup Policy
Scenarios
When you create a DB instance, an automated backup policy with a 7-day backup retention period is enabled by default. You can also disable
it. However, it is strongly recommended that you enable the automated backup policy for data restoration. After a DB instance is created, you
can modify the automated backup policy as needed. RDS backs up data based on the automated backup policy you have set. For DB instances
with the ultra-high performance, the automated backup policy cannot be disabled.

RDS automatically backs up data at the DB instance level. If a database is faulty or data is damaged, you can restore it from backups to ensure
data reliability. Backups are saved as packages in OBS buckets to ensure data confidentiality and durability. Since backing up data affects the
database read and write performance, you are advised to enable automated backups during off-peak hours.

Procedure
1. Log in to the HUAWEI CLOUD management console.

2. Click Fees in the upper right corner of the page. The Billing Center page is displayed.

3. In the navigation tree on the left, choose Unsubscriptions and Changes > Unsubscriptions, select the order to be unsubscribed from,
and click to Unsubscribe in the Operation column.

4. On the Instance Management page, locate the target DB instance and click its name.

5. On the Backup & Restore page, click Modify Backup Policy. If you want to enable the automated backup policy, click .

6. If you want to enable the automated backup policy, click .

7. Click OK to save the modification.

Page 22 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Creating a Manual Backup
Scenarios
RDS allows you to create manual backups of a running primary DB instance. You can use these backups to restore data.

Manual backup will be retained until you delete them manually.

Procedure

Page 23 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Restoring a DB Instance to a Point in Time
Scenarios
You can use existing automated backups to restore DB instances to a point in time.

Procedure

Page 24 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Restoring a Backup
Scenarios
You can use an automated or manual backup to restore a DB instance to the status when the backup was created. You
can restore the DB instance to a new or an original DB instance.

Procedure

Page 25 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Scaling a DB Instance
Scenarios
You can scale up storage space if it is no longer sufficient for your requirements. When the DB instance status is Storage
full, data cannot be written to databases.

Procedure

Page 26 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Configure DB Engine Parameters
Scenarios
You can modify parameters in user-created parameter groups.

Procedure

Page 27 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Viewing Monitoring Metrics
Scenarios
Cloud Eye monitors RDS operating status. You can view the RDS monitoring metrics on the management console.

Monitored data takes some time for transmission and display. The RDS status displayed on the Cloud Eye console is the
status of the last 5 to 10 minutes. If your RDS is newly created, wait for 5 to 10 minutes and then view the monitoring
data.

Procedure
1. Log in to the HUAWEI CLOUD management console.

2. Under Management & Deployment, click Cloud Eye.

3. In the navigation pane on the left, choose Cloud Service Monitoring > Relational Database Service.

4. On the displayed page, locate the target DB instance and click View Graph in the Operation column.

5. In the RDS monitoring area, you can select a duration to view the monitoring data.

Page 28 Copyright © 2019 Huawei Technologies Co., Ltd. All rights reserved.
Thank You
www.huawei.com

You might also like