The cluster session-sync filter id command sets conditions for filtering cluster session synchronization information.
The undo cluster session-sync filter id command cancels the setting.
cluster session-sync filter id id { exclude | include } { protocol { protocol-type [ port port-number ] | protocol-number } | existed-time existed-time } *
undo cluster session-sync filter id id
| Parameter | Description | Value |
|---|---|---|
| id | Specifies the ID of a filtering rule. |
The value is an integer ranging from 0 to 31. |
| exclude | Indicates that session backup is based on exclusion filtering rules. If this parameter is set, the rule with include cannot be configured. |
- |
| include | Indicates that session backup is based on inclusion filtering rules. If this parameter is set, the rule with exclude cannot be configured. |
- |
| protocol-type | Indicates the protocol. |
|
| port port-number | Specifies the port number used by the protocol. |
The value is an integer ranging from 1 to 65535. |
| protocol-number | Specifies a protocol number. |
The value is an integer ranging from 0 to 255. |
| existed-time existed-time | Specifies the duration of a session. |
The value is an integer ranging from 0 to 86400, in seconds. |
After a cluster is built, the session backup traffic between member devices is heavy. If the actual link bandwidth is insufficient, the function for filtering session backup information can be used to back up only required sessions, reducing the bandwidth for session backup. Note that after the function for filtering session backup information is configured, services may be temporarily interrupted due to incomplete backup of session entries when a fault occurs.
Precautions
When multiple filtering conditions are configured, the device matches sessions with filtering rules in an ascending order of their IDs. If a session matches a rule, the other rules are ignored. When a session matches a rule, the session is not backed up if exclude is set and is backed up if include is set.
Before running the cluster session-sync filter id command, run the cluster session-sync filter enable command to enable the function for filtering cluster session information.