WALL-E / Practice

练习手册
0 stars 0 forks source link

upstream server temporarily disabled #15

Open WALL-E opened 7 years ago

WALL-E commented 7 years ago
if (peer->max_fails) {
            peer->effective_weight -= peer->weight / peer->max_fails;

            if (peer->fails >= peer->max_fails) {
                ngx_log_error(NGX_LOG_WARN, pc->log, 0,
                              "upstream server temporarily disabled");
            }
}