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 · 1927 views
    This topic created in 2043 days ago, the information mentioned may be changed or developed.

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

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

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