changeset 1427:eb1d883305ea

Tests: avoid edge cases in upstream random two test. Unavailable servers contribute to the number of attempts, if selected, before the balancer would fall back to the default round-robin method. This means that it's quite possible to get server with more connections. To facilitate with selecting two alive servers, down server was removed from the upstream configuration at the cost of slightly worse coverage.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 10 Jan 2019 17:42:34 +0300
parents a8d18c2852ab
children 4c43a0ebcd2d
files upstream_random.t
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/upstream_random.t
+++ b/upstream_random.t
@@ -49,7 +49,6 @@ http {
         random two;
         server 127.0.0.1:8081;
         server 127.0.0.1:8082;
-        server 127.0.0.1:8083 down;
     }
 
     upstream w {