Configuring a scalable cluster
A cluster consists of a primary unit and two or more standby secondary units. A minimum of three units is required to set up a cluster. If the primary unit becomes unavailable, one of the standby secondaries will become the new primary.
The following roles are available:
-
Primary: The FortiPortal is the primary in a high-availability cluster.
-
Secondary: The FortiPortal is a secondary in a high-availability cluster.
-
Standalone: The FortiPortal is independent of a high-availability cluster. This is the default setting. Use it if you intend to keep the FortiPortal instance independent of a cluster.
The nodes of a scalable cluster can be removed from the cluster and reset to standalone mode. See Deleting and resetting cluster nodes.
To set up a FortiPortal cluster:
-
Prepare your system for the cluster.
Make sure all cluster nodes have the same system configuration (number of CPUs, size of memory, etc.), otherwise the cluster may fail to form.
The following ports must be open between the FortiPortal instances:
-
2379
-
2380
-
6443
-
7472
-
7946
-
10250
-
-
Set up the primary instance.
- Log in to the primary FortiPortal instance.
- Go to System > Settings > Scalable Cluster.
- In the Operational Mode field, select Primary.
- In the Cluster Password field, set a password for the cluster. This password cannot be retrieved or changed once it is set.
- Click Create Cluster.
-
Set up two or more secondary units.
- Log in to another FortiPortal instance.
- Go to System > Settings > Scalable Cluster.
- In the Operational Mode field, select Secondary.
- In the Cluster Password field, enter the cluster password you set on the primary instance.
- In the Primary FPC IP field, enter the IP address of the primary instance.
- In the Serial Number field, enter the serial number of the primary instance.
- Click Join.
- Repeat step 3 to add additional secondary instances to the cluster.
-
Configure the load balancer (optional).
-
Log in to one of the FortiPortal instances in the cluster.
-
Go to System > Settings > Scalable Cluster.
-
In the Load Balancer IP Range field, enter an IP address in the same subnet as the cluster instances. This IP should be one that is not assigned to any devices.
-
Click Update.
The load balancer IP configuration is automatically applied across all instances of the cluster.
After upgrading a FortiPortal instance, you must set the load balancer IP address again.
-
Deleting and resetting cluster nodes
Scalable cluster nodes can be deleted from the cluster and reset to standalone mode.
You can only delete or reset nodes from a three-node cluster. Two-node clusters can not be modified. |
Deleting a node
Deleting a node from a cluster keeps the cluster intact but with the deleted node offline.
The deleted node is not reset to standalone mode. After deleting the node, you can add a new node to the cluster or add the deleted node back to the cluster after it is reset.
After you delete a node from the cluster, the node is no longer accessible through the GUI, and must be reset to standalone mode before GUI access is enabled. See Configuring a scalable cluster.
To delete a node from a cluster in the GUI:
In System > Settings > Scalable Cluster, click Delete on the node to be removed.
Resetting a node
Resetting returns all data on the FortiPortal device to the original defaults, with the exception of configured ports and routes. It will not retain any other settings from the cluster.
If you reset a primary node, the cluster is immediately unusable.
If you reset one secondary node, the cluster is still functional but the reset node become standalone. It cannot rejoin the cluster.
To reset a node to standalone mode:
In the CLI on the node to be reset, run the following command:
execute reset
This fully resets the node to default settings, excepting any configured interfaces and routes.