discovery-service icon indicating copy to clipboard operation
discovery-service copied to clipboard

feat: implement state storage

Open utkuozdemir opened this issue 9 months ago • 1 comments

On a best-effort basis, store the state on disk on shutdown & restore it from the disk on startup.

Additionally, bump Go version, deps & rekres.

Closes #54.

utkuozdemir avatar May 06 '24 21:05 utkuozdemir

@DmitriyMV Can you review the storage I implemented here (context: https://github.com/siderolabs/discovery-service/issues/54#issuecomment-1957095830)

This is a draft with a naive approach. I simply used boltdb + JSON and the snapshots atm are not periodic.

I could not think of any big problems with this approach, but not sure if this is ok or if we would want to do things very differently.

utkuozdemir avatar May 06 '24 21:05 utkuozdemir

Superseded by https://github.com/siderolabs/discovery-service/pull/58

utkuozdemir avatar May 10 '24 18:05 utkuozdemir