文档目录

修改负载均衡监听器参数(ChangeLoadBalancerListener)

用户可以使用ChangeLoadBalancerListener修改负载均衡监听器参数。 例如:
ChangeLoadBalancerListener uuid=dc0ee73ed875423a81234fc091e3ce70

参数(Parameters)

名字 描述 可选的 可选的参数值 起始支持版本
uuid 资源的UUID,唯一标示该资源 3.4.0
connectionIdleTimeout 3.4.0
maxConnection 3.4.0
balancerAlgorithm
  • roundrobin
  • leastconn
  • source
3.4.0
healthCheckTarget 3.4.0
healthyThreshold 3.4.0
unhealthyThreshold 3.4.0
healthCheckInterval 3.4.0
healthCheckProtocol 负载均衡健康检查协议
  • tcp
  • udp
  • http
3.9.0
healthCheckMethod 健康检查方法
  • GET
  • HEAD
3.9.0
healthCheckURI 健康检查的URI 3.9.0
healthCheckHttpCode 健康检查期望的成功返回码 3.9.0
aclStatus 访问控制状态
  • enable
  • disable
3.9.0
securityPolicyType TLS安全策略
  • tls_cipher_policy_default
  • tls_cipher_policy_1_0
  • tls_cipher_policy_1_1
  • tls_cipher_policy_1_2
  • tls_cipher_policy_1_2_strict
  • tls_cipher_policy_1_2_strict_with_1_3
4.1.0
nbprocess 负载均衡进程数量 4.1.0
httpMode 负载均衡HTTP模式
  • http-keep-alive
  • http-server-close
  • http-tunnel
  • httpclose
  • forceclose
4.1.0
sessionPersistence 会话保持模式
  • disable
  • iphash
  • insert
  • rewrite
4.6.0
sessionIdleTimeout 会话保持超时时间 4.6.0
cookieName Cookie名称 4.6.0
userTags 用户标签,请参见 创建用户标签(CreateUserTag) 3.4.0
systemTags 系统标签,请参见 创建系统标签(CreateSystemTag) 3.4.0
timeout
httpRedirectHttps http重定向https
  • disable
  • enable
4.7.21
redirectPort 重定向端口 4.7.21
statusCode 重定向状态码
  • 301
  • 302
  • 303
  • 307
  • 308
4.7.21
httpVersions 负载均衡器前端网络http协议版本
  • h1
  • h2
5.0.0
tcpProxyProtocol tcp proxy_protocol协议
  • v1
  • v2
  • disable
5.0.0
httpCompressAlgos http压缩算法
  • deflate
  • raw-deflate
  • gzip
  • diasble
5.0.0
Note:
  • ZStack Cloud修改负载均衡监听器参数时支持设置后端server的权重,SystemTags增加balancerWeight选项。
    • 选项格式为:balancerWeight::{nicUuid}::{weight} ,其中weight为对应后端server的权重.范围:0~100的整数,默认为100。
    • 例如:balancerWeight::{"c44007641c9040c6b2587e19b1b3e2b0"}::{100}
CLI命令使用手册 | 5.5.30 | ZStack Cloud · ZCF | ZStack 资源中心