You configure this section at the network-policy load-balancing icap level.
To create an ICAP load balancer, use the following command:
Admin@nodename# create network-policy load-balancing icap <position> upl-rule
ICAP load balancing rules have the following parameters:
Parameter |
Description |
---|---|
PASS OK |
Action to create a rule using UPL. |
enabled |
Enable/disable a rule:
|
name |
The name of the balancing rule. Example: name("ICAP balancer"). |
desc |
A description of the rule. Example: desc("Test ICAP balancer rule"). |
profile |
Specify ICAP profiles of servers to which the load will be distributed. For more details about how to create and configure ICAP servers using CLI, see Configuring ICAP Servers. Example: profile("ICAP server1", "ICAP server2"). |
To edit the parameters of an existing ICAP load balancing rule, use the following command:
Admin@nodename# set network-policy load-balancing icap <position> upl-rule
The parameters available to update are the same as those for creating an ICAP server balancer.
To display information about all ICAP balancing rules, use the following command:
Admin@nodename# show network-policy load-balancing icap
To display information about a specific ICAP load balancing rule, use the following command:
Admin@nodename# show network-policy load-balancing icap <position>
Example command to create a ICAP load balancer rule using UPL:
Admin@nodename# create network-policy load-balancing icap 1 upl-rule OK \ ...profile("ICAP server1", "ICAP server2") \ ...name(icap_balancer1) \ ...desc("Test ICAP balancer rule") \ ...enabled(true) Admin@nodename# show network-policy load-balancing icap % ----------------- 1 ----------------- OK \ profile("ICAP server1", "ICAP server2") \ desc("Test ICAP balancer rule") \ enabled(true) \ id("65dcf725-818a-4023-a791-3bdb78df256e") \ name(icap_balancer1)
To delete an existing ICAP load balancing rule, use the following command:
Admin@nodename# delete network-policy load-balancing icap <position>