Infrastructure advice for very dinamic service
joao.clemente Mar 4, 2002 5:46 PMHi.
I would like to hear some advice (specially if someone actually has it implemented) on the machine/software structure for a site whose content is mostly dynamic.
My thought about the needed hardware is something like this:
--------------------------------------
Client Client Client
| | |
V V V
<<<< Firewall with replicated load balancer >>>>>
set of machines running apache (as apache gives static contents only, no session tracking is needed here)
| | |
V V V
<<<< Firewall with replicated load balancer, maybe with session handling included >>>>
| | |
V V V
set of JBoss app server
------------------------------------------
So, here are my biggest problems :
Where do I have Tomcat??? With these machines or on a extra layer? Should I place Tomcat (Servlet+JSP handling) together with httpd (Apache) or with application server (JBoss), or in a separated level?
I mean, how should one balance the needs for static contents (apache) versus web-servers (Jsp,Servlets) versus EJB servers? )
If the session management in JBoss is handleed in 3.x versions, we still have the problem of session management in JSP/Servlet server. Is this handled correctly with the use of the load balancer with session tracking? Or we really must wait 'till Tomcat/Jetty gets this functionality done?
Is it stupid to have a single acess point for the several levels, acting as load balancer for a set of machines in that level? That way, the separation between levels would be complete and we could keep config at a minimum (just at the acess points).
Finally, is there really the need for a hardware load balancer or a typical machine properly configured would do aswell as the hardware solution? As I see it, the session tracking , ssl issues and so on would be being the capabilities of a hardware load balancer... But I can be completly wrong...
I would like to know some real case figures... How many clients/connections can handle each machine? What is a tipical load proportion between the several components?
I remember having read sometime ago that a typical config would be a set of apaches connecting to a single app server... I can't understand how is this functional as most of the load is on processing dynamic content and not on serving static pages... Can someone enlighten me on this?
Thank you
Joao Clemente