You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/12/31 16:09:42 UTC

DO NOT REPLY [Bug 50534] New: recover_time doesn't work with network issues

https://issues.apache.org/bugzilla/show_bug.cgi?id=50534

           Summary: recover_time doesn't work with network issues
           Product: Tomcat Connectors
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_jk
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: milkuncle@telenet.be


Hi,

I defined a loadbalancer with 2 workers (who connect to JBoss application
server)
When I stopped both Jboss backends, I got immediately a 503 response from the
loadbalancer, this is ok.

But when you're having network issues, for example broker firewall,switch
the workers goes in error (normal), but when they are both in error, I don't
receive immedately a 503 response, I loadbalancer forces the workers each time
to retry, and when they timeout I got my 503.
The timeout can be tuned with defining a socket_timeout for the worker. 
I would suspect that ones they are in error, I should get immediately a 503
response. And that after 60 seconds the workers will retry (with the recover
time)
Is this a bug, or do I need to configure something.
Thx for your help.

How to simmulate :
Drop packets on the your jboss application server with iptables.
# iptables -A INPUT -s (apache webserver) -p tcp --destination-port (port
jboss) -j DROP   

Basic config
  worker.list=applb

  # Define a worker using ajp13
  worker.worker1.port=8009
  worker.worker1.host=backend1
  worker.worker1.type=ajp13
  worker.worker1.lbfactor=1
  worker.worker1.socket_timeout=15
  worker.basic.socket_keepalive=true


  # Define another worker using ajp13
  worker.worker2.port=8009
  worker.worker2.host=backend2
  worker.worker2.type=ajp13
  worker.worker2.lbfactor=1
  worker.worker2.socket_timeout=15
  worker.basic.socket_keepalive=true

  # Define the LB worker
  worker.applb.type=lb
  worker.applb.balanced_workers=worker1,worker2

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50534] recover_time doesn't work with network issues

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50534

Rainer Jung <ra...@kippdata.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Rainer Jung <ra...@kippdata.de> 2010-12-31 11:40:53 EST ---
Bugzilla is not a support forum. If you have questions about mod_jk please ask
on the Tomcat users list. In that case please provide your confguration there
again and also version info about the components used.

Some hints:

- mod_jk does forced receovery, if no more workers are available. Instead of
only returning errors, in this case it tries to use the broken workers although
their recvery_time is not yet reached.

- Newer version od mod_jk do not handle as many errors as fatal as older ones.
You can adjust with "error_escalation_time"

- Reliable problem detection especially in the network area relies on correct
setiings of several timeouts. Have a look at the example configuration bundled
with the source download of version 1.2.31. Older mod_jk versions do not come
with a nice example configuration, the one that comes with 1.2.31 is fine.

Please do not proceed the discussion here. In case of further questions switch
to the users list.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50534] recover_time doesn't work with network issues

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50534

milkuncle@telenet.be changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|PC                          |All

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org