Closed claudio-benfatto closed 7 years ago
As far as I understand in current implementation hosts should be always sorted, both in carbon-c-relay and bucky. Put 47063e1b-1a9e-4c23-ac1c-ad187c69f76f...
host first, and then – 501a1bb8-7860-4b39-8045-470f504ae0a3...
- that should work.
@deniszh many thanks for your prompt answer.
It seems to me that carbon-c-relay
should support sorting via instance
labels: https://github.com/grobian/carbon-c-relay/blob/master/carbon-c-relay.md#configuration-syntax
in particular:
To influence the ordering, the instance given to the server will be used as sorting key. Without, the order will be as given in the file. It is a good practice to fix the order of the servers with instances such that it is explicit what the right nodes for the jump hash are.
@claudio-benfatto: Yes, carbon-c-relay
should support that, but I didn't test it though. Not sure if buckytools supporting that too.
I think I found the source of the issue. Could you please review this PR: https://github.com/jjneely/buckytools/pull/14 when you find some time?
Thanks!
Sure! But I'm just an ordinary user of a tool, the only @jjneely can merge your change.
thanks anyway @deniszh , I really appreciate it :)
Changes have been merged in.
Hello, I'm trying to make buckytools work in combination with
carbon-c-relay
using ajump_fnv1a_ch
hash type and replication 1:the
carbon-c-relay
configuration is the following:while
buckyd
is started with the following parameters:the problem is (I think but I'm not sure of it) that the
bucky
commands are reversing the index of the nodes in the hashring:and this affects all the other commands as well such as
inconsistent
andrebalance
:I was wondering whether I was doing something wrong, especially with the configuration parameters and how could I debug further the cause of these issues.
Many thanks!