Background
Amazon Web Services (AWS) Aurora MySQL is a Relatioal Database Service (RDS) provided by AWS for a fully managed MySQL cluster. It supports automatic backups, and multiple availability zone replication making it an attractive solution, especially for High Availability (HA).
CentreStack supports Amazon Web Services (AWS) Aurora MySQL. However, it is important that the Aurora MySQL cluster be configured correctly to support CentreStack.
Configuration
- Sign into the AWS portal and navigate to the RDS service.
- In the pane on the left, click the Parameter groups node:
- Click the Create parameter group button in the upper right:
- Use these settings
- Parameter group family: aurora-mysql5.7
- Type: DB Cluster Parameter Group
- Group Name: <user_configurable>
- Description: <user_configurable>
- Click the Create button:
- Click on the newly created parameter group in the list of parameter groups.
- Locate and set each of the parameters as seen below:
- After making the changes click the Preview changes button and verify that it matches the screenshot above, then click the Close button.
- Click the Save changes button.
- After the changes have been saved, click on the Source column until it shows descending order (i.e. "user" entries at the top). You should see the parameters set like this:
- Click on the Instances node of the left pane:
- Click on the Create database button:
- In the Select engine screen, click Amazon Aurora, then click the MySQL 5.7-compatible radio button, then scroll down and click the Next button at the bottom of the screen:
- In the Specify DB details screen, use settings appropriate for your deployment.
- A db.r4.large is likely sufficient for a Production deployment of a few thousand users, while a db.t2.medium is sufficient for a dev/test environment.
- Use the Create Replica in Different Zone for a High Availability deployment, otherwise set this option to No.
- The DB instance identifier is arbitrary.
- The Master username is arbitrary.
- The Master password is arbitrary.
- Click the Next button to continue to step 3.
- Most of the settings the Configured advanced settings page are beyond the scope of this document.
- Virtual Private Cloud (VPC): Usually the Default VPC will be selected but could be another VPC if you have more than one VPC
- Subnet group: Usually default but if you have a complex VPC with many availability zone and subnets, you may want to consider creating a RDS subnet group that contains only those subnets that are private and accessible from the CentreStack server.
- Public accessibility: Usually No. You'll want to plan ahead and deploy the MySQL Workbench on a Windows instance that you can RDP to within the VPC that has access to the Aurora instance.
- Availabilty zone: Depends on your VPC configuration and CentreStack deployment.
- VPC Security groups: Depends. You may want to create a VPC security group that allows inbound TCP 3306 from your CentreStack instance.
- DB cluster identifier: Arbitrary
- Database name: Arbitrary but CentreStack recommends csmain.
- Database port: Usually 3306 - make sure the security group allows this TCP port inbound.
- DB parameter group: default.aurora-mysql5.7
- DB cluster parameter group: IMPORTANT - Select the name this is the DB cluster group created above. In our screenshot it was centrestackclusterparams.
- Encryption is at your discretion.
- Failover is at your discretion.
- Backup retention period is at your discretion.
- Enhanced monitoring is at your discretion.
- Log exports is at your discretion
- Auto minor version upgrade is at your discretion.
- Maintenance window is at your discretion.
- Click the Create database button.
- In order to connect to the Aurora MySQL cluster, you will need the RDS endpoint. Click on Clusters in the left pane then click on the cluster name you created in the middle pane.
- Use the fully qualified DNS name reported under the Cluster endpoint setting when setting up the database in CentreStack (note the port number is also displayed in this page):
- Use the Cluster endpoint DNS name as the Host Name in the CentreStack database configuration page:
Comments
0 comments
Please sign in to leave a comment.