AWS RDS for MySQL Maintenance

AWS RDS Maintenance

Check the database parameters of cloud database

    max_connections=4000 #But when the actual number of connections reaches 800, it cannot be accessed



VPC:

   Logical virtual network with free configuration of IP, subnets, routing tables and gateways

   Provides advanced security features such as Secure Combination Network Access Control Lists


   

Overview of Amazon RDS

1. Get CPU, Memory, Storage and IOPS

2, can manage backup, software patching, automatic failure detection and recovery

3. High availability is achieved through the primary instance and the synchronized secondary instance to which a failover operation can be performed in the event of a problem, and the read replica extends the read


Types of RDS databases:

Amazon Aurora: MySQL and PostgreSQL Compatible Relational Database

Amazon RDS:Amazon Aurora、Oracle、Microsoft SQL Server、PostgreSQL、 MySQL 和 MariaDB。

Amazon DynamoDB:mongodb

Amazon Redshift: Petabyte-scale data warehouse

Amazon ElastiCache:redis和memcache

Amazon Neptune: Graph Database

AWS DMS: Data migration, which supports homogeneous migration (such as from Oracle to RDS for Oracle), and also supports heterogeneous migration between different database platforms (such as from Oracle to Amazon Aurora or from Microsoft SQL Server to RDS for Oracle) MySQL).


You can create and modify DB instances using the AWS Command Line Interface, the Amazon RDS API, or the AWS Management Console.

Each database engine has a set of parameters in the database parameter group that control the behavior of the databases it manages



DB instance class type

The following are the standard database instance classes available:


db.m4 – The latest generation of instance classes that provide more computing capacity than the previous db.m3 instance classes at a lower price.

db.m3 - The previous generation instance classes, which take into account compute, memory, and network resources, are ideal for many applications. The db.m3 instance class provides more computing capacity than the previous db.m1 instance class.

db.m1 – previous generation generic instance class.


The following are the available memory-optimized DB instance classes:

db.r4 – Current generation instance classes that are optimized for memory-intensive applications and offer RAM per GiB at a lower price than db.r3 instance classes.

db.r3 – The previous generation instance classes, which provide memory optimizations and provide more compute capacity than the db.m2 instance classes at a lower price. db.r3 instance classes are not available in the South America (Sao Paulo) Region.

db.m2 – previous generation memory-optimized instance classes.


The following are the available burstable performance DB instance classes:

db.t2 – Instance class that provides baseline performance levels and can burst to full CPU usage.


https://docs.aws.amazon.com/zh_cn/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html


Modify the database instance running the MySQL database engine

After you modify DB instance settings, you can apply the changes immediately or during the next maintenance window for the DB instance. Some modifications cause outages by restarting the database instance.

When you modify a DB instance, Amazon RDS will restart the instance if both of the following are true:

You change the DB instance class.

You specify a custom parameter group.




RDS option group: add plugins, generally default

RDS parameter group: used to configure the parameters in the instance



Settings for MySQL DB Instances

https://docs.aws.amazon.com/zh_cn/AmazonRDS/latest/UserGuide/USER_ModifyInstance.MySQL.html


Some modification operations affect the running of the instance:

Allocated storage space          

Automatic minor version upgrade

Backup Retention Period If you change from 0 to a non-zero value or from a non-zero value to 0, a service interruption will occur.

backup period

Certificate Authority

Copy tags to snapshots

Database port The database instance is restarted immediately.

The database engine version (there are two ways to upgrade: major version upgrade and minor version upgrade) A service outage occurred during this change.

DB instance classes (standard, memory-optimized, and burstable performance) experienced a service outage during this change.

DB instance identifier A service outage occurred during this change. The database instance restarts.

DB Parameter Groups There will be no disruption during this change. However, parameter changes only occur when the DB instance is manually restarted without failover.

Enhanced monitoring

IAM database authentication

Maintenance Window If one or more pending operations cause an outage, and the maintenance window is changed to include the current time, those pending operations are applied immediately with an outage.

Multi-AZ deployment

New master password

option group

public availability

security group

subnet group



Storage type May be interrupted

                                            Changed from General Purpose (SSD) to Magnetic.

                                           Changed from Magnetic to General Purpose (SSD).



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324653877&siteId=291194637