inblog logo
|
runbear

    How to prepare for expected peak traffic

    Runbook automation helps you save time.
    Apr 14, 2023
    How to prepare for expected peak traffic
    Contents
    Turning off auto-scaleIncreasing replicasRestoring 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.

    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
    Contents
    Turning off auto-scaleIncreasing replicasRestoring original settings

    runbear

    RSSยทPowered by Inblog