Redistribute Distributed S2S VPN Sessions
Active session redistribution redistributes the active VPN session load across the cluster nodes. Due to the dynamic nature of beginning and ending sessions, active session redistribution is a best effort balancing of the sessions across all cluster nodes. Repeated redistribution actions will optimize the balance.
Redistribution can be run at any time, should be run after any topology change in the cluster, and is recommended after a new node joins the cluster. The goal of redistribution is to create a stable VPN cluster. A stable VPN cluster has an almost equal number of active and backup sessions across the nodes.
To move a session, the backup session becomes the active one and another node is selected to host a new backup session. Moving sessions is dependent on the location of the active session's backup and the number of active sessions already on that particular backup node. If the backup session node is unable to host the active session for some reason, the original node remains owner of the session.
This procedure requires CLI access to the control node.
Before you begin
-
Enable system logs if you would like to monitor redistribution activity.
Procedure
Step 1 | Connect to the control node CLI. See Log Into the Command-Line Interface on the Device. View the cluster on to see which device is the control node. | ||||||||||||||||||
Step 2 | View how active and backup sessions are distributed across the cluster. show cluster vpn-sessiondb distribution Example:Distribution information displays as follows:
Each row contains the member ID, member name, number of active sessions, and on which members the backup sessions reside. For the example above, one would read the information as:
| ||||||||||||||||||
Step 3 | Redistribute sessions. cluster redistribute vpn-sessiondb Example:
Depending on the number of sessions to redistribute and the load on the cluster, this may take some time. Syslogs containing the following phrases (and other system details not shown here) are provided as redistribution activity occurs:
| ||||||||||||||||||
Step 4 | Re-enter the show cluster vpn-sessiondb distribution command to view the results. |