Amazon Aurora MySQL Database Administrator’s Handbook - Amazon Aurora MySQL Database Administrator’s Handbook

Amazon Aurora MySQL Database Administrator’s Handbook

Connection Management

Publication date: October 20, 2021 (Document history)

This paper outlines the best practices for managing database connections, setting server connection parameters, and configuring client programs, drivers, and connectors. It’s a recommended read for Amazon Aurora MySQL Database Administrators (DBAs) and application developers.


Amazon Aurora MySQL (Aurora MySQL) is a managed relational database engine, wire-compatible with MySQL 5.6 and 5.7. Most of the drivers, connectors, and tools that you currently use with MySQL can be used with Aurora MySQL with little or no change.

Aurora MySQL database (DB) clusters provide advanced features such as:

  • One primary instance that supports read/write operations and up to 15 Aurora Replicas that support read-only operations. Each of the Replicas can be automatically promoted to the primary role if the current primary instance fails.

  • A cluster endpoint that automatically follows the primary instance in case of failover.

  • A reader endpoint that includes all Aurora Replicas and is automatically updated when Aurora Replicas are added or removed.

  • Ability to create custom DNS endpoints containing a user-configured group of database instances within a single cluster.

  • Internal server connection pooling and thread multiplexing for improved scalability.

  • Near-instantaneous database restarts and crash recovery.

  • Access to near-real-time cluster metadata that enables application developers to build smart drivers, connecting directly to individual instances based on their read/write or read-only role.

Client-side components (applications, drivers, connectors, and proxies) that use sub-optimal configuration might not be able to react to recovery actions and DB cluster topology changes, or the reaction might be delayed. This can contribute to unexpected downtime and performance issues. To prevent that and make the most of Aurora MySQL features, AWS encourages Database Administrators (DBAs) and application developers to implement the best practices outlined in this whitepaper.