Changeset 6704:a44ba757851d in nginx


Ignore:
Timestamp:
09/22/16 16:32:45 (4 years ago)
Author:
Ruslan Ermilov <ru@…>
Branch:
default
Phase:
public
Message:

Upstream: removed the quick recovery mechanism.

Its usefulness it questionable, and it interacts badly with max_conns.

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/http/modules/ngx_http_upstream_least_conn_module.c

    r6702 r6704  
    273273    }
    274274
    275     /* all peers failed, mark them as live for quick recovery */
    276 
    277     for (peer = peers->peer; peer; peer = peer->next) {
    278         peer->fails = 0;
    279     }
    280 
    281275    ngx_http_upstream_rr_peers_unlock(peers);
    282276
  • src/http/ngx_http_upstream_round_robin.c

    r6702 r6704  
    486486    }
    487487
    488     /* all peers failed, mark them as live for quick recovery */
    489 
    490     for (peer = peers->peer; peer; peer = peer->next) {
    491         peer->fails = 0;
    492     }
    493 
    494488    ngx_http_upstream_rr_peers_unlock(peers);
    495489
  • src/stream/ngx_stream_upstream_least_conn_module.c

    r6702 r6704  
    269269    }
    270270
    271     /* all peers failed, mark them as live for quick recovery */
    272 
    273     for (peer = peers->peer; peer; peer = peer->next) {
    274         peer->fails = 0;
    275     }
    276 
    277271    ngx_stream_upstream_rr_peers_unlock(peers);
    278272
  • src/stream/ngx_stream_upstream_round_robin.c

    r6702 r6704  
    492492    }
    493493
    494     /* all peers failed, mark them as live for quick recovery */
    495 
    496     for (peer = peers->peer; peer; peer = peer->next) {
    497         peer->fails = 0;
    498     }
    499 
    500494    ngx_stream_upstream_rr_peers_unlock(peers);
    501495
Note: See TracChangeset for help on using the changeset viewer.