vaticle / typedb

TypeDB: the polymorphic database powered by types
https://typedb.com
Mozilla Public License 2.0
3.72k stars 338 forks source link

Generate persistent server ID #6978

Closed flyingsilverfin closed 5 months ago

flyingsilverfin commented 5 months ago

Usage and product changes

We update the server ID to be generated once, then persisted into the server's data directory. A fallback ID of of _0 is also used if this fails for any reason.

Implementation

Generate a length 16 string of upperchase ASCII character and digits, persisted into the data directory. On bootup we read this value, if it exists.

vaticle-bot commented 5 months ago

PR Review Checklist

Do not edit the content of this comment. The PR reviewer should simply update this comment by ticking each review item below, as they get completed.


Trivial Change

Code

Architecture