Giter Club home page Giter Club logo

Comments (3)

komealy avatar komealy commented on August 16, 2024

It looks like this is mitigated somewhat with the .WithLeaseStealing(true) chained function when setting up your config.NewKinesisClientLibConfig(). It doesn't get to the point of "perfect" parity, but it does help somewhat. I was trying to avoid setting .WithMaxLeasesForWorker(maxLeasesPerWorker) because if the kinesis stream scales in-flight, that would have to be re-evaluated...

The current suggestion in another issue is to have a polling loop checking for the shard count, and possibly just exiting when it changes. That way the process will come back up in a container orchestration scenario with the new values, and work out anyway. I would like to see a solution that is a bit more graceful...

from vmware-go-kcl.

taoj-action avatar taoj-action commented on August 16, 2024

In your case, set WithMaxLeasesForWorker(8) to put a cap on the workload for workers.
https://github.com/vmware/vmware-go-kcl/blob/master/test/worker_test.go#L76

from vmware-go-kcl.

komealy avatar komealy commented on August 16, 2024

Yes, that is what I ended up doing. I understand that the behavior of this is meant to coincide with AWS's java version of the KCL, and it would act the same way and require me to use the same setting.

My original request probably would need to go to AWS to have them create a balanced mode that does this load balancing automatically without me needing to change settings and restart clients to apply those settings when some scaling happens.

I can live with restarting my clients whenever my kinesis stream OR my clients scale horizontally to redistribute the load. I just think it could be done more gracefully in runtime without as much interruption and restarting needed.

from vmware-go-kcl.

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.