lieuwex / LirsFS

MIT License
0 stars 0 forks source link

Persist configuration of nodes #12

Open lieuwex opened 1 year ago

lieuwex commented 1 year ago

We probably want to persist the configuration with which a node started in some way.

Originally posted by @sholtrop in https://github.com/lieuwex/DDPS-2/issues/11#issuecomment-1336182484

lieuwex commented 1 year ago

@sholtrop I am not completely sure it this is necessary, or wanted. Why did you think it might be needed?

sholtrop commented 1 year ago

It's not necessary if we're okay with relaunching the raft process remotely in case of a node crash (either the process crashes, or the hardware gives out).

But if we have some kind of supervisor running on the node (that runs on startup and restarts the node's process if it crashes), then it would need to know with which config to restart the node.

lieuwex commented 1 year ago

In my mind the config is a file that is persisted on every node. When the process relaunches couldn't it just read this config file?