[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running batch octave jobs via webserver?

From: Francesco Potortì
Subject: Re: Running batch octave jobs via webserver?
Date: Mon, 11 Apr 2011 15:51:21 +0200

>Has anyone had call to set up a system for running batch jobs with user
>submitted form data?  Any advice?

Have a look at <>.

>I am thinking of hacking together a queuing system using cgi (for simplicity) 
>create a "load/ save" compatible input file, but I was hoping either to find a
>solution implemented by someone else, or at least not make the same mistakes as
>other people.

I used a quick hack that works for very low loads.  Temporary files are
created with the process number of the cgi.  When the cgi starts, it
deletes temporary files that are older than 2 minutes.  Ulimit and
timeout are used as a guard against excessive resource consumption.

Adding one more check at the beginning of the cgi that bails out if the
load average is too high would make it more robust.  A limit on the
number of concurrent cgi issues would complete it (maybe Apache
implicitely provides it).  I implemented none of these, but it would be
simple to do.

Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: address@hidden
(entrance 20, 1st floor, room C71)     Web:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]