0

我们的生产环境通常包含 4-8 个 Apache Web 服务器和 2 个(My)SQL 服务器:

  • 每个 Web 服务器都隶属于一个 SQL 服务器
  • SQL 服务器具有循环复制设置
  • 所有 Web 服务器都是负载平衡的,例如 Pound。

每晚都有一个作业备份其中一个 SQL 服务器,将附属的 Web 服务器锁定大约 10-15 分钟。

有没有办法配置平衡以避免在短时间内到达那些锁定的服务器?

除了备份非生产第三台服务器之外,还有其他方法可以处理此锁定吗?

PS:我们设想在备份之前和之后重新加载 Pound 配置,使用适当的配置文件,但感觉有点奇怪......

4

1 回答 1

1

如何使用poundctl禁用和重新启用后端服务器?它必须在本地运行(命令协议使用 unix 套接字),但您可以通过 ssh 会话远程启动它。

从手册页:

选项

[...]

-B/-bnmr

      Enable/disable a back-end. A disabled back-end will not be passed requests to answer. Note however that existing sessions may still cause requests to be sent their way.

-nnmk

      Remove a session from service m in listener n. The session key is k.
于 2013-03-28T13:27:00.147 回答