Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

baid_manish_187433 avatar image
baid_manish_187433 asked ·

Do edge and vertex with the same partition key but different clustering keys reside on different nodes?

DSE 6.8: Edge is created with partition keys from "OUT" vertex's primary key (contains few clustering keys), this implies edge and vertex are going reside on separate nodes?

dsegraph
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

bettina.swynnerton avatar image
bettina.swynnerton answered ·

Hi,

Both the vertex and the edge coming out of the vertex have the same partition key, so this implies that the edge and the vertex reside on the same node. The node is determined by the consistent hashing algorithm from the partition key. The clustering keys do not come into this.

You can test for endpoints with nodetool getendpoints: https://docs.datastax.com/en/dse/6.8/dse-admin/datastax_enterprise/tools/nodetool/toolsGetEndPoints.html

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.