haproxy参数
BACKEND
inter相关参数
inter
fastinter
downinter
The "inter" parameter sets the interval between two consecutive health checks to
inter参数设置用户两个连续的health check的时间间隔,即延时
以上表格含义:
Server state
Interval used
UP 100% (non-transitional)
"inter"
Transitionally UP (going down "fall"),Transitionally DOWN (going up "rise"),or yet unchecked.
"fastinter" if set,"inter" otherwise.
DOWN 100% (non-transitional)
"downinter" if set,"inter" otherwise.
当服务器是up状态,无改变时,使用inter参数设置health check的延时去进行探测
当服务器状态有变化时,如从up->down;
以及从down->up时,如果设置了fastinter就会使用fastinter的参数去进行health check,否则使用inter参数
当服务器是down时,可以使用downinter参数,来设置down掉后的探测时间间隔
Just as with every other time-based parameter, they can be entered in any other explicit unit among { us, ms, s, m, h, d }. The "inter" parameter also serves as a timeout for health checks sent to servers if "timeout check" is not set. In order to reduce "resonance" effects when multiple servers are hosted on the same hardware, the agent and health checks of all servers are started with a small time offset between them. It is also possible to
add some random noise in the agent and health checks interval using the global "spread-checks" keyword. This makes sense for instance when a lot of backends use the same servers.
Supported in default-server: Yes
【haproxy参数】像其他任何基于时间的参数一样,inter也可以输入任何明确的单位,(如us,ms,s,m,h,d),inter 参数也可以使用到timeout检测中,前提是配置了timeout check;当多个server在同一个物理硬件上,为了减少“共鸣”影响,health check的开始时间会有一个小小的时间的偏移。也可以使用“spread-check”给两次的health check的时间间隔增加一些随机时间,这个在多个backend使用的server相同是可以起到很大的作用
推荐阅读
- [源码解析]|[源码解析] NVIDIA HugeCTR,GPU版本参数服务器---(3)
- 接口|axios接口报错-参数类型错误解决
- performSelectorOnMainThread:withObject:waitUntilDone:参数设置为NO或YES的区别
- iview|iview upload 动态改变上传参数
- 小程序开发|小程序开发 - 页面传值url类型
- Qiime2|Qiime2 cutadapt使用参数
- linux作业9
- HAProxy+KeepAlived高可用负载均衡搭建
- 椭圆参数的推导过程
- Flink总结-运行命令参数分析