Niklas Keller
c18658e9fe
Upstream hash: fall back to round-robin if hash key is empty.
2019-05-23 16:49:22 +03:00
Ruslan Ermilov
2eab9efbe4
Upstream: improved peer selection concurrency for hash and ip_hash.
2018-06-14 07:03:50 +03:00
Maxim Dounin
53d655f894
Upstream hash: reordered peer checks.
...
This slightly reduces cost of selecting a peer if all or almost all peers
failed, see ticket #1030 . There should be no measureable difference with
other workloads.
2017-10-05 17:43:05 +03:00
Maxim Dounin
a10ec2db91
Upstream hash: limited number of tries in consistent case.
...
While this may result in non-ideal distribution of requests if nginx
won't be able to select a server in a reasonable number of attempts,
this still looks better than severe performance degradation observed
if there is no limit and there are many points configured (ticket #1030 ).
This is also in line with what we do for other hash balancing methods.
2017-10-05 17:42:59 +03:00
Ruslan Ermilov
f674f32c09
Upstream: max_conns.
2016-09-22 19:32:47 +03:00
Maxim Dounin
017cf96c9b
Upstream: style.
2016-09-22 19:31:08 +03:00
Vladimir Homutov
f8a9d528df
Upstream hash: fixed missing upstream name initialization.
2016-09-16 15:13:24 +03:00
Vladimir Homutov
e1308338a9
Stream: style.
2016-07-12 17:34:40 +03:00
Vladimir Homutov
cb635b7879
Stream: got rid of pseudo variables.
...
Stream limit_conn, upstream_hash and proxy modules now use complex values.
2016-06-29 12:46:12 +03:00
Vladimir Homutov
db5a15d2f9
Stream: added preconfiguration step.
2016-06-15 15:10:24 +03:00
Vladimir Homutov
d56b84b783
Stream: added postconfiguration method to stream modules.
2015-06-09 13:00:45 +03:00
Sergey Kandaurov
3670726bd3
Upstream hash: consistency across little/big endianness.
2015-05-18 16:05:44 +03:00
Ruslan Ermilov
673941f81d
Upstream: simplified ip_hash and hash peer selection code.
...
Now that peers are stored as a list, the weighted and unweighted
cases became nearly identical.
2015-04-21 19:09:04 +03:00
Ruslan Ermilov
c799c82faa
Stream: port from NGINX+.
2015-04-20 13:05:11 +03:00