Apr 14, 2023
How to prepare for expected peak traffic
Runbook automation helps you save time.
Restoring original settings
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.
Autoscaling may decrease replicas before the peak. Run the command below to turn it off.
kubectl delete hpa acme-hpa -n acme
To handle the peak traffic, increase the replicas using the command below.
kubectl scale --replicas=$replicas deployment acme-deployment -n acme
After the peak, it's important to restore the original settings to prevent overspending. Use the command below to apply the original configuration.