Fortinet white logo
Fortinet white logo

Script Reference Guide

LB:upstream(real_server)

LB:upstream(real_server)

Allows you to select a real server.

Syntax

LB:upstream(real_server)

Arguments

Name Description

real_server

A real server name.

Note:

Only 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.

Events

Applicable in the following events:

  • STREAM_CLIENT_INIT

  • STREAM_REQUEST_DATA

Example

when STREAM_REQUEST_DATA { 
    LB:upstream("real-server-01") 
} 

Supported Version

FortiADC version 6.1.1 and later.

LB:upstream(real_server)

LB:upstream(real_server)

Allows you to select a real server.

Syntax

LB:upstream(real_server)

Arguments

Name Description

real_server

A real server name.

Note:

Only 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.

Events

Applicable in the following events:

  • STREAM_CLIENT_INIT

  • STREAM_REQUEST_DATA

Example

when STREAM_REQUEST_DATA { 
    LB:upstream("real-server-01") 
} 

Supported Version

FortiADC version 6.1.1 and later.