Git Product home page Git Product logo

Comments (8)

mhollick avatar mhollick commented on June 27, 2024

Forgot to say thankyou...
My mother would cry.

from carbon-c-relay.

grobian avatar grobian commented on June 27, 2024

Hmmm, this surprises me a lot indeed!

from carbon-c-relay.

grobian avatar grobian commented on June 27, 2024

Crap, no good, evaluation problem here. The destinations for a metric are evaluated in one go, thus the rewrite inbetween changes the value for the entire run.

from carbon-c-relay.

grobian avatar grobian commented on June 27, 2024
% ./relay -f issue14.conf -p 4000
[2014-09-12 15:21:18] starting carbon-c-relay v0.32 (726485-dirty)
configuration:
    relay hostname = gaia.local
    listen port = 4000
    workers = 16
    send batch size = 2500
    server queue size = 25000
    routes configuration = issue14.conf

parsed configuration follows:
cluster new
    forward
        127.0.0.1:5000
    ;
cluster old
    forward
        127.0.0.1:6000
    ;

match ^carbon\.relays\..*$
    send to blackhole
    stop
    ;
match *
    send to old
    ;
rewrite ^foo\.(.*)
    into bar.\1
    ;
match *
    send to new
    ;

listening on tcp4 0.0.0.0 port 4000
listening on tcp6 :: port 4000
listening on UNIX socket /tmp/.s.carbon-c-relay.4000
starting 16 workers
starting statistics collector
% echo "foo.monkey 4 `date +%s`" | nc 127.0.0.1 4000
% nc -l 5000
bar.monkey 4 1410528100
% nc -l 6000
foo.monkey 4 1410528100

...
ok, getting close, but not quite yet

from carbon-c-relay.

grobian avatar grobian commented on June 27, 2024

oi, old is 6000, so it IS correct (thought I got it reversed somehow)

from carbon-c-relay.

grobian avatar grobian commented on June 27, 2024

I'd appreciate a test of this commit. I had to do some sneaky malloc changes (see commit message), so it is not impossible the thing crashes after handling some data. I think I traced all starts and ends, so it should be fine from that point of view.

from carbon-c-relay.

mhollick avatar mhollick commented on June 27, 2024

Thanks,
I shall run it through the wringer.

from carbon-c-relay.

mhollick avatar mhollick commented on June 27, 2024

Looks Good!
Sorry I got the expected results the wrong way round in the example..

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.