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 Devices > Device Management 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:


> show cluster vpn-sessiondb distribution
Member 0 (unit-1-1): active: 209; backups at: 1(111), 2(98)
Member 1 (unit-1-3): active: 204; backups at: 0(108), 2(96)
Member 2 (unit-1-2): active: 0

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:

  • Member 0 has 209 active sessions, 111 sessions are backed up on member 1, 98 sessions are backed up on member 2

  • Member 1 has 204 active sessions, 108 sessions are backed up on member 0, 96 sessions are backed up on member 2

  • Member 2 has NO active sessions; therefore, no cluster members are backing up sessions for this node. This member has recently joined the cluster.

Step 3

Redistribute sessions.

cluster redistribute vpn-sessiondb

Example:


> cluster redistribute vpn-sessiondb

Session redistribution initiated.
Use 'show cluster vpn-sessiondb distribution' to view distribution.

> 

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:

Syslog PhraseNotes
VPN session redistribution startedControl node only

Sent request to move number sessions from orig-member-name to dest-member-name

Control node only
Failed to send session redistribution message to member-nameControl node only
Received request to move number sessions from orig-member-name to dest-member-nameData node only
Moved number sessions to member-name The number of active sessions moved to the named cluster.
Failed to receive session move response from dest-member-nameControl node only
VPN session completed Control node only
Cluster topology change detected. VPN session redistribution aborted.

Step 4

Re-enter the show cluster vpn-sessiondb distribution command to view the results.