On Fri, 2006-10-27 at 07:56 +1000, Dean wrote:[...]
Many thanks for the very valuable information. To answer your question:
no, by itself it does not cause it to disable a back-end. The problem is
that it does not "dampen" it fast enough, especially for a low traffic
site like yours. To test this: try the following modifications:
1. in svc.c, line 594, replace
if(++be->n_requests > 30000) {
with
if(++be->n_requests > 2000) {
2. in svc.c, lines 960 and on (4 occurences total), whenever you update
the priorities you should also scale the statistics:
if(be->t_average < (average - sq_average)) {
be->priority++;
svc->tot_pri++;
be->n_requests /= 4; <-- added
be->t_requests /= 4; <-- added
}
if(be->t_average > (average + sq_average) && be->priority
> 1) {
be->priority--;
svc->tot_pri--;
be->n_requests /= 4; <-- added
be->t_requests /= 4; <-- added
}
same applies to lines 990 and on.
Please try these modifications and let me know if it helps.[...]
|