You configure reverse proxy balancing rules at the network-policy load-balancing reverse-proxy level.
To create a reverse proxy load balancing rule, use the following command:
Admin@nodename# create network-policy load-balancing reverse-proxy <position> upl-rule
Reverse proxy 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("RP balancer"). |
desc |
A description of the rule. Example: desc("Test reverse-proxy balancing rule"). |
profile |
Specify the profiles of the reverse proxies to which the load will be distributed. For more details about how to create and configure reverse proxy servers using CLI, see Configuring Reverse Proxy Servers. Example: profile("Reverse proxy server1", "Reverse proxy server2"). |
To edit the parameters of an existing reverse proxy balancing rule, use the following command:
Admin@nodename# set network-policy load-balancing reverse-proxy <position> upl-rule
The parameters available for setting are the same as those for creating a reverse proxy balancing rule.
To display information about all reverse proxy balancing rules, use the following command:
Admin@nodename# show network-policy load-balancing reverse-proxy
To display information about a specific reverse proxy balancing rule, use the following command:
Admin@nodename# show network-policy load-balancing reverse-proxy <position>
Example command to create a reverse proxy load balancing rule using UPL:
Admin@nodename# create network-policy load-balancing reverse-proxy 1 upl-rule OK \ ...profile("Reverse proxy server1", "Reverse proxy server2") \ ...desc("Test reverse proxy balancing rule") \ ...name(test_reversep1) \ ...enabled(true) ... Admin@nodename# show network-policy load-balancing reverse-proxy % ----------------- 1 ----------------- OK \ profile("Reverse proxy server1", "Reverse proxy server2") \ desc("Test reverse proxy balancing rule") \ enabled(true) \ id("1ed892bb-26ee-4ab1-8a55-2f412ce8b55a") \ name(test_reversep1)
To delete an existing reverse proxy load balancing rule, use the following command:
Admin@nodename# delete network-policy load-balancing reverse-proxy <position>