Re: Problems with Clustering / Session Replication

2013-10-29 Thread Daniel Mikusa
On Oct 25, 2013, at 11:11 AM, Nicholas Violi nvi...@globalgiving.org wrote: On Tue, Sep 24, 2013 at 5:21 PM, Daniel Mikusa dmik...@gopivotal.comwrote: A couple general thoughts... 1.) When looking at log statements at the FINE lower levels, recognize that these are not reporting

Re: Problems with Clustering / Session Replication

2013-10-25 Thread Nicholas Violi
On Tue, Sep 24, 2013 at 5:21 PM, Daniel Mikusa dmik...@gopivotal.comwrote: A couple general thoughts... 1.) When looking at log statements at the FINE lower levels, recognize that these are not reporting problems. They just give you the ability to trace the flow of what is happening in the

Re: Problems with Clustering / Session Replication

2013-09-24 Thread Daniel Mikusa
On Sep 23, 2013, at 4:49 PM, Nicholas Violi nvi...@globalgiving.org wrote: On Thu, Sep 19, 2013 at 9:03 AM, Daniel Mikusa dmik...@gopivotal.comwrote: Here's what I've been using: WEB-INF/web.xml: ?xml version=1.0 encoding=UTF-8? web-app version=2.5

Re: Problems with Clustering / Session Replication

2013-09-23 Thread Nicholas Violi
On Thu, Sep 19, 2013 at 9:03 AM, Daniel Mikusa dmik...@gopivotal.comwrote: Here's what I've been using: WEB-INF/web.xml: ?xml version=1.0 encoding=UTF-8? web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: Problems with Clustering / Session Replication

2013-09-19 Thread Daniel Mikusa
On Sep 18, 2013, at 9:00 AM, Nicholas Violi nvi...@globalgiving.org wrote: Thanks Daniel. On Tue, Sep 17, 2013 at 5:30 PM, Daniel Mikusa dmik...@gopivotal.comwrote: 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

Re: Problems with Clustering / Session Replication

2013-09-18 Thread Nicholas Violi
Thanks Daniel. On Tue, Sep 17, 2013 at 5:30 PM, Daniel Mikusa dmik...@gopivotal.comwrote: 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

Re: Problems with Clustering / Session Replication

2013-09-18 Thread Mark Eggers
On 9/18/2013 6:00 AM, Nicholas Violi wrote: Thanks Daniel. On Tue, Sep 17, 2013 at 5:30 PM, Daniel Mikusa dmik...@gopivotal.comwrote: 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

Re: Problems with Clustering / Session Replication

2013-09-18 Thread Vince Stewart
Hi Nicholas, I'm am a bit of a novice but I did have a very similar problem when I started using the clustering modules. My Tomcat output was referring to localhost (10.x.x.x) addresses while my netstat was reporting LISTEN on network addresses (192.x.x.x:400?). You have the same disparity. My

Re: Problems with Clustering / Session Replication

2013-09-18 Thread Vince Stewart
alternatively try an explicit address in the Receiver configuration Receiver className=org.apache.catalina.tribes.transport.nio.NioReceiver address=auto port=4001 autoBind=100 selectorTimeout=5000

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nicholas, On 9/17/13 9:59 AM, Nicholas Violi wrote: Hello, I'm setting up clustering/replication on Tomcat 7 on my local machine, to evaluate it for use with my environment/codebase, and sessions don't appear to be replicating. Hopefully I've

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Nicholas Violi
Hi Daniel, Thanks for the response. It seems that the ports (you're correct, 4000 and 4001) aren't open; telnet reports Connection refused and nmap lists the ports as closed. Shouldn't tomcat be opening them? I'm not running a firewall or anything. I'll come back to your questions about my apache

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Daniel Mikusa
On Sep 17, 2013, at 9:59 AM, Nicholas Violi nvi...@globalgiving.org wrote: Hello, I'm setting up clustering/replication on Tomcat 7 on my local machine, to evaluate it for use with my environment/codebase, and sessions don't appear to be replicating. Hopefully I've provided enough information

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Daniel Mikusa
On Sep 17, 2013, at 11:10 AM, Nicholas Violi nvi...@globalgiving.org wrote: Hi Daniel, Please don't top post. Either reply at the bottom or reply inline. That is the convention we try to follow on this list. Thanks for the response. It seems that the ports (you're correct, 4000 and 4001)

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Nicholas Violi
On Tue, Sep 17, 2013 at 11:25 AM, Daniel Mikusa dmik...@gopivotal.comwrote: Please don't top post. Either reply at the bottom or reply inline. That is the convention we try to follow on this list. Sorry thanks. Can your run netstat and see if anything is listening on those ports?

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Daniel Mikusa
On Sep 17, 2013, at 11:32 AM, Nicholas Violi nvi...@globalgiving.org wrote: On Tue, Sep 17, 2013 at 11:25 AM, Daniel Mikusa dmik...@gopivotal.comwrote: Please don't top post. Either reply at the bottom or reply inline. That is the convention we try to follow on this list. Sorry

RE: Problems with Clustering / Session Replication

2013-09-17 Thread Caldarale, Charles R
From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Re: Problems with Clustering / Session Replication Are you sure you don't have a firewall? Remember that a firewall could be on the server, the client, or anywhere in between. The OP should first see if a connection can be made

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 9/17/13 12:25 PM, Caldarale, Charles R wrote: From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Re: Problems with Clustering / Session Replication Are you sure you don't have a firewall? Remember that a firewall could

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Nicholas Violi
On Tue, Sep 17, 2013 at 12:08 PM, Daniel Mikusa dmik...@gopivotal.comwrote: Good! Since Tomcat is listening on the ports, you just need to figure out why you can't connect to them. You should be able to telnet to the ports. Try: telnet 192.168.1.243 4000 and telnet 192.168.1.243 4001.

RE: Problems with Clustering / Session Replication

2013-09-17 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Problems with Clustering / Session Replication While the above is true, OP originally said that everything was on localhost. Note the IP address reported by the OP's netstat: 192.168.1.243. That's decidedly

RE: Problems with Clustering / Session Replication

2013-09-17 Thread Caldarale, Charles R
From: Nicholas Violi [mailto:nvi...@globalgiving.org] Subject: Re: Problems with Clustering / Session Replication telnet connects fine... ??? Previously, you stated: telnet reports Connection refused. Which is it? Are you sure you don't have a firewall? Double checked that my mac's

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Nicholas Violi
On Tue, Sep 17, 2013 at 1:16 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: telnet connects fine... ??? Previously, you stated: telnet reports Connection refused. Which is it? Apologies for not specifying. My first test was telnet localhost 4000, which refused the connection.

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Daniel Mikusa
On Sep 17, 2013, at 1:21 PM, Nicholas Violi nvi...@globalgiving.org wrote: On Tue, Sep 17, 2013 at 1:16 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: telnet connects fine... ??? Previously, you stated: telnet reports Connection refused. Which is it? Apologies for not

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Daniel Mikusa
On Sep 17, 2013, at 3:08 PM, Nicholas Violi nvi...@globalgiving.org wrote: On Tue, Sep 17, 2013 at 2:34 PM, Daniel Mikusa dmik...@gopivotal.comwrote: How do you have HTTPD configured? It's important to get this right. The tomcats are running on 8081 and 8083 and apache is listening on

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Nicholas Violi
On Tue, Sep 17, 2013 at 2:34 PM, Daniel Mikusa dmik...@gopivotal.comwrote: How do you have HTTPD configured? It's important to get this right. The tomcats are running on 8081 and 8083 and apache is listening on 8080 and 8082, with each one proxied to the corresponding tomcat instance. I think

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Daniel Mikusa
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.comwrote: 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

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Nicholas Violi
On Tue, Sep 17, 2013 at 3:21 PM, Daniel Mikusa dmik...@gopivotal.comwrote: 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

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nicholas, On 9/17/13 3:39 PM, Nicholas Violi wrote: On Tue, Sep 17, 2013 at 3:21 PM, Daniel Mikusa dmik...@gopivotal.comwrote: What is your purpose with this configuration and with this setup? It's a legit setup, but may not be doing what you

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Nicholas Violi
On Tue, Sep 17, 2013 at 4:18 PM, Daniel Mikusa dmik...@gopivotal.comwrote: 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,

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nicholas, On 9/17/13 4:33 PM, Nicholas Violi wrote: On Tue, Sep 17, 2013 at 4:18 PM, Daniel Mikusa dmik...@gopivotal.comwrote: I would disagree with this conclusion. In your test setup you absolutely need this. In production, you don't need

Re: Problems with Clustering / Session Replication

2013-09-17 Thread Daniel Mikusa
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.comwrote: What is your purpose with this configuration and with this setup?