登录
首页 >  Golang >  Go问答

nats JetStream 集群消费者没有法定人数,已停止

来源:stackoverflow

时间:2024-04-07 22:51:35 371浏览 收藏

“纵有疾风来,人生不言弃”,这句话送给正在学习Golang的朋友们,也希望在阅读本文《nats JetStream 集群消费者没有法定人数,已停止》后,能够真的帮助到大家。我也会在后续的文章中,陆续更新Golang相关的技术文章,有好的建议欢迎大家在评论留言,非常感谢!

问题内容

我们有 3 个 pod 用于 nat,第一个 pod 不断打印这些日志:

[7] 2023/01/22 12:33:33.774547 [wrn] jetstream cluster consumer 'nbo > notification > hermes_z6yxju8dajhfpjhexmq5a9_notification' has no quorum, stalled.
[7] 2023/01/22 12:33:33.812064 [wrn] jetstream cluster consumer 'nbo > notification > hermes_zmhtx5pmtztbe5dzw5pyqa_notification' has no quorum, stalled.
[7] 2023/01/22 12:33:33.817369 [wrn] jetstream cluster consumer 'nbo > notification > hermes_anofbtwnjduh9yt27oeyds_notification' has no quorum, stalled.
[7] 2023/01/22 12:33:33.828555 [wrn] jetstream cluster consumer 'nbo > notification > hermes_mmwhuq5yjtjtwcskf499yq_notification' has no quorum, stalled.
[7] 2023/01/22 12:33:33.832772 [wrn] jetstream cluster consumer 'nbo > notification > hermes_ukmx8macu2dtkrkwndlyhi_notification' has no quorum, stalled.
[7] 2023/01/22 12:33:33.897561 [wrn] jetstream cluster consumer 'nbo > notification > hermes_9pd8ntojz9qhl5vnbvqemc_notification' has no quorum, stalled.
[7] 2023/01/22 12:33:33.897964 [wrn] jetstream cluster consumer 'nbo > notification > hermes_5uzpd7k7fhaotg2zwyu7yp_notification' has no quorum, stalled.
[7] 2023/01/22 12:33:33.907856 [wrn] jetstream cluster consumer 'nbo > notification > hermes_5zouda4k4pgluhrgmawyfn_notification' has no quorum, stalled.

这个日志是关于什么的?我该如何修复它?

我们的nats-server版本是:2.6.5

JetStream cluster consumer has NO quorum, stalled.

hermes 是我们的通知服务,它是一个 nats 消费者。


正确答案


将您的 nats 服务器更新到 2.8.3+(或更高版本)可能有效,

此外,建议启用 JetStream 的服务器至少配备 4 个 CPU 和 8Gi。

如果您想了解更多信息,请查看此问题 a> 和此讨论

文中关于的知识介绍,希望对你的学习有所帮助!若是受益匪浅,那就动动鼠标收藏这篇《nats JetStream 集群消费者没有法定人数,已停止》文章吧,也可关注golang学习网公众号了解相关技术文章。

声明:本文转载于:stackoverflow 如有侵犯,请联系study_golang@163.com删除
相关阅读
更多>
最新阅读
更多>
课程推荐
更多>