LB:set_peer(ip, port)
Allows you to select a real server with a specific IP and port.
Syntax
LB:set_peer(ip, port)
Arguments
| Name | Description |
|---|---|
|
ip |
A real server IP address. Note: Only the IP address in a real server from the regular pool can be used here; it cannot use a real server from the schedule pool. If a real server is not specified, then FortiADC will select a real server by using the specified load-balancing method. |
|
port |
A real server port. Note: Only the port in a real server from the regular pool can be used here; it cannot use a real server from the schedule pool. If a real server is not specified, then FortiADC will select a real server by using the specified load-balancing. |
Events
Applicable in STREAM_REQUEST_DATA.
Example
when STREAM_REQUEST_DATA {
LB:set_peer("10.0.0.1","443")
}
Supported Version
FortiADC version 7.2.7.