6. Scaling

Test case 4: load scales the East-West cluster out, and it scales back in after the load ends.

What you will see

How scaling works

Each cluster tracks the GWLB's active flows per healthy member against a target of 2,000. Above it, the Auto Scaling group adds members; below it, after the load ends, it removes them. New members register to FortiManager, which installs the cluster's configuration before the GWLB sends them traffic.

6.1 Read the resting state

  1. In EC2, Auto Scaling groups, <prefix>-ew-fgt: desired capacity 3, minimum 3, maximum 12.

  2. In CloudWatch, dashboard CloudCanaries-Load-And-Scaling-<region>: the GWLB active flows and the healthy members of your region.

6.2 Start a load job

The load runs from two load groups, one in PROD and one in QA, that sit at zero instances when idle. You start it from the jump host, <prefix>-jump, an operator instance in Shared Services.

  1. In EC2, Instances, select <prefix>-jump, Connect, Session Manager, Connect.

  2. Start 10,000 concurrent flows from PROD to QA for 30 minutes. The jump host sets your region and the project name.

    Attendee 1 (eu-west-1):

    cloud-canaries-load start --client-node eu-west-1-prod-load \
      --server-node eu-west-1-qa-load \
      --profile concurrent-flows --flow-count 10000 --ttl 1800
    

    Attendee 2 (ap-southeast-1):

    cloud-canaries-load start --client-node ap-southeast-1-prod-load \
      --server-node ap-southeast-1-qa-load \
      --profile concurrent-flows --flow-count 10000 --ttl 1800
    
  3. Check its status:

    cloud-canaries-load status
    

One job runs at a time in a region; a second start is refused. The job stops itself when its time runs out.

6.3 Watch the scale-out

  1. On the dashboard, active flows rise above 2,000 per healthy member.

  2. In EC2, Auto Scaling groups, <prefix>-ew-fgt, Activity, the group raises its desired capacity and launches members about 3 minutes after the load starts.

  3. In EC2, Target groups, <prefix>-ew, Targets, each new member turns healthy about 8 minutes after launch.

  4. On FortiManager, Device Manager, the new members appear in the East-West device group.

6.4 Watch the scale-in

  1. On the jump host, stop the job early if you want:

    cloud-canaries-load stop
    
  2. In Activity, the group starts removing members about 15 minutes after the load ends, back to 3.

Check

Limits

Where to look

What Where
Flows and members CloudWatch, CloudCanaries-Load-And-Scaling-<region>
Scaling activity EC2, Auto Scaling groups, <prefix>-ew-fgt, Activity
Scaling policy EC2, Auto Scaling groups, <prefix>-ew-fgt, Automatic scaling
Target in config config/regions/<region>.yaml, target_pct
← 5. North-South7. Policy as code →