Coder Social home page Coder Social logo

Comments (4)

adyliu avatar adyliu commented on May 28, 2024

"增加服务器新端口" 是什么意思?

启用新的groupid会从头收取消息,如果不想从头收取,可手动/程序修改zookeeper中的消费消息的commit。也可以消费一遍即可停止。
另外,历史较大的日志信息,可以考虑自动回滚机制,防止文件过大。

相同的groupid会从上次消费消息的位置开始。

from jafka.

yanghui527 avatar yanghui527 commented on May 28, 2024

Hi,早上好

增加新服务器端口是指增加新的server,例如:我已经启动9092,9093端口,使用这个两个端口一段时间,我增加了9094,
这个时候consumer又会收到之前已经接收过的消息

在 2015年12月28日,下午4:03,Ady Liu [email protected] 写道:

"增加服务器新端口" 是什么意思?

启用新的groupid会从头收取消息,如果不想从头收取,可手动/程序修改zookeeper中的消费消息的commit。也可以消费一遍即可停止。
另外,历史较大的日志信息,可以考虑自动回滚机制,防止文件过大。

相同的groupid会从上次消费消息的位置开始。


Reply to this email directly or view it on GitHub #45 (comment).

from jafka.

yanghui527 avatar yanghui527 commented on May 28, 2024

大神,你好!
再请教一下,我使用kafka不会出现这样的问题,但是出现了另外一个问题,启动多个Consumer时,并没有进行负载均衡,一直只有一个Consumer收到消息,另外的Consumer一直都没有收到过,这块jafka可以做得很好

在 2015年12月29日,上午11:35,700‘s friend [email protected] 写道:

Hi,早上好

增加新服务器端口是指增加新的server,例如:我已经启动9092,9093端口,使用这个两个端口一段时间,我增加了9094,
这个时候consumer又会收到之前已经接收过的消息

在 2015年12月28日,下午4:03,Ady Liu <[email protected] mailto:[email protected]> 写道:

"增加服务器新端口" 是什么意思?

启用新的groupid会从头收取消息,如果不想从头收取,可手动/程序修改zookeeper中的消费消息的commit。也可以消费一遍即可停止。
另外,历史较大的日志信息,可以考虑自动回滚机制,防止文件过大。

相同的groupid会从上次消费消息的位置开始。


Reply to this email directly or view it on GitHub #45 (comment).

from jafka.

adyliu avatar adyliu commented on May 28, 2024

brokers一共有多少片消息,客户端consumer的数量和其匹配即可。

比如一共有6个partition,三个consumer,每个consumer有2个线程,这样每个consumer就可以消费两个patition。

加入第一个consumer就有5个线程,那么第一个consumer消费5个partition,第二个consumer消费1个partition,最后一个consumer无消息可消费。

from jafka.

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.