foundationdb
foundationdb copied to clipboard
Store dcfitness, processflitness, and process exclusion in the processID file
After rebooting all the machines in the cluster, we lose local history of which machines should compete to be the cluster controller. This means we could elect an excluded machines as the cluster controller, only to realize this once we have read the database configuration and be then be forced to recruit a different cluster controller.
To prevent this, every process should make the state used to determine how good of a fit the process is for being a cluster controller durable in its processID file.
Since this is changing the on disk format, make sure to appropriately read from disk based on the protocol version.