Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 54190af733
Fetching contributors…

Cannot retrieve contributors at this time

61 lines (45 sloc) 1.994 kb

superlance plugins for supervisor

Superlance is a package of plugin utilities for monitoring and controlling processes that run under supervisor.

Currently, it provides these plugins:

:command:`httpok`
This plugin is meant to be used as a supervisor event listener, subscribed to TICK_* events. It tests that a given child process which must in the RUNNING state, is viable via an HTTP GET request to a configured URL. If the request fails or times out, :command:`httpok` will restart the "hung" child process.
:command:`crashmail`
This plugin is meant to be used as a supervisor event listener, subscribed to PROCESS_STATE_EXITED events. It email a user when a process enters the EXITED state unexpectedly.
:command:`memmon`
This plugin is meant to be used as a supervisor event listener, subscribed to TICK_* events. It monitors memory usage for configured child processes, and restarts them when they exceed a configured maximum size.
:command:`crashmailbatch`
Similar to :command:`crashmail`, :command:`crashmailbatch` sends email alerts when processes die unexpectedly. The difference is that all alerts generated within the configured time interval are batched together to avoid sending too many emails.
:command:`fatalmailbatch`
This plugin sends email alerts when processes fail to start too many times such that supervisord gives up retrying. All of the fatal start events generated within the configured time interval are batched together to avoid sending too many emails.
:command:`crashsms`
Similar to :command:`crashmailbatch` except it sends SMS alerts through an email gateway. Messages are formatted to fit in SMS.

Contents:

Indices and tables

Jump to Line
Something went wrong with that request. Please try again.