Git Product home page Git Product logo

Comments (6)

grobian avatar grobian commented on July 25, 2024

-w allows you to multi-thread more or less, if you don't see huge amounts of cpu being taken, you can leave it alone. On larger machines, you may want to increase the value to e.g. the number of available cpu cores.
-b specifies how many metrics are sent to a server at once at most, some receivers really choke when they get a large batch of metrics at once, and would need decreasing this value. The larger the batch, the more efficient the sending gets.
-q the number of metrics that can be enqueued for sending to the server. The bigger this value, the longer the relay can hold up metrics when the server can't handle, or is down, but also the more memory the relay will consume.

from carbon-c-relay.

druchoo avatar druchoo commented on July 25, 2024

-w would you consider making an auto setting that uses # of cores?
-t Can this be used to test rewrite rules?

from carbon-c-relay.

grobian avatar grobian commented on July 25, 2024

-w: yeah, there's just no uniform way to do it, needs some platform specific work, which I was trying to avoid
-t: exactly

from carbon-c-relay.

druchoo avatar druchoo commented on July 25, 2024

-w no worries, -w $(grep -c processor /proc/cpuinfo) works well enough :D
-t how exactly? I have about 20 rules and would like the ability to see which rule(s) a metric hits

from carbon-c-relay.

grobian avatar grobian commented on July 25, 2024

nproc should do the job as well

when run with -t just type the metrics in the console, for instance:

bla.foo.bar 
aggregation
    ^(bla.*)$ (regex) -> bla.foo.bar
    sum(\1_sum) -> bla.foo.bar_sum 
foo.bar
nothing matched foo.bar

from carbon-c-relay.

druchoo avatar druchoo commented on July 25, 2024

Well thanks for getting back to me so quickly. Not sure what I was doing wrong but got it working. thanks again.

from carbon-c-relay.

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.