Why Relational Database Service (RDS)?

Why Relational Database Service (RDS)?

Function Overview

RDS for MySQL

MySQL is one of the world's most popular open-source relational databases. It works with the Linux, Apache, and Perl/PHP/Python (LAMP) model to provide efficient web solutions. RDS for MySQL is reliable, secure, scalable, inexpensive, easy to manage, and immediately ready for use.

1. It uses a stable architecture and supports various web applications. In addition, it is cost-effective and is preferred by small- and medium-sized enterprises.

2. A web-based console is available for you to monitor comprehensive information, making operations easy and visual.

3. Resources can be flexibly scaled and you pay for only what you use.


RDS for PostgreSQL

PostgreSQL is an open source object-relational database management system focused on extensibility and standards compliance. It is known as the most advanced open source database. RDS for PostgreSQL is designed for enterprise-oriented OLTP scenarios and supports NoSQL (JSON, XML, or hstore) and GIS data types. It has earned a reputation for reliability and data integrity, and is suitable for websites, location-based applications, and complex data object processing.

1. RDS for PostgreSQL supports the postgis plugin and provides excellent spatial performance.

2. RDS for PostgreSQL is a cost-effective solution for a range of different scenarios. You can flexibly scale resources as needed and you only pay for what you use.

DB Engines and Versions


Connecting to an RDS DB Instance

You can access RDS through Data Admin Service (DAS), a private network, or a public network.

Data Migration

RDS offers various migration methods:

For MySQL instances:

Migrate data using DRS

Migrate data using mysqldump

For PostgreSQL instances:

Migrate data using DRS

Migrate data using psql

Among these migration methods, DRS is recommended because it is stable, efficient, easy to use, and simplifies the complexity of data transmission and reduces the transmission costs.

Resetting the Administrator Password

You can reset the password of your database account when using RDS. If an exception occurs on the root account, for example, the root account is lost or deleted, you can reset the root password to restore the account rights.

Enabling Public Accessibility

You can bind an EIP to the DB instance for public accessibility and can also unbind the EIP from the DB instance as needed.

· You can bind an EIP to a primary DB instance or a read replica only.

· If a DB instance has already been bound with an EIP, you must unbind the EIP from the DB instance first before binding a new EIP to it.


Read Replicas

In read-intensive scenarios, a single DB instance may be unable to handle the read pressure and service performance may be affected. To offload read pressure on the database, you can create read replicas in a region. These read replicas can process a large number of read requests and increase application throughput.

Scaling Up Storage Space

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 DB 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.

Services are not interrupted during storage scaling up. You can scale up storage space of DB instances but cannot change the storage type.

FAQs

  • What Should I Pay Attention to When Using RDS?

    1. DB instance operating systems (OSs) are invisible to you. Your applications can access a database only through an IP address and a port.

    2. The backup files stored in Object Storage Service (OBS) and the Elastic Cloud Server (ECS) used by RDS are invisible to you. They are visible only to the RDS instance management system.

    3. Before viewing the DB instance list, ensure that the region is the same as the region where the DB instance is purchased.

    4. After creating RDS DB instances, you do not need to perform basic O&M operations, such as enabling HA and installing security patches. However, you must pay attention to:

    a. Whether the CPU, input/output operations per second (IOPS), and space of the RDS DB instance are sufficient. If any of these becomes insufficient, change the CPU/Memory or scale up the DB instance.

    b. Whether the performance of the RDS DB instances is adequate, a large number of slow query SQL statements exist, SQL statements need to be optimized, or any indexes are redundant or missing.


  • What Is the Availability of RDS DB Instances?

    Calculation formula for RDS DB instance availability:

    DB instance availability = (1 – Failure duration/Total service duration) × 100%

  • Will My RDS DB Instances Be Affected by Other User Instances?

    No. Your RDS DB instances and resources are isolated from other users' DB instances.

  • Does RDS Support Cross-AZ High Availability?

    Yes. When you buy a DB instance, you can select Primary/Standby for DB Instance Type and then select different AZs for Primary AZ and Standby AZ.

  • What Can I Do About Slow Respond of Websites When They Use RDS?

    To solve this problem:

    1. Check the performance of RDS DB instances on the RDS console.

    2. Compare the database connection status of local databases and RDS DB instances. This problem depends on web applications.


  • Can Multiple ECSs Connect to the Same RDS DB Instance?

    Multiple ECSs can connect to the same RDS DB instance as long as the capability limits of a database are not exceeded.

  • Is RDS for MySQL Compatible with MariaDB?

    MariaDB is a branch of the MySQL source code. It is maintained by the open-source community and uses GPL licensing. One of the reasons for developing MariaDB is that Oracle acquired MySQL, so there is a chance that MySQL could get shut down. The community developed MariaDB to protect against this risk.

    MariaDB is compatible with MySQL. There is no difference for front-end applications such as PHP, Perl, Python, Java, .NET, MyODBC, Ruby, and MySQL C connector.

  • What Is the Maximum Size Allowed for a Single Table in RDS for MySQL Instances?

    The maximum size allowed for a single table depends on the maximum file size allowed by the OS.

    Due to metadata overhead, the maximum size allowed for a single table is 2 TB.