Download PDF
Download page Upgrade or Move the Controller on AWS.
Upgrade or Move the Controller on AWS
If your Controller instance is deployed on AWS and uses Aurora for its database, you can use the Enterprise Console CLI commands to either discover and update or to just upgrade your Controller to the latest version. You cannot use the Enterprise Console UI, however, to perform the upgrade.
After backing up the Aurora database, use the upgrade method below that best meets your needs:
- Discover and Upgrade - Use this method if you are not sure if you need to upgrade.
- Upgrade - Use this method if you know you are using an older version and want to upgrade. For example, if you want to upgrade from 4.4.3 to the latest.
You can also move the Controller to a new EC2 instance to meet updated performance requirements. For platform-agnostic upgrade instructions, see Upgrade the Controller Using the Enterprise Console.
Back Up the Aurora Database
Before upgrading the Controller, you should back up the Aurora database instance. You should also ensure that you have an Amazon Machine Image (AMI) that accurately reflects the current Controller instance.
The Enterprise Console upgrades the schema to the latest version. However, upgrading the Controller does not upgrade the Aurora DB server.
Discover and Upgrade the Controller on AWS
The Enterprise Console provides the discover_upgrade
command that will discover your Controller, determine its version, and then upgrade it if needed.
Log in to the Enterprise Console:
bin/platform-admin.sh login --user-name <admin_username> --password <admin_password>
BASHRun the following command:
bin/platform-admin.sh submit-job --service controller --job discover-upgrade --args controllerPrimaryHost="<hostname>" controllerRootUserPassword="<password>" mysqlRootPassword="<password>" databaseType=aurora destinationDirectory="<controllerInstallationDirector>"
BASHIf your upgrade fails, you can resume by passing the flag
useCheckpoint=true
as an argument after--args.
If several versions of the Enterprise Console exist in your environment, the
discover-upgrade
command will fail if the--target-version
argument is not included. For details on adding the--target-version
argument, see Upgrade the Controller from 4.1.x, 4.2.x, and 4.3.x to 4.5.x or Latest.Update the AMI after the job finishes.
Upgrade the Controller on AWS
The Enterprise Console provides the upgrade
command to upgrade the Controller to the latest version. For example, if you are using Controller 4.4.3 and want to upgrade to the latest, you can simply use the upgrade
command.
Log in to the Enterprise Console:
bin/platform-admin.sh login --user-name <admin_username> --password <admin_password>
BASHRun the following command on the Enterprise Console host:
bin/platform-admin.sh submit-job --service controller --job upgrade --args controllerRootUserPassword="<password>" mysqlRootPassword="<password>"
BASHIf your upgrade fails, you can resume by passing the flag
useCheckpoint=true
as an argument after--args.
- Update the AMI after the job finishes.
Upgrade the Amazon RDS Aurora DB Instance
After you upgrade the Controller to 24.2 or higher, you might want to upgrade your Amazon RDS Aurora DB Instance to Aurora MySQL version 3 which is compatible with MySQL 8 of the Controller.
Complete the following steps to upgrade the Amazon RDS Aurora DB instance:
- Back up the Aurora Database.
- Create the DB Cluster Parameter Group and DB Parameter Group according to Aurora MySQL version 3. See Create Custom DB Parameter Groups.
- Stop the Controller App Server.
- Upgrade the Aurora RDS DB instance. See How to perform an in-place upgrade.
Ensure to update the DB cluster parameter group and DB parameter group that you have created earlier.
- Start the Controller App Server.
Rollback to a Previous AMI
If a rollback is required, complete the following steps:
- Create a new Aurora instance, using the database snapshot you took earlier as the source.
Stop the upgraded Controller if it is still running:
bin/platform-admin.sh stop-controller-appserver
- Repoint the database DNS alias to the new Aurora instance.
- Terminate the EC2 instance hosting the current Controller. This should cause a new EC2 instance to be provisioned using the existing AMI, with the older Controller version.
- Attach the ENI to the new EC2 instance.
- Verify that the Controller is working as it was before the upgrade.
Move the Controller on AWS
You can move the Controller to a new EC2 instance by completing the following steps:
Terminate the EC2 instance hosting the current Controller. This should cause a new EC2 instance to be automatically provisioned using the AMI.
The auto-scaling group and launch configuration are defined with the AMI. Therefore, if the existing EC2 instance in the auto-scaling group dies, it is automatically replaced with a new EC2 instance based on the same AMI.
- Attach the ENI to the new EC2 instance.
- Verify that the Controller is working as expected.