goraft/raft

Cluster Configuration

benbjohnson opened this issue · 0 comments

  • Change cluster configuration file to use JSON: {"peers":[...]}.
  • Atomically read config file using ioutil.ReadFile().
  • Atomically write config file using ioutil.WriteFile().
  • Write config file to temporary location and then swap using os.Rename().

/cc: @xiangli-cmu