Class Thin::Controllers::Cluster
In: lib/thin/controllers/cluster.rb
Parent: Controller

Control a set of servers.

  • Generate start and stop commands and run them.
  • Inject the port or socket number in the pid and log filenames.

Servers are started throught the thin command-line script.

Methods

Constants

CLUSTER_OPTIONS = [:servers, :only, :onebyone, :wait]   Cluster only options that should not be passed in the command sent to the indiviual servers.
DEFAULT_WAIT_TIME = 30   Maximum wait time for the server to be restarted

Public Class methods

Create a new cluster of servers launched using options.

Public Instance methods

Stop and start the servers.

Start the servers

Start a single server

Stop the servers

Stop a single server

Make sure the server is running before moving on to the next one.

[Validate]