应用平台 APPSTAGE-SLB实例配置:其他配置

时间:2024-07-24 14:36:06

其他配置

表13 confLuaConf字段说明

参数名

说明

addGreyFlag

灰度标记开关,取值为on或off。

greyTestSwitch

灰度测试开关,取值为on或off。

greyTestServiceId

灰度测试服务Id。

greyTestSwitch为on时必传。

getIpType

取IP方式,取值为1或2,1表示从左取,2表示从右取,默认为1。

isBypassOnGreyDown

灰度服务器全部宕机后,请求路由到生产开关,取值为on或off,默认为off。

areaGreyGetIpFromLeft

地域灰度IP从左侧取值开关,取值为on或off,默认为off。

greyTestQpsLimit

灰度测试每秒转发量限制,取值为1到1000。

successRateAlarmAbsThreshold

成功率告警阈值绝对值,非负浮点数,取值为0到100,默认值为90。

successRateAlarmOffsetThreshold

成功率下降告警阈值(相比1分钟前或者5分钟前),非负浮点数,取值为0到100,默认值为5。

healthCheckAlarmServerCountThreshold

健康检查不健康机器数告警阈值,正整数,默认为1,表示有1台节点不健康就会告警。

healthCheckAlarmDurationThreshold

健康检查告警持续时间阈值,非负正整数,默认为0,表示不健康主机立即告警;如果配置为1,表示发现不健康持续1分钟以上,才会告警。

concurrentFlowControlAlarmThreshold

并发请求流控告警阈值,非负整数,默认为0,表示只要发生1次流控,就会告警。

serviceFlowControlAlarmThreshold

服务级流控告警阈值,非负整数,默认0,表示只要发生1次流控,就会告警。

singleParamFlowControlAlarmThreshold

自定义参数流控告警阈值,非负整数,默认0,表示只要发生1次流控,就会告警。

multiParamFlowControlAlarmThreshold

多参数流控告警阈值,非负整数,默认0,表示只要发生1次流控,就会告警。

quotaFlowControlAlarmThreshold

配额流控告警阈值,非负整数,默认0,表示只要发生1次流控,就会告警。

manyRequestPreAlarmThreshold

请求数过多告警阈值,正整数,例如:25000,表示每个cpu每分钟平均处理达到25000请求,则触发告警。

以4C的主机为例,1分钟处理超过25000*4=100000请求,则开始告警。

manyRequestAlarmThreshold

请求数警阈值,非负整数,默认为0。

statisticsParams

统计日志参数,格式为格式为ParamName:position。

  • ParamName为参数名称。
  • Position为参数位置,取值为queryString或header。

slb_instance_config/conf_lua_config.yaml #其他配置

addGreyFlag: 'off'                                          #非必填,灰度标记开关,取值为off或on
greyTestSwitch: 'off'                                       #非必填,灰度测试开关,取值为off或on
greyTestServiceId: 123456                                   #非必填,灰度测试服务ID
isBypassOnGreyDown: 'off'                                   #非必填,宕机时路由到生产集群开关,取值为off或on
areaGreyGetIpFromLeft: 'off'                                #非必填,地域灰度IP从左取值开关 ,取值为off或on
getIpType: 1                                                #非必填,取IP方式,取值为1或2
statisticsParams:                                           #非必填,统计日志参数
greyTestQpsLimit: 1000                                     #非必填,灰度测试每秒转发量限制,取值为1到1000
manyRequestAlarmThreshold: 1000                             #非必填,请求数量告警 
successRateAlarmAbsThreshold: 90                            #非必填,成功率告警阈值,取值为0到100
successRateAlarmOffsetThreshold: 90                         #非必填,成功率下降告警阈值,取值为0到100
healthCheckAlarmServerCountThreshold: 1000                  #非必填,健康检查告警阈值
healthCheckAlarmDurationThreshold: 1000                     #非必填,健康告警持续时间阈值
concurrentFlowControlAlarmThreshold: 1000                   #非必填,并发连接流控告警阈值
serviceFlowControlAlarmThreshold: 1000                      #非必填,服务级流控告警阈值
multiParamFlowControlAlarmThreshold: 1000                   #非必填,多参数流控告警阈值
singleParamFlowControlAlarmThreshold: 1000                  #非必填,自定义参数流控告警阈值
quotaFlowControlAlarmThreshold: 1000                        #非必填,配额流控告警阈值
manyRequestPreAlarmThreshold: 1000                          #非必填,请求数量预告警
support.huaweicloud.com/devg-appstage/appstage_06_0088.html