I have no idea how Yugabyte does leader election, but each instance knows its own allocation id thanks to an environment variable.
You may have noticed this possibly-interesting thread.
I have no idea how Yugabyte does leader election, but each instance knows its own allocation id thanks to an environment variable.
You may have noticed this possibly-interesting thread.