GithubHelp home page GithubHelp logo

Comments (5)

mikkeloscar avatar mikkeloscar commented on July 29, 2024

The individual Stack objects could have a traffic weight field on themselves

This is how I initially implemented it. It has the problem that you can't really modify the traffic weights in a transaction, so you could end up setting 0 on one stack and fail to set 100 on the other resulting in undesired traffic distribution.
However we do it, it should be something you can modify on a single resource.

@szuecs had some thoughts around a SkipperRoute resource type which is related and also could be considered here IMO.

from stackset-controller.

szuecs avatar szuecs commented on July 29, 2024

I think it makes sense to store it in StackSet and distribute to ingress, because for http routers it does not makes sense to "integrate" with stackset, it should be the stackset-contrller making the change happen to ingress. The advantage with ingress is that other controller like traefik already support zalando.org/backend-weights, so we should not change that for skipper or as target.

SkipperRoute should only be used in favor for custom-routes, in my opinion. Maybe the idea will expand, but I did not started yet with the SkipperRoute anyways.

from stackset-controller.

mikkeloscar avatar mikkeloscar commented on July 29, 2024

My concern with having it directly on the StackSet resource is that it becomes quite hard to just reapply the StackSet because the list of traffic distribution is dynamic so you would have to always modify the stackset resource you are applying to have the desired traffic distribution.

from stackset-controller.

szuecs avatar szuecs commented on July 29, 2024

@mikkeloscar I am fine with only having it in the ingress.
We have to have the 2 annotations anyways to have the desired -> current.

I would say we should close this issue. What do you think @linki?

from stackset-controller.

szuecs avatar szuecs commented on July 29, 2024

No answer and we store now the values in stackset spec.Traffic and status.Traffic

from stackset-controller.

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.