Cassandra seed nodes and clients connecting to nodes

前端 未结 3 1575
無奈伤痛
無奈伤痛 2021-01-30 05:45

I\'m a little confused about Cassandra seed nodes and how clients are meant to connect to the cluster. I can\'t seem to find this bit of information in the documentation.

<
3条回答
  •  鱼传尺愫
    2021-01-30 06:13

    Answering my own question:

    Seeds

    From the FAQ:

    Seeds are used during startup to discover the cluster.

    Also from the DataStax documentation on "Gossip":

    The seed node designation has no purpose other than bootstrapping the gossip process for new nodes joining the cluster. Seed nodes are not a single point of failure, nor do they have any other special purpose in cluster operations beyond the bootstrapping of nodes.

    From these details it seems that a seed is nothing special to clients.

    Clients

    From the DataStax documentation on client requests:

    All nodes in Cassandra are peers. A client read or write request can go to any node in the cluster. When a client connects to a node and issues a read or write request, that node serves as the coordinator for that particular client operation.

    The job of the coordinator is to act as a proxy between the client application and the nodes (or replicas) that own the data being requested. The coordinator determines which nodes in the ring should get the request based on the cluster configured partitioner and replica placement strategy.

    I gather that the pool of nodes that a client connects to can just be a handful of (random?) nodes in the DC to allow for potential failures.

提交回复
热议问题