Re: [Rd] How to execute R scripts simultaneously from multiple threads

From: Erik van Zijst <r_at_erik.prutser.cx>
Date: Fri 05 Jan 2007 - 10:04:51 GMT

Jeffrey Horner wrote:
> I haven't looked at RServe in awhile, but I think that it fires up an R
> interpreter in response to a client request and then sticks around for
> the same client to serve it additional requests. The question is how
> does it manage all the R interpreters with varying demand.
>
> This issue is solved when you embed R into Apache (using the prefork
> MPM), as the pool of apache child processes (each with their own R
> interpreter) expands and contracts on demand. Using this with the
> loopback device would be a nice solution:

We've looked at RApache as well. It offers a nice pooling solution quite in line with Apache's own runtime.
We'd certainly need pooling for our solution as we can't afford a fork for each evaluation. Luckily, as you mentioned already, this is fairly easy when using RServe as well. If you keep the connection to an R-process open, it stays alive. We'd do the actual pooling mechanism ourselves.

Erik

-- 
QOTD:
	"I'm on a seafood diet -- I see food and I eat it."

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sat Jan 06 02:41:08 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 05 Jan 2007 - 17:31:02 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.