Skip to main content

AWS Aurora MySQL

SleakOps provides seamless integration with Amazon Aurora MySQL, a fully managed, MySQL-compatible relational database service. Aurora MySQL combines the performance and availability of high-end commercial databases with the simplicity and cost-effectiveness of open-source databases. By leveraging SleakOps for this integration, you can efficiently manage Aurora MySQL clusters within your EKS environment, ensuring high performance, scalability, and reliability for your applications.

FAQs

How does SleakOps manage Aurora MySQL credentials?

When you create an Aurora MySQL dependency in SleakOps, it automatically generates a Vargroup for your database cluster. This Variable Group securely stores the Aurora MySQL credentials and other important configuration details, such as the cluster endpoint and user access information. You'll be able to manage them from the Vargroups section.

Can I change the Aurora MySQL version after the cluster is deployed?

Yes, Aurora MySQL supports engine version upgrades. However, the upgrade process requires careful planning and may involve downtime. It's recommended to test the upgrade process in a non-production environment first.

What happens if I need more storage for my Aurora MySQL cluster?

Aurora MySQL automatically scales storage from 10 GB up to 128 TB without requiring you to provision storage in advance. The storage scales automatically as your data grows, and you only pay for the storage you use.

How do I create an Aurora MySQL database dump?

To create a dump of your Aurora MySQL database:

  1. Run the mysqldump Command:
mysqldump -h AURORA_MYSQL_ADDRESS -u AURORA_MYSQL_USERNAME -p --all-databases > dump.sql

Replace AURORA_MYSQL_ADDRESS, AURORA_MYSQL_USERNAME, and dump.sql with the appropriate values.

  1. Consult Documentation: For more information on how to create a dump, refer to the official MySQL documentation .

How do I import an existent dump using docker?

To import a database dump into your Aurora MySQL cluster:

  1. Connect to the VPN: Ensure you are connected to the VPN of the AWS account where the Aurora cluster is located.
  2. Prepare the dump file: Place your database dump file (e.g., dump.sql) in the ./initial_data/ directory on your local machine.
  3. Run Docker Container (Recommended):
    • Install Docker on your local machine if not already installed.
    • Leave your dump in an "initial_data" folder.
    • Run a MySQL Docker container with the following command:
    docker run -it --name aurora-mysql-container -v ./initial_data/:/tmp/data/ -e MYSQL_ROOT_PASSWORD=AURORA_MYSQL_PASSWORD -d mysql bash
    • Attach to the container's terminal:
    docker exec -t -i aurora-mysql-container bash
    • Import the dump file:
    mysql -h AURORA_MYSQL_ADDRESS -u AURORA_MYSQL_USERNAME -p < /tmp/data/dump.sql
    Replace AURORA_MYSQL_ADDRESS, AURORA_MYSQL_USERNAME, and dump.sql with your specific details.

How do I import an existent dump to my local machine?

Alternatively, you can use a MySQL client installed on your local machine to import the dump:

mysql -h AURORA_MYSQL_ADDRESS -u AURORA_MYSQL_USERNAME -p < dump.sql

What should I do if I encounter connection issues with my Aurora MySQL cluster?

Check the following:

  • Ensure the cluster endpoint, username, and password are correct.
  • Verify that your security groups and firewall rules allow access.
  • Ensure the cluster is running and has enough resources (CPU, memory).
  • Check if the cluster is in an available state. Otherwise, contact us.

What are the benefits of Aurora MySQL over standard RDS MySQL?

Aurora MySQL offers several advantages:

  • Performance: Up to 5x faster than standard MySQL on RDS
  • Scalability: Automatic storage scaling up to 128 TB
  • Availability: Continuous backup to S3 with point-in-time recovery
  • Durability: 6-way replication across 3 Availability Zones
  • Compatibility: MySQL-compatible with minimal code changes
  • Cost-effective: Pay only for the storage you use
info

Set up your Aurora MySQL

1. Add Aurora MySQL as a Dependency

To integrate Aurora MySQL with SleakOps:

  1. In the SleakOps console, go to the "Dependencies" section
  2. Choose "Aurora MySQL" from the list of available dependency types. For more detail see Dependencies: Integrating Databases, Caching, and Messaging Services.

2. Set up your Aurora MySQL.

You will access the following form:

Aurora MySQL create form

Here the parameters that SleakOps allows you to customize during the creation:

AttributeDescription
Database NameName for the Aurora MySQL database. Must follow pattern: lowercase letters and numbers, cannot be "db" or "database".
Database Engine VersionSelect the specific version of the Aurora MySQL database engine. Version 3 is compatible with MySQL 8, Version 2 with MySQL 5.
Database Engine ModeChoose between Serverless (auto-scaling, pay-per-use for unpredictable workloads) or Provisioned (fixed capacity, better for consistent workloads).
Database Master UsernameMaster username for the Aurora MySQL cluster. Cannot be "admin", "user", "database", or "name".
Auto-generate PasswordIf enabled, the backend will generate a strong password automatically.
Database Master PasswordPassword for the master user. Required if auto-generate is disabled. Cannot contain @, ', ", or / characters.
Database Instance ClassServerless mode: Fixed to db.serverless
Provisioned mode: Choose from db.t3.medium, db.t4g.medium, db.t3.large, db.t4g.large, db.r8g.large, db.r8g.xlarge, db.r7i.large, db.r7i.xlarge.t3.medium.
Minimum Aurora Capacity(Serverless only) Minimum Aurora Capacity Units (0.5-256). Each unit ≈ 2GB RAM.
Maximum Aurora Capacity(Serverless only) Maximum Aurora Capacity Units (1-256). Each unit ≈ 2GB RAM.
Create a RDS from a snapshotMark this if restoring from a database snapshot.
Snapshot Identifier(Required if restoring from snapshot) RDS snapshot identifier to restore from.
Backup Retention PeriodNumber of days (1-35) for which automatic backups are kept.
Backup WindowPeriod for automated backups in HH:MM-HH:MM format (UTC).
Read ReplicasConfiguration for database read replicas. Each replica requires a name and publicly accessible setting.

3. Customize your variable's name for your Aurora MySQL cluster.

As explained, when a dependency is created, SleakOps generates a vargroup to hold all the needed attributes. In this step you can change the name of the attributes in case it is needed. SleakOps completes the values automatically. After this step, your dependency is created.

Aurora MySQL create outputs