< Home

action (real server group view)

Function

The action command configures the action when the number of server connections in a real server group exceeds the maximum value.

Format

action { override | optimize | discard }

Parameters

Parameter Description Value
override Ignores the limit on the maximum number of connections. Setting this parameter may result in the server overload. -
optimize Selects a new server to establish a connection. -
discard Discards server connection requests exceeding the limit. -

Views

Real server group view

Default Level

2: Configuration level

Usage Guidelines

By default, the action when the number of server connections in a server group exceeds the maximum value is Optimize. That is, select a new server for load balancing.

Example

# Set the maximum number of connections on a real server to 5000, and discard the connections exceeding this limit.

<sysname> system-view
[sysname] slb
[sysname-slb] group 0 a
[sysname-slb-group-0] rserver rip 192.168.1.2 max-connection 5000
[sysname-slb-group-0] action discard
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >