Scaling In and Scaling Out in Cloud Firewall for Azure VMSS
Azure Autoscale adjusts the number of Cloud Firewall Gatewaysin the VMSS based on the traffic load.
It uses two main events:
-
Scale Out: Adds Cloud Firewall Gateways to the VMSS when the traffic load increases.
-
Scale In: Removes Cloud Firewall Gateways from the VMSS when the traffic load decreases.
To view or edit Azure Autoscale settings, go to Azure Portal > VMSS> Scaling. (For more information, see Autoscale Settings.)
Default Cloud Firewall Gateway CPU thresholds to trigger autoscaling events:
-
Scale Out: Triggers at 80% CPU use (5-minute average).
-
Scale In: Triggers at 60% CPU use (5-minute average).
|
|
Note - You can use Cloud Firewall metrics as triggers for scale-in and scale-out events. For more information, see To configure Cloud Firewall metrics for the Azure Portal:. |
Scale Out
When a scale-out event triggers:
-
Azure Autoscale launches new Cloud Firewall Gateways.
-
New Cloud Firewall Gateways automatically run the First Time Configuration Wizard and reboot.
-
-
Detects new Cloud Firewall Gateway instances.
-
Creates a Secure Internal Communication (SIC
Secure Internal Communication. The Check Point proprietary mechanism with which Check Point computers that run Check Point software authenticate each other over SSL, for secure communication. This authentication is based on the certificates issued by the ICA on a Check Point Management Server.) channel with these Cloud Firewall Gateway instances. -
Installs a Security Policy
Collection of rules that control network traffic and enforce organization guidelines for data protection and access to resources with packet inspection. on each new Cloud Firewall Gateway.
-
-
The External Load Balancer starts sending traffic to these new Cloud Firewall Gateways.
|
|
Note - New Cloud Firewall Gateways report their status and send logs to the Security Management Server |
|
|
Notes:
|
Scale In
When a scale-in event triggers:
-
Azure Autoscale marks one or more Cloud Firewall Gateways as candidates for termination.
-
The External Load Balancer stops sending traffic to marked Cloud Firewall Gateways.
-
Azure Autoscale terminates marked Cloud Firewall Gateways.
-
The Security Management Server removes terminated Cloud Firewall Gateways from its database.
|
|
Important - : Keep at least two Cloud Firewall Gateways (one in each Availability Zone) running for redundancy and availability. |
|
|
Note - To configure connection draining (when the load balancer stops assigning connections to a node), refer to sk170304. |
Testing Scale-In and Scale-Out Processes
The initial solution deployment process includes these steps:
-
When the Check Point Cloud Firewall for Azure VMSS solution is deployed, it creates Cloud Firewall Gateways.
-
Each new Cloud Firewall Gateway automatically runs the First Time Configuration Wizard. This usually takes 10 minutes to complete. Large Virtual Machines may require additional time.
-
After configuration completes, the Security Management Server automatically installs the Security Policy on these Cloud Firewall Gateways.
-
To verify deployment success, use SmartConsole
Check Point GUI application used to manage a Check Point environment - configure Security Policies, configure devices, monitor products and events, install updates, and so on. to:-
Confirm the Security Policy installation.
-
Verify log generation and transmission by Cloud Firewall Gateways.
-
|
Step |
Description |
||
|---|---|---|---|
|
1 |
Connect to the Cloud Firewall Gateway command line interface (CLI) over SSH. |
||
|
2 |
Enter Expert mode. |
||
|
3 |
Download the CPU load simulation script ( https://raw.githubusercontent.com/CheckPointSW/CloudGuardIaaS/master/common/simulate_cpu_load.sh |
||
|
4 |
Place the script in the correct directory of the Cloud Firewall Gateway:
|
||
|
5 |
Set execute permission to the script:
|
||
|
6 |
Validate script syntax:
|
||
|
7 |
Execute the script to simulate high CPU load:
|
||
|
8 |
In a separate terminal, monitor CPU load(it must be at a high level):
|
||
|
|||
|
9 |
After the new Cloud Firewall Gateway is provisioned, press any key to stop the simulation script on the original Cloud Firewall Gateway. |
||
|
10 |
In a separate terminal, monitor CPU load (it must return to normal levels):
|
||
|
|||
Autoscale Settings
Azure Autoscale manages all scale in and scale out events. Go to the Azure portal for an overview of Azure AutoScale.
Azure Autoscale default settings:
-
Adds a Virtual Machine to the VMSS, if the average CPU usage across the VMSS (as reported by the Azure host) is above 80% for five consecutive 1-minute intervals.
-
Terminates a Virtual Machine, if the average CPU usage across the VMSS (as reported by the Azure host) is below 60% for five consecutive 1-minute intervals.
|
|
Note - After Cloud Firewall metrics are enabled, you can use them to trigger scale-in and scale-out events. |
To configure Cloud Firewall metrics for the Azure Portal:
-
Go to the Azure Portal.
-
From the Azure portal, navigate to the VMSS Resource Group -> Virtual machine scale set resource > Scaling Policy tab.
-
In the current Scale Policy profile( the Default one), remove the current scale out, scale in rules. Click on the rules, select Delete.
-
-
In the Time Aggregation field, select Average.
-
In the "Metric namespace field, select cloudguard.
-
In the Metric name field, select IPsec number of VPN-1 RA peers.
-
In the checkbox, select Enable metric divide by instance count.
-
In the Operator field, select Greater than.
-
In the Operation field, select Increase count by.
-
In the Instance count field, enter 1.
-
Click Update.
-
-
Add a Scale In rule:
-
In the Time Aggregation field, select Average.
-
In the Metric namespace field, select cloudguard.
-
In the Metric name field, select IPsec number of VPN-1 RA peers.
-
In the checkbox, select Enable metric divide by instance count.
-
In the Operator field, select Less than or equal to.
-
In the Operation field, select Decrease count by.
-
In the Instance count field, enter 1.
-
Click Update.
-
-
Save the updated Auto Scaling policy.
Azure sends an email alert and ensures that the number of Virtual Machines in the VMSS stays in the range between the minimum and maximum number of Virtual Machines, based on the template.
Make sure to confirm that the settings you need appear on the primary Azure portal. If a setting is not available, use the CLI or the Azure Resource Manager to change it. See the Azure Resource Manager.