Git Product home page Git Product logo

Comments (6)

grobian avatar grobian commented on July 25, 2024

nope, carbon-c-relay doesn't support the "target" or whatever it is called (the ":a")

from carbon-c-relay.

deniszh avatar deniszh commented on July 25, 2024

Just remove :a from DESTINATIONS -
DESTINATIONS = 10.0.0.100:2120,10.0.0.200:2120,10.0.0.300:2120,10.0.0.400:2120
will work in compatible way. If you are using it on localhost you can use IP 127.0.0.X then.

from carbon-c-relay.

gdavis33 avatar gdavis33 commented on July 25, 2024

I see what you mean now. Unfortunately removing the targets that would change the hashing of the current relays so I'd have the same issue of whisper duplication. Looks like I'll have to merge whispers either way. Thanks for the clarification.

from carbon-c-relay.

grobian avatar grobian commented on July 25, 2024

Unless it is really important for you, I'd rather not implement it. If you're /only/ using ":a", you could consider patching consistent-hash.c to replace "(None)" with "a" in the carbon_ch construction.

from carbon-c-relay.

gdavis33 avatar gdavis33 commented on July 25, 2024

@grobian thanks for the suggestion it worked perfectly. If anyone else needs this behaviour line 127 of consistant-hash.c gets modified as below.

snprintf(buf, sizeof(buf), "('%s', None):%d", server_ip(s), i);
becomes
snprintf(buf, sizeof(buf), "('%s', 'a'):%d", server_ip(s), i);

from carbon-c-relay.

deniszh avatar deniszh commented on July 25, 2024

@gdavis33,
yep, but only when you are using same instance ':a' across all relays. :)

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.