4.8.28 set_liveness(Cluster, Local, Target, NRestarts, Self, IsUp)

-spec set_liveness(classy:cluster_id(),
                   classy:site(), classy:site(),
                   non_neg_integer(), boolean(),
                   boolean()) -> {ok, clock()} | {error, _}.

Set site liveness info.

Normally, liveness is only updated by the local site. The remotes can only update IsUp boolean on behalf of other nodes, but they must always keep NRestarts as is.

JavaScript license information