From: Joshua Slive Date: Wed, 1 Aug 2007 17:53:13 +0000 (+0000) Subject: Backport rewrite load balancing fix. X-Git-Tag: 2.2.5~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9af160369b908d4727874c689bb3884c71e3d61e;p=thirdparty%2Fapache%2Fhttpd.git Backport rewrite load balancing fix. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@561889 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/misc/rewriteguide.html.en b/docs/manual/misc/rewriteguide.html.en index 845a224ee00..4ad31b1795d 100644 --- a/docs/manual/misc/rewriteguide.html.en +++ b/docs/manual/misc/rewriteguide.html.en @@ -1262,19 +1262,15 @@ www5 IN A 1.2.3.6

Then you additionally add the following entry:

-www    IN  CNAME   www0.foo.com.
-       IN  CNAME   www1.foo.com.
-       IN  CNAME   www2.foo.com.
-       IN  CNAME   www3.foo.com.
-       IN  CNAME   www4.foo.com.
-       IN  CNAME   www5.foo.com.
-       IN  CNAME   www6.foo.com.
-
- -

Notice that this seems wrong, but is actually an - intended feature of BIND and can be used - in this way. However, now when www.foo.com gets - resolved, BIND gives out www0-www6 +www IN A 1.2.3.1 +www IN A 1.2.3.2 +www IN A 1.2.3.3 +www IN A 1.2.3.4 +www IN A 1.2.3.5 + + +

Now when www.foo.com gets + resolved, BIND gives out www0-www5 - but in a slightly permutated/rotated order every time. This way the clients are spread over the various servers. But notice that this not a perfect load diff --git a/docs/manual/misc/rewriteguide.xml b/docs/manual/misc/rewriteguide.xml index e9f5436e069..8a0d22cc717 100644 --- a/docs/manual/misc/rewriteguide.xml +++ b/docs/manual/misc/rewriteguide.xml @@ -1263,19 +1263,15 @@ www5 IN A 1.2.3.6

Then you additionally add the following entry:

-www    IN  CNAME   www0.foo.com.
-       IN  CNAME   www1.foo.com.
-       IN  CNAME   www2.foo.com.
-       IN  CNAME   www3.foo.com.
-       IN  CNAME   www4.foo.com.
-       IN  CNAME   www5.foo.com.
-       IN  CNAME   www6.foo.com.
-
- -

Notice that this seems wrong, but is actually an - intended feature of BIND and can be used - in this way. However, now when www.foo.com gets - resolved, BIND gives out www0-www6 +www IN A 1.2.3.1 +www IN A 1.2.3.2 +www IN A 1.2.3.3 +www IN A 1.2.3.4 +www IN A 1.2.3.5 + + +

Now when www.foo.com gets + resolved, BIND gives out www0-www5 - but in a slightly permutated/rotated order every time. This way the clients are spread over the various servers. But notice that this not a perfect load diff --git a/docs/manual/rewrite/rewrite_guide_advanced.html.en b/docs/manual/rewrite/rewrite_guide_advanced.html.en index b020eaa264a..4d7d732d19e 100644 --- a/docs/manual/rewrite/rewrite_guide_advanced.html.en +++ b/docs/manual/rewrite/rewrite_guide_advanced.html.en @@ -619,19 +619,15 @@ www5 IN A 1.2.3.6

Then you additionally add the following entry:

-www    IN  CNAME   www0.foo.com.
-       IN  CNAME   www1.foo.com.
-       IN  CNAME   www2.foo.com.
-       IN  CNAME   www3.foo.com.
-       IN  CNAME   www4.foo.com.
-       IN  CNAME   www5.foo.com.
-       IN  CNAME   www6.foo.com.
+www   IN  A       1.2.3.1
+www   IN  A       1.2.3.2
+www   IN  A       1.2.3.3
+www   IN  A       1.2.3.4
+www   IN  A       1.2.3.5
 
-

Notice that this seems wrong, but is actually an - intended feature of BIND and can be used - in this way. However, now when www.foo.com gets - resolved, BIND gives out www0-www6 +

Now when www.foo.com gets + resolved, BIND gives out www0-www5 - but in a slightly permutated/rotated order every time. This way the clients are spread over the various servers. But notice that this not a perfect load diff --git a/docs/manual/rewrite/rewrite_guide_advanced.xml b/docs/manual/rewrite/rewrite_guide_advanced.xml index 9c9ed5f6c2d..d264675cfec 100644 --- a/docs/manual/rewrite/rewrite_guide_advanced.xml +++ b/docs/manual/rewrite/rewrite_guide_advanced.xml @@ -623,19 +623,15 @@ www5 IN A 1.2.3.6

Then you additionally add the following entry:

-www    IN  CNAME   www0.foo.com.
-       IN  CNAME   www1.foo.com.
-       IN  CNAME   www2.foo.com.
-       IN  CNAME   www3.foo.com.
-       IN  CNAME   www4.foo.com.
-       IN  CNAME   www5.foo.com.
-       IN  CNAME   www6.foo.com.
+www   IN  A       1.2.3.1
+www   IN  A       1.2.3.2
+www   IN  A       1.2.3.3
+www   IN  A       1.2.3.4
+www   IN  A       1.2.3.5
 
-

Notice that this seems wrong, but is actually an - intended feature of BIND and can be used - in this way. However, now when www.foo.com gets - resolved, BIND gives out www0-www6 +

Now when www.foo.com gets + resolved, BIND gives out www0-www5 - but in a slightly permutated/rotated order every time. This way the clients are spread over the various servers. But notice that this not a perfect load