Coder Social home page Coder Social logo

Comments (9)

daixiang0 avatar daixiang0 commented on July 19, 2024

Is it about LB?

from ztunnel.

stevenctl avatar stevenctl commented on July 19, 2024

This involves looking at our concurrency model and configuration and also requires an evaluation method.

from ztunnel.

howardjohn avatar howardjohn commented on July 19, 2024

Tokio has some 'budget' concept but it is per-task. We would want some concept of task-groups.

But we also probably want higher level fairness like bytes/s

https://docs.rs/tokio/latest/src/tokio/runtime/coop.rs.html

from ztunnel.

daixiang0 avatar daixiang0 commented on July 19, 2024

The title is confused, does it mean that Tokio is unfair in some case or we need different priorities for different clients?

from ztunnel.

howardjohn avatar howardjohn commented on July 19, 2024

Tokio fairness is per task. ideally ours would be per-pod

from ztunnel.

daixiang0 avatar daixiang0 commented on July 19, 2024

Tokio fairness is per task. ideally ours would be per-pod

Sounds like the fairness wrt bandwidth for per-pod, which is better to be done by the OS facilities. I know tc or some NICs can do this.

from ztunnel.

howardjohn avatar howardjohn commented on July 19, 2024

Yeah good point, I guess now that we have "in pod" mode, its much easier to do this at the CNI layer

from ztunnel.

howardjohn avatar howardjohn commented on July 19, 2024

There is still some fairness like number of connections open/establish (sending a few bytes of TLS handshake is way more expensive than a few bytes of data) that would be nice to have

from ztunnel.

daixiang0 avatar daixiang0 commented on July 19, 2024

Do you mean fairness in connection pool?

from ztunnel.

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.