How to prepare for expected peak traffic

Runbook automation helps you save time.
Apr 14, 2023
How to prepare for expected peak traffic
If you expect significant traffic peaks, such as during mass marketing campaigns, follow this guide to be prepared.
NOTE: Auto-scaling is supposed to handle most of the peak.

Turning off auto-scale

Autoscaling may decrease replicas before the peak. Run the command below to turn it off.
kubectl delete hpa acme-hpa -n acme

Increasing replicas

To handle the peak traffic, increase the replicas using the command below.
kubectl scale --replicas=$replicas deployment acme-deployment -n acme

Restoring original settings

After the peak, it's important to restore the original settings to prevent overspending. Use the command below to apply the original configuration.
terraform apply
Share article
RSSPowered by inblog