https://bz.apache.org/bugzilla/show_bug.cgi?id=53693

--- Comment #12 from Fabian Schneider <[email protected]> ---
another solution would be to reduce the polling interval, as your suggestion
would cause HTTP 503 errors appear almost immediately if no slot is available
instead of 60 seconds.

To archive this the first step is to change the retry amount, e.g. to reduce
the interval to 0.1 seconds:

From:
 FCGID_APPLY_TRY_COUNT 2

To:
 FCGID_APPLY_TRY_COUNT 11

Beside of this the interval has to be reduced:

            if (i > 0 || j > 0 || count_busy_processes(r, &fcgi_request)) {
                apr_sleep(apr_time_from_sec(1));

To

            if (i > 0 || j > 0 || count_busy_processes(r, &fcgi_request)) {
                apr_sleep(apr_time_from_msec(1000 / (FCGID_APPLY_TRY_COUNT -
1));

To improve the performance it can make sense to write the requested 100ms delay
in the example hardcoded `apr_time_from_msec(100)` or as precompiler directive,
as it needs to be calculated several hundred times per request for high traffic
environments.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to