重新降低失败恢复期间负载流入不平衡

发布于 2025-02-02 19:37:46 字数 727 浏览 3 评论 0原文

首先,英语不是我的母语,所以我希望您能理解,即使这很奇怪。

我的系统使用DOT-NET CORE WEB服务器。 我使用redis 写/读取分布 我使用Sentinel建立了故障恢复系统。

来自Dotnet Core Web服务器 使用Redis Master编写,并应用从属的读取方差。

但是,在故障测试期间,写入/读取方差仅针对已更改的主。

如果您关闭写入/阅读分发,请仅与主工作以减轻负载并执行故障测试,将负载很好地放入更改的主机中。

监视正在查看zabbix上的intantaneous_ops_per_sec。

总而言之,在使用Haphroxy进行REDIS的故障转移测试期间,

  1. 具有写入/读取分布,负载仅集中在主上。
  2. 如果关闭写入/读取方差,则当然,负载仅集中在主上。

我认为在1的情况下,应该在奴隶雷迪斯上有阅读负载,但是我现在在考虑它,因为它不是。

如果您有这种经验,请分享。

即使我尝试搜索谷歌搜索,我也无法搜索。

程序和相关库

    • Dotnet Core 3.1 lib-> stackexchange.redis.extensions 5.5.0
    • haproxy 2.1.7
    • redis 5.0.7

First of all, English is not my mother tongue, so I hope you understand even if it is strange.

My system uses a dot-net core web server.
I use redis
Write/read distribution as haphroxy
I built a failure recovery system with sentinel.

From dotnet core web server
Write with redis master and read variance with slave are applied.

However, during the failure test, the write/read variance is directed only to the changed master.

If you turn off the write/read distribution, work with only the master to put the load, and perform a failure test, the load is well put into the changed master.

Monitoring is looking at Instantaneous_ops_per_sec on zabbix.

In summary, during the failover test for redis using haphroxy,

  1. With write/read distribution, load is concentrated only on the master.
  2. If you turn off the write/read variance, of course the load is concentrated only on the master.

I think in the case of 1, there should be a reading load on slave redis, but I'm thinking about it now because it's not.

If you have this experience, please share it.

I can't search even if I try googling.

Programs and associated libraries

    • dotnet core 3.1
      lib -> StackExchange.Redis.Extensions 5.5.0
    • haproxy 2.1.7
    • Redis 5.0.7

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文