Compute
Set Control Plane, Access Handler and Worker Compute
If you are experiencing higher latencies and sluggish application performance you may need to increase the compute. You can adjust the CPU and Memory allocation at any time for the ECS services in your deployment without any downtime.
This can be done with the following Terraform fields
See documentation on task sizes from AWS here
Set RDS Instance Type
See AWS official documentation for the different RDS instance class types here
Upgrading or downgrading an RDS instance class will result in a downtime of around 20 minutes.
First start by turning on maintenance mode by adding the following to your deployment terraform module:
terraform apply
that change. This will create a new load balancer rule to not allow any traffic to the application during the maintenance period.
Once the application is in maintenance mode, you’ll know this by checking the console and seeing that it is returning “Common Fate is currently down for maintenance. You can get in touch with us at support@yourcomapny.io.”.
Make a snapshot of the RDS instance. You can do this from the console in the actions dropdown. Select the correct DB instance and give the snapshot a memorable name like “snapshot-for-instance-upgrade”.
Update the Terraform module again to update the rds_instance_type
terraform apply
that change and it will begin upgrading the instance type.
Finally once the Terraform has been applied, check in the AWS console that the RDS instance is Available and when it is you can safely turn maintenance mode back off: