Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StartCluster

TO START IN CONSOLE: "./bin/actionhero start cluster" ** Production-ready actionhero cluster **

  • be sure to enable redis so that workers can share state
  • workers which die will be restarted
  • maser/manager specific logging
  • pidfile for master
  • USR2 restarts (graceful reload of workers while handling requests) -- Note, socket/websocket clients will be disconnected, but there will always be a worker to handle them -- HTTP/HTTPS/TCP clients will be allowed to finish the action they are working on before the server goes down
  • TTOU and TTIN signals to subtract/add workers
  • TCP, HTTP(S), and Web-socket clients will all be shared across the cluster
  • Can be run as a daemon or in-console -- Simple Daemon: "actionhero start cluster --daemon"
  • Setting process titles does not work on windows or OSX This tool was heavily inspired by Ruby Unicorns [[ http://unicorn.bogomips.org/ ]]

Hierarchy

  • CLI
    • StartCluster

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

description

description: string

The description of the CLI command (default this.name)

example

example: string

An example of how to run this CLI command

inputs

inputs: object

The inputs of the CLI command (default: {})

Type declaration

  • [key: string]: any

name

name: string

The name of the CLI command.

Methods

run

  • run(__namedParameters: object): Promise<boolean>

validate

  • validate(): void

Generated using TypeDoc