本节介绍了如何通过 NSX Advanced Load Balancer CLI 配置这 4 个属性。

配置最大重用属性

: > configure pool pool-test
: pool> conn_pool_properties
: pool:conn_pool_properties> upstream_connpool_conn_max_reuse 5
: pool:conn_pool_properties> save
: pool> save

配置最大缓存属性

: > configure pool pool-test
: pool> conn_pool_properties
: pool:conn_pool_properties> upstream_connpool_server_max_cache 10
: pool:conn_pool_properties> save
: pool> save

配置连接空闲时间属性

: > configure pool pool-test
: pool> conn_pool_properties
: pool:conn_pool_properties> upstream_connpool_conn_idle_tmo 20
: pool:conn_pool_properties> save
: pool> save

配置连接总时长超时属性

: > configure pool pool-test
: pool> conn_pool_properties
: pool:conn_pool_properties> upstream_connpool_conn_life_tmo 100
: pool:conn_pool_properties> save