-spec maybe_init_the_site(classy:site() |
undefined) -> ok.
Initialize local site and cluster.
Initialization of the site ID is done as following:
undefined,
then site ID is initialized to a random value.
When site ID changes,
classy:on_create_site/2 callback runs.
Cluster ID initialization logic is similar,
but there’s no way to customize the initial value.
That has to do with the classy’s requirement
that cluster IDs change to an entirely new value when site is kicked.
classy:on_create_cluster/2 hook is called for the new clusters.