Skip to content

Raft peers discovery

Инстансы пикодаты должны научиться собирать транзитивное замыкание.

Алгоритм примерно описан здесь: https://docs.google.com/document/d/17IkwDIXJUSdJFoIvG9Ir_PpDZaxmYwj3_1ljtVxAu-o/edit#heading=h.dsw0hqm0jexs

На выходе на каждом инстансе должна сформироваться структура с полями:

  • peer_address (из аргумента --peer)
  • it_is_me (bool)
  • advertise_address (по мнению самого пира)
  • instance_id
  • replicaset_id
Edited by Alexey Protsenko
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information