Coder Social home page Coder Social logo

Comments (4)

StevenLeiZhang avatar StevenLeiZhang commented on June 11, 2024

I think we need expose the count of encoder to Helm values, allow users set it. If user dose not set it , the default value is cpu count.

from kubevela.

dhiguero avatar dhiguero commented on June 11, 2024

Thanks for the detailed report, we need to investigate potential fixes.

from kubevela.

charlie0129 avatar charlie0129 commented on June 11, 2024

Thanks for the report and solution. Yes, I think simply importing _ "go.uber.org/automaxprocs" should fix this problem. The concurrent encoders will be set correctly according to CPU quota instead of the CPU count on the node. As a bonus, performance should increase a bit because of reduced context switching.

TLDR

Cause: the zstd encoder uses concurrent encoders to maximize performance. The number of concurrent encoders is the number of CPUs on the node (which can be very large, and much larger than container CPU quota), thus taking up significant memory on momory-limited containers and provide no performance improvement on CPU-limited containers.

Fix: Reducing the number of concurrent encoders should reduce memory usage. Setting it to container CPU quota should achieve the best performance (improved concurrency compared to lower numbers and minimized context switches compared to higher numbers).

from kubevela.

wonderflow avatar wonderflow commented on June 11, 2024

https://github.com/kubevela/pkg/releases/tag/v1.9.0 I've released the new version with bugfix PR merged. Can someone help upgrade the pkg version for kubevela?

from kubevela.

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.