RE: Multiple Web Servers, One Shared SRUN

From: Iñigo Martínez Lasala <inigoml@xxx.com>
Date: Mon Jul 01 2002 - 02:58:49 PDT

You have to install ISAPI_SRUN.DLL (for IIS) or ModCaucho (for Apache) in each web-server
You have also to create a tiny resin.conf for each module in each web server:

<caucho.com>
 <http-server>
    <srun host='10.0.0.1' port='6804'/>
    <web-app id='/youruri' app-dir=/your/servlets/here/>
    <servlet-mapping url-pattern='*.jsp' servlet-name='com.caucho.jsp.JspServlet'/>
    <caucho-status>true</caucho-status>
  </http-server>
</caucho.com>

And finally, in each /your/servlets/here, put your WEB.XML inside /WEB-INF dir.
And that's all...

-----Original Message-----
From: David Levine [mailto:dlevine@xxx.com]
Sent: viernes, 28 de junio de 2002 16:35
To: resin-interest@xxx.com
Subject: Multiple Web Servers, One Shared SRUN

I'm working on development of software where page requests are similar to
"pushlets" (i.e. the web-connection between client and server is held open
for an arbitrary length of time, potentially very long). Clients send and
receive data which is processed by the server and potentially sent to other
clients as well.

It seems to me (at least right now) that my bottleneck will be the maximum
number of simultaneous connections I can hold open (I assume Resin does
one-thread-per-client-socket) and NOT my actual processing of data in the JVM.

So would setting up multiple web-servers for the connections, each with a
connection to the same shared SRUN JVM make sense? The reason I don't want
to distribute SRUN on multiple servers as well is that I have in-memory
processing going on (i.e. two clients need to be able to quickly send data
to each other through the server).

How would I go about setting this up? I am using Resin-2.1.1, with the
internal http server.

I assume one Resin (on 'machine1') would be set up with the default
configuration, and the second one (on 'machine2') would be set up with its
resin.conf containing something like <srun host='machine1' port='6802'/> -
would that be correct? Could I then use a client to connect to either
machine and be accessing the same SRUN?

Thanks,
David
Received on Mon 01 Jul 2002 02:58:49 -0700

This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:17:06 PDT