View Source Chaperon.Master (chaperon v0.3.1)

Master process for running load tests. Initiates running a load test and awaits results from a run. Needs to be started before used. The Chaperon.Master process is started only once per cluster and registered globally as Chaperon.Master.

Link to this section Summary

Link to this section Types

@type t() :: %Chaperon.Master{
  id: atom(),
  non_worker_nodes: [atom()],
  scheduled_load_tests: EQ.t(),
  sessions: %{required(atom()) => Chaperon.Session.t()},
  tasks: %{required(UUID.uuid4()) => pid()}
}

Link to this section Functions

Link to this function

cancel_running_or_scheduled(id)

View Source

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

ignore_node_as_worker(node)

View Source
@spec ignore_node_as_worker(atom()) :: :ok

Callback implementation for GenServer.init/1.

Link to this function

run_load_test(lt_mod, options \\ [])

View Source
@spec run_load_test(module(), Keyword.t()) :: Chaperon.Session.t()
Link to this function

schedule_load_tests(lts)

View Source