白日放歌须纵酒,青春作伴好还乡。这篇文章主要讲述keepalived的weight相关的知识,希望能为你提供帮助。
1.weight 大于0
如果脚本监测失败,优先级不变,如果成功,优先级增加,如果后续监测失败,则优先级在增加的基础上回退,这个weight不会持续增加或减小,只会存在两个值
2.weight 小于0
如果脚本监测失败,优先级降低,如果成功,优先级不变,这个weight不会持续增加或减小,只会存在两个值
【keepalived的weight】另外,keepalived启动时,不论rise和fall的设置的是多少,首次监测脚本,都会根据上面的原则调整,后续的调整则要只有在进入fall和rise到达之后才会调整
Thedefaultweight equals 0, which means that any VRRP instance moni-
toring the script will transition to the fault state after < fall>
consecutivefailuresof the script. After that, < rise> consecu-
tive successes will cause VRRP instancestoleavethefaultstate,
unlessthey are also in the fault state due to other scripts or inter-
faces that they are tracking.
Apositiveweightmeansthat< rise> successeswilladd
< weight> to the priority of all VRRP instances which monitor it.
On the opposite, a negative weight will be subtracted from theinitial
priority in case of < fall> failures.
参考:??https://www.keepalived.org/manpage.html??
推荐阅读
- 终于把性能测试这事儿讲清楚了
- 文件管理和用户权限
- #yyds干货盘点#AIX shell工具集
- Springboot docker jenkins 自动化部署并上传镜像
- #yyds干货盘点#Nginx的核心配置
- 国内镜像汇总-极速下载JavaPub版#yyds干货盘点#
- oeasy教您玩转vim - 69 - # 折叠folding入门
- Prometheus监控运维实战十七( 高可用与扩展性)
- 香港服务器有显示器吗()