Error 503 for several seconds until session failover
erhard Dec 28, 2011 4:57 AMHi,
I tried a simple demo applicaton and democlient (see attachments) that opens a session and increases a session-variable for each hit. The democlient hits the server once every second. I have an apace httpd with mod_cluster and two JBoss server. When I shut down the active JBoss, I get Error 503 for about 10 seconds, then the other server gets the requests an continues the session:
$ ./democlient.py http://devjava/demo7/
0 unknown
1 ef730190
2 ef730190
3 ef730190
4 ef730190
...
28 ef730190
29 ef730190
30 ef730190 <--- Now I shut down the active server
Failed to open "http://devjava/demo7/". Error code - 503.
Broken between 30 and 0 for 0 seconds.
Failed to open "http://devjava/demo7/". Error code - 503.
Broken between 0 and 0 for 1 seconds.
Failed to open "http://devjava/demo7/". Error code - 503.
Broken between 0 and 0 for 2 seconds.
Failed to open "http://devjava/demo7/". Error code - 503.
Broken between 0 and 0 for 3 seconds.
Failed to open "http://devjava/demo7/". Error code - 503.
Broken between 0 and 0 for 4 seconds.
Failed to open "http://devjava/demo7/". Error code - 503.
Broken between 0 and 0 for 5 seconds.
Failed to open "http://devjava/demo7/". Error code - 503.
Broken between 0 and 0 for 6 seconds.
Failed to open "http://devjava/demo7/". Error code - 503.
Broken between 0 and 0 for 7 seconds.
Failed to open "http://devjava/demo7/". Error code - 503.
Broken between 0 and 0 for 8 seconds.
Failed to open "http://devjava/demo7/". Error code - 503.
Broken between 0 and 0 for 9 seconds.
Broken between 0 and 31 for 10 seconds. <-- After about 10 seconds the second server continues with the session
32 dc1ca871
33 dc1ca871
34 dc1ca871
35 dc1ca871
...
Especially when I shut down JBoss gracefully I would have expected that a failover occurs without errors.
Do I expect too much?
Is it a configuration error or a bug?
Anybody got this running without errors with mod_cluster?
I tried this with JBoss 4.2.3, the latest JBoss 7 Snapshot (with AJP), mod_cluster 1.0.0, 1.1.3 and the latest 1.1.4-SNAPSHOT, with the same results. The Apache configuration is the one from the mod_cluster download.
The problem might be related to
http://community.jboss.org/message/625242
http://community.jboss.org/message/643133
Greetings
Erhard
-
democlient.py.zip 1.4 KB
-
demo7.war 1.6 KB