4.1.17 fallback_get_site(Hook)

-spec fallback_get_site(fun((node()) -> {ok,
                                         site()} |
                                        undefined)) -> classy_hook:hook().

Fallback: derive site ID of a remote node that doesn’t run classy.

WARNING: Fallback mechanism is meant to support rolling cluster upgrade. This functionality is inherently dangerous, but it won’t activate unless the user registers all fallback hooks.

The following limitations apply:

  1. The hook should return a value that cannot change, even after the node is upgraded.
  2. At most one fallback hook should be registered for this hookpoint. Registering more than one hook is dangerous, since transient errors in the hook may lead to inconsistent results between the calls.
JavaScript license information