The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Plack::Middleware::MonocerosStatus - show Monoceros connection manager status

SYNOPSIS

  use Plack::Builder;

  builder {
      enable "Plack::Middleware::ServerStatus::Lite",
          path => '/monoceros-status',
          allow => [ '127.0.0.1', '192.168.0.0/16' ],
      $app;
  };

  % curl http://server:port/monoceros-status
  Processing: 2
  Waiting: 98
  Queued: 0

DESCRIPTION

Plack::Middleware::MonocerosStatus is a middleware to display Monoceros manager status.

  Processing - a number of socket processed by worker
  Waiting - a number of keepalive socket, waiting to next request
  Queued - a number of request arrived socket, waiting to process by worker

CONFIGURATIONS

path
  path => '/server-status',

location that displays server status

allow
  allow => '127.0.0.1'
  allow => ['192.168.0.0/16', '10.0.0.0/8']

host based access control of a page of server status. supports IPv6 address.

AUTHOR

Masahiro Nagano <kazeburo {at} gmail.com>

SEE ALSO

Monoceros

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.