Code Monkey home page Code Monkey logo

Comments (7)

nnhy avatar nnhy commented on June 19, 2024

更多主节点的集群都支持,可以在rocketmq控制台上看看集群是否完好。
也可以在每个应用启动日志中看看是否拉取到相同的broker信息。

from newlife.rocketmq.

anzhonghui avatar anzhonghui commented on June 19, 2024

非常感谢您的回答,我尝试创建多个相同group的consumer去消费,发现单节点不会重复消费;当我使用双主双从集群模式的时候,两个consumer会出现重复消费的问题,请问是我使用的方式不正确吗

企业微信截图_17fc83cc-2afe-4a52-8719-37c849a2b014
企业微信截图_aeaf9075-5605-4b6f-b97e-5558087fcf68
企业微信截图_dea06d0e-b7a2-40cd-8e95-535e434e8dfd
企业微信截图_9772101c-94e9-40f1-ad8d-8f913395cfd9

from newlife.rocketmq.

nnhy avatar nnhy commented on June 19, 2024

两个消费者,分开两个进程试试。如果问题消失,说明我们根据ip@pid的方式来做clientid

from newlife.rocketmq.

anzhonghui avatar anzhonghui commented on June 19, 2024

好的,谢谢,我试一下,如果我们只是单机部署,如何提升单个consumer的消费能力?

from newlife.rocketmq.

nnhy avatar nnhy commented on June 19, 2024

你的queue分片数,决定了消费线程数。理论上,更多的queue,就得到更多的消费线程,提升吞吐。
实际上绝大部分消费应用,瓶颈都在于消费到消息后的业务逻辑处理。

from newlife.rocketmq.

anzhonghui avatar anzhonghui commented on June 19, 2024

好的,谢谢您,不好意思,昨天的问题应该是我没研究明白,可以通过设置customer 的 InstanceName来解决,cliendid:ip@InstanceName

from newlife.rocketmq.

anzhonghui avatar anzhonghui commented on June 19, 2024

已解决,谢谢

from newlife.rocketmq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.