/
Deployment Config changes for performance

Deployment Config changes for performance

The following changes to an installation may increase performance

Note that these changes will increase the number of AWS units consumed.

Configure autoscaling

The default cloudformation script run a fixed 3 server system. This is enough to support continuous rolling deployment.

For Autoscaling - update the ‘Service’ Definition
Set min tasks to 2, desired to 3 max to 10.
Define a scaling policy - GrowWhenBusy - above 80%cpu after 300 secs.

Increase Container Capacity

Modify the task definition.

Increase Fargate Container to 4GB and 1 vCPU ( default is 0.25)
Update load balancer health check
increase timeout from 10 secs to 60. require 5 unhealthy before restarting server

Update Load Balancer Health Check

In the loadbalance change the health check to not use / which loads the landing page and is expensive but to use /api/health which is designed for rapid polling.

Protocol HTTP Path /api/health Port traffic port Healthy threshold 2 Unhealthy threshold 5 Timeout 60 Interval 200 Success codes 200

 

Related content

Archived - AWS Test
Archived - AWS Test
More like this
Deployment Design
Deployment Design
More like this
Install K6 performance testing
Install K6 performance testing
More like this
Continuous Deployment
Continuous Deployment
More like this
Understanding Run State of the Software
Understanding Run State of the Software
More like this
Performance Testing
Performance Testing
More like this