Mercurial > hg > ngx_http_upstream_keepalive
comparison README @ 45:489c5d4318ff draft
Keepalive: "single" parameter deprecated.
The original idea was to optimize edge cases in case of interchangeable
backends, i.e. don't establish a new connection if we have any one
cached. This causes more harm than good though, as it screws up
underlying balancer's idea about backends used and may result in
various unexpected problems.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 25 Jun 2012 22:55:53 +0400 |
parents | a84573f16a0c |
children | 92125e266aa4 |
comparison
equal
deleted
inserted
replaced
44:d9ac9ad67f45 | 45:489c5d4318ff |
---|---|
16 | 16 |
17 - <num> | 17 - <num> |
18 Maximum number of connections to cache. If there isn't enough | 18 Maximum number of connections to cache. If there isn't enough |
19 room to cache new connections - last recently used connections | 19 room to cache new connections - last recently used connections |
20 will be kicked off the cache. | 20 will be kicked off the cache. |
21 | |
22 - single | |
23 Treat everything as single host. With this flag connections | |
24 to different backends are treated as equal. | |
25 | 21 |
26 Sample configuration: | 22 Sample configuration: |
27 | 23 |
28 upstream memd { | 24 upstream memd { |
29 server 127.0.0.1:11211; | 25 server 127.0.0.1:11211; |