View Source mix skitter.master (Skitter v0.7.1)

Start a Skitter master node

This task starts a Skitter master node. It accepts a single option (--deploy) and multiple arguments, which represent worker nodes to connect to. In order to connect to the specified workers, additional arguments need to be passed to the elixir or iex command used to start the system. More information can be found in the "Distribution Parameters" section below.

It is not recommended to use this task in production. Consider building a release (as described on the deployment page) instead. If mix is used anyway, be sure to start in production mode.

Options and Arguments

  • --deploy, -d: Deploy the workflow returned by the expression.

Besides the --deploy option, any other argument is interpreted as the name of a worker node. The master node will attempt to connect to all the specified nodes when it is starting. If this fails, the master exits.

Distribution Parameters

In order to connect with other Skitter nodes, the local node needs to be distributed. This task does not handle distribution, instead, the correct parameters should be passed to iex or elixir. A few examples are provided below:

  • elixir --sname master -S mix skitter.master
  • iex --sname master -S mix skitter.master.
  • elixir --name master@hostname -S mix skitter.master
  • iex --name master@hostname -S mix skitter.master.