Hi everyone,
Up until now, I have only dealt with systems that use a single sever, but I am now considering a system that is load balanced with apache mod_jk to several servers that run
tomcat.
I need some help understanding how this works, so please let me know if I have the right idea, thanks!.
So I have 3 cpus lets call them apache0, tomcat0 and tomcat1. Apache0 runs mod_jk and is only accessible to the public via http requests. A request comes into apache0, and is forwarded to one of the tomcat servers to service the request. (and here is where I am a little unsure)... then does the response pipe back to apache to be sent to the client? If this is the case, what happens to that apache service
thread during this whole process? Since apache needs to "wait" for tomcat to send back the response, does apache block the IO on that thread (or does it do something similar to tomcat's NIO connector)? Does this waiting time take a lot of resources for apache (my assumption is no)?
Thanks for any help you can give me.
-Adam