how Cassandra chooses the coordinator node and the replication nodes?

后端 未结 2 1963
太阳男子
太阳男子 2020-12-15 23:38

How the Cassandra client chooses the coordinator node? is the coordinator node stores the data sent by the client before replicating?

2条回答
  •  伪装坚强ぢ
    2020-12-15 23:51

    The coordinator node is typically chosen by an algorithm which takes "network distance" into account. Any node can act as the coordinator, and at first requests will be sent to the nodes which your driver knows about. But once it connects and understands the topology of your cluster, it may change to a "closer" coordinator.

    The coordinator only stores data locally (on a write) if it ends up being one of the nodes responsible for the data's token range.

提交回复
热议问题