To be thorough, token ranges do not overlap per DC. Ranges in different DCs
do overlap as the token distribution is different.
Le mer. 31 août 2016 10:51, Moshe Levy a écrit :
>
>
> .
> P
>
> On Wednesday, 31 August 2016, Alexander DEJANOVSKI
> wrote:
>
>> Hi Siddharth,
>>
>> yes, we are sure
.
P
On Wednesday, 31 August 2016, Alexander DEJANOVSKI
wrote:
> Hi Siddharth,
>
> yes, we are sure token ranges will never overlap (I think the start token
> in describering output is excluded and the end token included).
>
> You can get per host information in the Datastax Java driver using :
>
Hi Siddharth,
yes, we are sure token ranges will never overlap (I think the start token
in describering output is excluded and the end token included).
You can get per host information in the Datastax Java driver using :
Set rangesForKeyspace = cluster.getMetadata().getTokenRanges(
keyspaceName
Hi ,
Can we be sure that, token ranges in nodetool describering will be non
overlapping?
Thanks
Siddharth Verma
Hi Alex,
Thanks for your reply.
I saw describering yesterday, but didn't know "the first endpoint being the
primary". Thanks for that.
Is there anyway to get the same information in application?
If there isn't any way to get the same information at application layer, I
would be using this as a back
Hi Siddarth,
I would recommend running "nodetool describering keyspace_name" as its
output is much simpler to reason about :
Schema Version:9a091b4e-3712-3149-b187-d2b09250a19b
TokenRange:
TokenRange(start_token:1943978523300203561, end_token:2137919499801737315,
endpoints:[127.0.0.3, 127.0.0.6
Hi,
I saw that in cassandra-driver-core,(3.1.0) Metadata.TokenMap has
primaryToTokens which has the value for ALL the nodes.
I tried to find (primary)range ownership for nodes in one DC.
And executed the following in debug mode in IDE.
TreeMap primaryTokenMap = new TreeMap<>();
for(Host host :
mai
Hi Eric,
Thanks for your reply.
I know about V nodes, and token ownership.
If I want to find the token range, how do i do that from this data?
For eg, the 1st entry is -1035756551821816651. which range is it, i.e. is
this the start/end, and how to find the other extremity of this range.
Thanks,
Si
Siddharth,
This is the tokens assigned to your local node. It looks from this that
you have 256 vnodes set. The system.local only stored information on the
local node.
Thanks,
Eric Zietlow
On Mon, Aug 29, 2016 at 5:32 PM, Siddharth Verma <
verma.siddha...@snapdeal.com> wrote:
> Hi,
> Could s
Hi,
Could someone help me understand the output of the following command
select token from system.local where key = 'local';
I guess, it shows a set of tokens,
How to interpret the primary token range owned by that particular node.
Sample output
{'-1035756551821816651', '-108957861241888777', '-11
10 matches
Mail list logo