Daisuke Maki > Catalyst-Plugin-Apoptosis > Catalyst::Plugin::Apoptosis

Download:
Catalyst-Plugin-Apoptosis-0.00002.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.00002   Source  

NAME ^

Catalyst::Plugin::Apoptosis - Stop Execution Of A Catalyst App

SYNOPSIS ^

  use Catalyst qw(
    Apoptosis::GTop
  );
  __PACKAGE__->config(
    apoptosis => {
      gtop => {
        size => 1_000_000
      }
    }
  )

DESCRIPTION ^

Sometimes you're bound by the amount of memory you can use, so you want your long-running app to exit gracefully. This plugin overrides handle_request() and attempts to exit the application when such conditions area reached.

METHODS ^

handle_request

check_apoptosis_condition

TODO ^

Tests. Other apoptosis conditions.

SEE ALSO ^

Catalyst::Plugin::Apoptosis::GTop

AUTHOR ^

Copyright (c) 2007 Daisuke Maki <daisuke@endeworks.jp>

LICENSE ^

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

See http://www.perl.com/perl/misc/Artistic.html

syntax highlighting: