GithubHelp home page GithubHelp logo

Comments (8)

josevalim avatar josevalim commented on July 22, 2024

The root cause is definitely they are pulling from the same partition. I would investigate directly in Brod if that's the expected behaviour and, if so, how to change it.

from broadway_kafka.

slashmili avatar slashmili commented on July 22, 2024

While I was trying digging into brod, I started looking into BrodwayKafka and poke around with the producer process. When I run :sys.get_status on the producer, I get this huge state https://gist.github.com/slashmili/93b1fd245e65b630bb875ebed8935f10

It seems that producer's buffer is full with messages from different partitions but for some reason is not willing to give it to the processors.

I'm using broadway 1.0.3 and broadway_kafka 0.3.4

from broadway_kafka.

josevalim avatar josevalim commented on July 22, 2024

Ok, that explains it. GenStage PartitionDispatcher expects an even distribution of events but there are large amounts of events going to a single partition. Can you please try out #90?

from broadway_kafka.

slashmili avatar slashmili commented on July 22, 2024

Yup! It's putting the other process into work

Never have been happy to see red signs!

Screenshot 2022-05-07 at 01 15 44

Thanks a lot @josevalim!

from broadway_kafka.

amacciola avatar amacciola commented on July 22, 2024

@slashmili what version of
https://github.com/dashbitco/broadway_dashboard
and
https://hexdocs.pm/phoenix_live_dashboard/Phoenix.LiveDashboard.html

are you using ? because i set mine up to just be

live_dashboard "/dashboard",
        metrics: TelemetrySupervisor,
        additional_pages: [
          broadway: BroadwayDashboard
        ]
    end

but whenever i go to that tab i always get

Screen Shot 2022-05-10 at 7 14 20 PM

from broadway_kafka.

slashmili avatar slashmili commented on July 22, 2024

@amacciola I ran these test in this sample app https://github.com/slashmili/tmp-phoenix-live-dashboard-with-broadway-pluging

In our prod we are using plds and connect the nodes.

But if you can run the sample app and it's working, you might find what's wrong in your app.

from broadway_kafka.

amacciola avatar amacciola commented on July 22, 2024

@slashmili have you ever had it working on any env outside of running it locally NOT using PLDS ?

from broadway_kafka.

slashmili avatar slashmili commented on July 22, 2024

@amacciola No, I don't have an embedded live dashboard in non-dev environments.

from broadway_kafka.

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.