Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Gungho::Plugin::ApoptoUser3Contributed Perl DocumeGungho::Plugin::Apoptosis(3)

NAME
       Gungho::Plugin::Apoptosis - Stop	Execution In Long-Running Processes

SYNOPSIS
	 plugins:
	   - module: Apoptosis
	     config:
	       timeout:	86400 #	Stop execution after 1 day

DESCRIPTION
       Gungho is usually used in a environment where the processes survive a
       long time.

       Sometimes this leads the	application to consume too much	memory - Yes,
       a memory	leak!  The memory leak can reside both in Gungho or your
       particular Provider/Handler logic. If you or I can fix it, good.	But
       usually memory leaks are	just darn hard to find,	and you	know your
       application won't acquire that much garbage in, say, 1 day.

       I this case you just want to stop the execution of your crawler,	and
       perhaps replace it by another process.

       This plugin takes care of killing the running crawler process after a
       certain amount of time. When it reaches the timeout specified in	the
       config, then the	global "is_running" flag is set	to off.	After this
       flag is off, Gungho will	not dispatch any more requests,	and waits for
       other states to finish, eventually leading it to	stop.

       At this point you can re-dispatch your crawler proceses the way you
       want to.

METHODS
   setup
   check_apoptosis
   is_time_to_die
perl v5.32.1			  2007-12-01	  Gungho::Plugin::Apoptosis(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Gungho::Plugin::Apoptosis&sektion=3&manpath=FreeBSD+13.1-RELEASE+and+Ports>

home | help