Skip to content
Smarter by Design.Simpler for Business

lb limits ​

The lb limits command creates the limit profiles that determine how much load a vService will carry at the same time. The profile carries the number of connections, the connection and session rate per second, the SSL limits and the buffer size. Its panel equivalent is the vService Limits screen.

Command Summary ​

TR7 WEB-CLI · lb limits
# Tab after the command
admin@TR7LBWAF01> lb limits
add delete list show update
 
admin@TR7LBWAF01> lb limits list # list all of them
admin@TR7LBWAF01> lb limits show <id> # show one
admin@TR7LBWAF01> lb limits add name <name> … # new profile
admin@TR7LBWAF01> lb limits update id <id> … # change
admin@TR7LBWAF01> lb limits delete <id> # delete
admin@TR7LBWAF01>  

Required Fields ​

OrderFieldStatusValue
1nameRequiredThe name of the profile; it must be unique in the collection

The Limit Fields ​

All the fields are integers and, when they are not given, they are applied with their default values.

FieldWhat it doesWhat is written after it
--maxConnLimits the total number of connections that the service will carry at the same timeA number between 0 and 1,000,000 (default 20000)
--maxConnRateLimits the number of connections that will be accepted per secondA number (default 10000)
--rateLimitSessionsLimits the number of new connections that will be opened per secondA number (default 5000)
--maxSessRateLimits the session rate per secondA number (default 10000)
--maxSslConnLimits the total number of SSL connections that will be carried at the same timeA number (default 5000)
--maxSslRateLimits the number of SSL connections that will be established per secondA number (default 2000)
--maxRetriesLimits how many times connecting to the backend will be retriedA number between 0 and 1000 (default 3)
--maxBufferSizeDetermines the buffer size that the service will useBetween 16 and 262144 kB (default 128)

Zero does not mean unlimited

The smallest value of the fields is zero; writing zero in a limit does not release that resource. In order to loosen the limit, the value is increased.

Examples ​

TR7 WEB-CLI · the limit profile
admin@TR7LBWAF01> lb limits add name portal-limits \
--maxConn 50000 --maxConnRate 20000 --rateLimitSessions 8000 \
--maxSslConn 15000 --maxSslRate 4000 --maxBufferSize 256
 
admin@TR7LBWAF01> lb limits update id <id> --maxRetries 5
admin@TR7LBWAF01> lb service update id <vService> --poolLimits <profile>
admin@TR7LBWAF01> lb limits delete <id>
admin@TR7LBWAF01>  

Things to Know ​

  • A profile does not work on its own. The limits are applied when the profile is bound to a vService with the --poolLimits field. This field is found in the vServices of the HTTP and TCP types.
  • The SSL limits are independent of the total limit. Even if the --maxSslConn value is greater than the --maxConn value, the total connection limit is still valid.
  • The buffer size affects the memory. When --maxBufferSize is increased, the service uses more memory; the resource limits should be evaluated together with the lb service record and the --qos fields in it.
  • The name is unique. A second profile with the same name cannot be created.