mcc v1.1.1 Mcc

Documentation for Mcc.

Link to this section Summary

Functions

check ont node if in one cluster

Check one node if running

Make one node join into the cluster

Make one node leave from the cluster

Remove one node from the cluster

Link to this section Functions

Link to this function

check_cache_before(operate_mod, operate_func, operate_args, cache_opts)

Link to this function

is_clustered?(node_name)
is_clustered?(node()) :: boolean()

check ont node if in one cluster.

Link to this function

is_running?(node_name)
is_running?(node()) :: boolean()

Check one node if running.

Link to this function

join(node_name)
join(atom()) ::
  :ok
  | {:error, {:can_not_join_self, atom()}}
  | {:error, {:node_not_running, atom()}}
  | {:error, {:already_clustered, atom()}}
  | {:error, term()}

Make one node join into the cluster.

Link to this function

leave()
leave() ::
  :ok
  | {:error, :node_not_in_cluster}
  | {:error, {:failed_to_leave, node()}}
  | {:error, :node_not_in_cluster}

Make one node leave from the cluster.

Link to this function

not_running_nodes()

Link to this function

register_guard()

Link to this function

remove(node_name)
remove(atom()) ::
  :ok
  | {:error, :can_not_remove_self}
  | {:error, :node_not_in_cluster}
  | {:error, term()}

Remove one node from the cluster.

Link to this function

running_nodes()