Hello!

Node A will have two choices: either drop partition completely and
re-download it from B, or replicate recent changes on it. Either one will
be choosed internally.
Node A will only become primary again when it finishes syncing that
partition.

Regards,
-- 
Ilya Kasnacheev


пт, 14 сент. 2018 г. в 22:23, eugene miretsky <eugene.miret...@gmail.com>:

> What is the process when a node goes down and then restarts?
>
> Say backups = 1. We have node A that is primary for some key, and node B
> that is back up.
>
> Node A goes down and then restarts after 5 min. What are the steps?
> 1) Node A is servicing all traffic for key X
> 2) Node A goes down
> 3) Node B starts serving all traffic for key X (I guess the clients detect
> the failover and start calling node B )
> 4) Node A comes back up
> 5) WAL replication is initiated
>
> What happens next? When does node A become the primary again? How are
> in-flight updates happen?
>
>

Reply via email to