bsc-dom / dataclay

Python distributed data store that enables remotely access and method execution.
https://dataclay.bsc.es/
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

Maintain UUID for backend ID after restarts #17

Closed alexbarcelo closed 1 year ago

alexbarcelo commented 1 year ago

When initializing, backend will try to recover its backend id from the BACKEND_ID file in the persistent storage folder.

If the file exists, it uses that.

If it does not exist, it randomly generates a new one and writes it onto the file.

Setting DATACLAY_BACKEND_ID always has priority (and will potentially overwrite the UUID in the file if it already existed).