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
-
GWLB active flows against the scaling target.
-
New members launched, configured by FortiManager and put in service.
-
The cluster returning to one member per AZ.
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
-
In EC2, Auto Scaling groups,
<prefix>-ew-fgt: desired capacity 3, minimum 3, maximum 12. -
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.
-
In EC2, Instances, select
<prefix>-jump, Connect, Session Manager, Connect. -
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 1800Attendee 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 -
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
-
On the dashboard, active flows rise above 2,000 per healthy member.
-
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. -
In EC2, Target groups,
<prefix>-ew, Targets, each new member turns healthy about 8 minutes after launch. -
On FortiManager, Device Manager, the new members appear in the East-West device group.
6.4 Watch the scale-in
-
On the jump host, stop the job early if you want:
cloud-canaries-load stop -
In Activity, the group starts removing members about 15 minutes after the load ends, back to 3.
Check
-
The cluster grew past 3 members under load, and returned to 3 after it.
-
Open connections survive both changes; the canary probes on
CloudCanaries-Region-<region>stay green.
Limits
-
Active flows are the only trigger configured. A scaling policy can also track throughput, packets or CPU.
-
The target of 2,000 flows per member is a demo value. Production sizing needs a baseline on the chosen instance type.
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 |