Git Product home page Git Product logo

Comments (8)

MichaHoffmann avatar MichaHoffmann commented on June 3, 2024 1

It looks like snappy compression is using way more cpu for some reason in 0.33

Edit: Its because snappy compression for gRPC was added in 0.28, you could try 0.33 and use

--receive.grpc-compression=none

and see if it helps? Another hint is that your bandwidth with 0.26 seems to be orders of magnitude higher, also pointing at snappy compression.

See:

      --receive.grpc-compression=snappy
                                 Compression algorithm to use for gRPC requests
                                 to other receivers. Must be one of: snappy,
                                 none

from thanos.

hayk96 avatar hayk96 commented on June 3, 2024 1

Confirming that the use of the --receive.grpc-compression=none field in version 0.33.0 was effective, and now the resource utilization is similar to that in version 0.26.0. Thanks @MichaHoffmann!

from thanos.

douglascamata avatar douglascamata commented on June 3, 2024 1

@hayk96 I don't think you need it there. The routers will take care of firing all the requests to achieve replication. The ingesters have nothing more to do than read the incoming non-compressed request and write the data.

from thanos.

douglascamata avatar douglascamata commented on June 3, 2024 1

I have mixed opinions regarding this. CPU is usually cheaper than network bandwidth. Ingest latency is super important too. If to save network bandwidth we need to pay in latency, this is a very sensible decision. Latency with the compression in @hayk96's environment was awful compared to no-compression. And check that memory usage chart...

from thanos.

douglascamata avatar douglascamata commented on June 3, 2024

I uploaded the profiles to pprof.me:

heap profiles:

cpu profiles

from thanos.

hayk96 avatar hayk96 commented on June 3, 2024

BTW should I add that flag in the receive-ingesters as well, does it make sense?

from thanos.

hayk96 avatar hayk96 commented on June 3, 2024

Maybe we add this in the Troubleshooting; Common cases? What do you think?

from thanos.

MichaHoffmann avatar MichaHoffmann commented on June 3, 2024

Maybe we add this in the Troubleshooting; Common cases? What do you think?

I'm indifferent i think; Its a bit of a tradeoff between network bandwidth and CPU; and usually CPU is cheaper so i think defaulting to snappy here is the correct behavior. But then again you faced the regression during update and would have profited from an FAQ article about it. I dont know whats the best course of action tbh!

from thanos.

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.