› NGINX
› NGINX Trac
› 3rd Party Modules
› Security Advisories
› CHANGES
› OpenResty
› ngx_lua
› Tengine
在线学习资源
› NGINX 开发从入门到精通
NGINX Modules
› ngx_echo
chana71
V2EX  ›  NGINX

有没有一种负载策略-存在一种节点在其他节点都不可达才转发到该节点

  •  
  •   chana71 · Oct 10, 2020 · 2300 views
    This topic created in 2243 days ago, the information mentioned may be changed or developed.

    nginx 做 mysql 读库负载,因为要避免读库均不可用时集群不可读,要将写库(主从切换 ip 不固定)也添加到 nginx 负载中,因此有了题目的需求,当读库均不可用读写库。请教这种该怎么做

    novaeye
    novaeye
    Oct 10, 2020
    1
    把写库设置为 backup
    ik
    ik
    Oct 10, 2020 via iPhone
    2
    7 层 有 backup, 描述似乎是 4 层转发?
    chana71
    chana71
    OP
    Oct 10, 2020
    3
    @novaeye 感谢

    @ik 感谢 是的,为什么 7 层才有,我试一下
    ik
    ik
    Oct 10, 2020 via iPhone
    4
    我不确定 4 层有没有这功能哈,你可以试试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4832 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 02:15 · PVG 10:15 · LAX 18:15 · JFK 21:15
    ♥ Do have faith in what you're doing.