6.2.2.16.4. load-balancing
6.2.2.16.4.1. Introduction
La commande load-balancing
du sous groupe set advanced-configuration
permet de définir une configuration avancée d'équilibrage de charge des flux capturés par interface de capture en utilisant des méthodes de répartition de charge (algorithme).
Ci-dessous les options de configuration :
la méthode |
kernel-native (RPS)
est configurée par défaut sur toutes les interfaces de capturela méthode
custom (XDP)
permet de réaliser une configuration avancée :algorithme
3-tuple
: permet de choisir un algorithme avec 3 tuples (VLAN ID + IP Addresses + IP Protocol) pour la répartition de charge des flux capturésalgorithme
5-tuple
: permet de choisir un algorithme avec 5 tuples (VLAN ID + IP Addresses + IP Protocol + L4 Ports si applicable) pour la répartition de charge des flux capturésle mot clé
seed
: permet de définir une seed pour mieux répartir le trafic identique
Note
La fonctionnalité est compatible avec certains modèles de GCap (voir datasheet des modèles).
6.2.2.16.4.2. Prérequis
Utilisateurs : setup
Dépendances : le moteur de détection doit être à l'arrêt
6.2.2.16.4.3. Commande avec méthode kernel-native
set advanced-configuration load-balancing method kernel-native
6.2.2.16.4.4. Commande avec méthode custom (XDP)
set advanced-configuration load-balancing method custom algorithm {3-tuple|5-tuple} seed INTEGER
6.2.2.16.4.5. Aide
6.2.2.16.4.5.1. Aide sur la commande set advanced-configuration load-balancing
Entrer la commande suivante.
(gcap-cli) set advanced-configuration load-balancing ?
Valider.
Le système affiche :
Update current load balancing configuration
===========================================
Available commands:
- mon2: Update load balancing configuration for interface mon2
- confirm: Accept the risks and confirm running the procedure
6.2.2.16.4.5.2. Aide sur la commande set advanced-configuration load-balancing mon2
Entrer la commande suivante.
(gcap-cli) set advanced-configuration load-balancing mon2 ?
Valider.
Le système affiche :
Update load balancing configuration for interface mon2
======================================================
Available commands:
- method: Set load balancing method for interface
- algorithm: Set load balancing algorithm for interface (custom mode only)
- seed: Set load balancing seed for interface (custom mode only)
- confirm: Accept the risks and confirm running the procedure
6.2.2.16.4.5.3. Aide sur la commande set advanced-configuration load-balancing mon2 method
Entrer la commande suivante.
(gcap-cli) set advanced-configuration load-balancing mon2 method ?
Valider.
Le système affiche :
Set load balancing method for interface
=======================================
Available commands:
- kernel-native: Set load balancing to kernel native method (RPS)
- custom: Set load balancing to custom (XDP)
6.2.2.16.4.5.4. Aide sur la commande set advanced-configuration load-balancing mon2 method custom
Entrer la commande suivante.
(gcap-cli) set advanced-configuration load-balancing mon2 method custom ?
Valider.
Le système affiche :
Set load balancing to custom (XDP)
==================================
Available commands:
- mon2: Update load balancing configuration for interface mon2
- algorithm: Set load balancing algorithm for interface (custom mode only)
- seed: Set load balancing seed for interface (custom mode only)
- confirm: Accept the risks and confirm running the procedure
6.2.2.16.4.5.5. Aide sur la commande set advanced-configuration load-balancing mon2 method custom algorithm
Entrer la commande suivante.
(gcap-cli) set advanced-configuration load-balancing mon2 method custom algorithm ?
Valider.
Le système affiche :
Set load balancing algorithm for interface (custom mode only)
=============================================================
Available commands:
- 3-tuple: Set load balancing algorithm to 3-tuple
- 5-tuple: Set load balancing algorithm to 5-tuple
6.2.2.16.4.5.6. Aide sur la commande set advanced-configuration load-balancing mon2 method custom algorithm 5-tuple seed
Entrer la commande suivante.
(gcap-cli) set advanced-configuration load-balancing mon2 method custom algorithm 5-tuple seed ?
Valider.
Le système affiche :
Set load balancing seed for interface (custom mode only)
========================================================
Available commands:
- <seed>: Set the load balancing seed (positive integer)
6.2.2.16.4.6. Exemple pour appliquer la méthode custom XDP avec un algorithme 5-tuple pour l'interface mon2
Entrer la commande suivante.
(gcap-cli) set advanced-configuration load-balancing mon2 method custom algorithm 5-tuple
Valider.
Le système affiche :
This feature is experimental and possibly unstable.
Traffic may become corrupted and detection might fail.
Here be dragons.
Please type 'CONFIRM' in uppercase to continue
Entrer
CONFIRM
puis valider.
Updating load balancing methods
Updating method for interface mon2
Done.
Updating load balancing parameters
Updating parameters for interface mon2