< Home

rserver

Function

The rserver command modifies the configuration parameters of a real server.

Format

rserver rserver-id { port port-number | weight weight-value | status { inactive | health-check }| max-connection max-connection-value | description description-text } *

Parameters

Parameter Description Value
rserver-id

Specifies the ID of a real server.

The value is an integer ranging from 0 to 31.

port port-number

Specifies the port number of a real server.

The value is an integer ranging from 0 to 65535. If the port number is 0, no port translation is performed. In this case, the real server port is the same as the port of the virtual server by default.

weight weight-value

Specifies the weight of a real server.

The value is an integer ranging from 1 to 8192.

The weight sum of servers in a real server group must be equal to or less than 8192.

inactive

Indicates that a real server is in inactive state.

-

health-check

Performs service health check on a real server.

-

max-connections max-connections-value

Specifies the maximum number of connections on a real server.

The value is an integer ranging from 0 to 65535.

description description-text

Specifies the description of the real server.

It is a string of 1 to 32 characters.

Views

Real server group view

Default Level

2: Configuration level

Usage Guidelines

Either this command or the rserver rip command can be used to modify the port number, weight, or status of a real server. The difference is that you do not need to specify the real server IP address in the rserver command. Instead, you can set a real server ID to specify the real server.

If you set a real server to inactive state (inactive), the FW does not check its health status and the server does not participate in traffic distribution.

Example

# Change the port number of the real server with the ID of 1 to 10001.

<sysname> system-view
[sysname] slb
[sysname-slb] group 1 grp1
[sysname-slb-group-1] rserver 1 port 10001
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >