¿Consecuencias de que todos los nodos de Cassandra sean semillas?
Frecuentes
Visto 364 equipos
1
Is there any reason why it would be bad to have all Cassandra nodes be in the seed nodes list?
We're working on automated deployments of Cassandra, and so can easily maintain a list of every node that is supposed to be in the cluster and distribute this as a list of seed nodes to all existing nodes, and all new nodes on startup.
All the documentation I can find suggests having a minimum number of seeds, but doesn't clarify what would happen if todos nodes were seeds. There is some mention of seeds being preferred in the gossip protocol, but it is not clear what the consequence would be if all nodes were seeds.
1 Respuestas
2
There is no reason as far as I am aware that is is bad to have all nodes as seeds in your list. I'll post some doc links below to give you some background reading but to summarise; the seed nodes are used primarily for bootstrapping. Once a node is running it will maintain a list of nodes it has established gossip with for subsequent startups.
The only disadvantage of having too many is that the proceedure for replacing nodes if they are seed nodes is slightly different:
http://www.datastax.com/documentation/cassandra/2.0/cassandra/operations/ops_replace_seed_node.html
Further background reading: (note some of the older docs although superceded sometimes do contain more lengthy explanations)
http://www.datastax.com/docs/1.0/cluster_architecture/gossip http://www.datastax.com/documentation/cassandra/1.2/cassandra/initialize/initializeMultipleDS.html
Respondido el 17 de enero de 15 a las 20:01
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas cassandra datastax or haz tu propia pregunta.
posible duplicado de Cassandra Seed Nodes - Aaron