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/01/18 09:24:39 UTC

DO NOT REPLY [Bug 48564] New: Unable to turn off retries for LB worker

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

           Summary: Unable to turn off retries for LB worker
           Product: Tomcat Connectors
           Version: 1.2.28
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_jk
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: rylach@gmail.com


I cannot turn off retry for LB worker.

I'm not sure, but looking at jk_lb_worker.c it seems, that setting it to 0
won't help.

Look at the only place, where 'retries' is being checked

   while (recoverable == JK_TRUE) {
        lb_sub_worker_t *rec;
        if (attempt >= num_of_workers) {
            retry++;
            if (retry >= p->worker->retries) {
                /* Done with retrying */
                break;
            }

Should retry be checked only if attempt >= num_of_workers ?

Cheers,

R.

-- 
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


[Bug 48564] Allow to turn off retries for LB worker

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Unable to turn off retries  |Allow to turn off retries
                   |for LB worker               |for LB worker
           Severity|normal                      |enhancement

--- Comment #1 from Rainer Jung <ra...@kippdata.de> ---
I will mark this as an enhancement request.

The retries attribute of the LB is meant to control, how often the list of
members will betried before giving up. So a "1" means, an LB will try each
member at most once, a "2" (default) means, there will be at most two rounds of
trying each member.

I will clarify the docs and think about whether a complete disabling of retries
makes sense and how to implement it.

-- 
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