On Sep 17, 2013, at 4:18 PM, Daniel Mikusa <dmik...@gopivotal.com> wrote:
> On Sep 17, 2013, at 3:39 PM, Nicholas Violi <nvi...@globalgiving.org> wrote: > >> On Tue, Sep 17, 2013 at 3:21 PM, Daniel Mikusa <dmik...@gopivotal.com>wrote: >> >>> What is your purpose with this configuration and with this setup? It's a >>> legit setup, but may not be doing what you want. >>> >>> Typically you would use mod_proxy & mod_proxy_balancer (or mod_jk) to >>> front a cluster of Tomcat servers. >> >> >> In production we have a dedicated hardware load balancer in front of >> standalone servers that each run one instance of apache connected to one >> tomcat, so when I was looking to extend that for local testing, I just >> added another VirtualHost. Since apache is not concerned with load >> balancing in production, I don't need to complicate my local system with >> that detail. > > I would disagree with this conclusion. In your test setup you absolutely > need this. In production, you don't need HTTPD because you have a dedicated > hardware load balancer. Unless you have one of those on your desk, you need > HTTPD to perform that role. > > Dan Disregard this. For some reason I was thinking HTTPD is necessary. Chris is right as usual, it's not necessary for a simple test. Tried a quick two node setup on my Mac w/out HTTPD and it worked OK. Go to one Tomcat instance's port in chrome, it increments the counter in my app. Refresh a few times. Open a second tab, go to the second Tomcat instance's port. The counter picks up where it left off and continues incrementing. Flipping back and forth between tabs / servers works fine. Here's the cluster config that I used in case it helps. <Cluster channelSendOptions="8" className="org.apache.catalina.ha.tcp.SimpleTcpCluster"> <Manager className="org.apache.catalina.ha.session.DeltaManager" expireSessionsOnShutdown="false" notifyListenersOnReplication="true"/> <Channel className="org.apache.catalina.tribes.group.GroupChannel"> <Membership address="228.0.0.4" className="org.apache.catalina.tribes.membership.McastService" dropTime="3000" frequency="500" port="45564"/> <Receiver address="auto" autoBind="100" className="org.apache.catalina.tribes.transport.nio.NioReceiver" maxThreads="6" port="4000" selectorTimeout="5000"/> <Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> <Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> </Sender> <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/> <Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> </Channel> <Valve className="org.apache.catalina.ha.tcp.ReplicationValve" filter=""/> <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/> <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/> <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/> </Cluster> Beyond that, have you tried increasing the log levels? Dan > > >> >> Thanks, >> Nick > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org