The different roles between raft and gossip

i’m interested about crdb!
but i’m wondering about that what’s the different roles between raft and gossip protocols?which is in charge of the consensus of replicas ? when a new node append the crdb existing cluster, how the protocols mentioned before come into play? thx a lot !!

All consensus happens through raft. Gossip is how new nodes announce themselves to the cluster, as well as metadata that doesn’t have to be consistent (like the amount of used and available disk space). Once a node has joined the cluster, range replicas are assigned to those nodes through raft membership change operations.

thx a lot ! i understand!