B
Bob Rivers
Hi,
We have a web application and due to the heavy traffic, my company
decided to put it under a load balance structure.
We are thinking about the usage of a "standard" load balance
structure:
Load Balancer
|
----------
| |
Server1 Server 2
I was doing some research, and I found some interesting solucions,
like the one described at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html.
But none of these solutions talk about threads. Into the jakarta
solution, they describe session replication. And what about threads?
My problem is that I have a thread that continuosly monitors a
database. If this monitor finds something (ie, the due date of an
order) it sends an email.
The problem is that this thread is (I think) attached to the web
server. If I have 2 (or more) servers, this thread will be started
twice, and someone will receive two emails....
So, how do I do threads under a load balance schema?
I am using simple servlets (with J2SE 1.3.1). The server that we are
using is tomcat 4.1.29.
TIA,
Bob
We have a web application and due to the heavy traffic, my company
decided to put it under a load balance structure.
We are thinking about the usage of a "standard" load balance
structure:
Load Balancer
|
----------
| |
Server1 Server 2
I was doing some research, and I found some interesting solucions,
like the one described at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html.
But none of these solutions talk about threads. Into the jakarta
solution, they describe session replication. And what about threads?
My problem is that I have a thread that continuosly monitors a
database. If this monitor finds something (ie, the due date of an
order) it sends an email.
The problem is that this thread is (I think) attached to the web
server. If I have 2 (or more) servers, this thread will be started
twice, and someone will receive two emails....
So, how do I do threads under a load balance schema?
I am using simple servlets (with J2SE 1.3.1). The server that we are
using is tomcat 4.1.29.
TIA,
Bob