You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ml...@apache.org on 2018/11/06 17:36:16 UTC
[trafficserver] branch master updated: Doc: Describe parent weight
and format
This is an automated email from the ASF dual-hosted git repository.
mlibbey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new ca6cf23 Doc: Describe parent weight and format
ca6cf23 is described below
commit ca6cf23dd0d752d6be41f1f838d134ad8ab380ee
Author: Miles Libbey <ml...@apache.org>
AuthorDate: Sun Nov 4 08:54:52 2018 -0800
Doc: Describe parent weight and format
In Issue #4549, realized that the parent weights were never documented. In the version
that shall not be named, there was an example that had a weight, but, it was not mentioned
in the text.
---
doc/admin-guide/files/parent.config.en.rst | 33 +++++++++++++++++++++---------
1 file changed, 23 insertions(+), 10 deletions(-)
diff --git a/doc/admin-guide/files/parent.config.en.rst b/doc/admin-guide/files/parent.config.en.rst
index ef615d8..3a26e95 100644
--- a/doc/admin-guide/files/parent.config.en.rst
+++ b/doc/admin-guide/files/parent.config.en.rst
@@ -15,6 +15,8 @@
specific language governing permissions and limitations
under the License.
+.. include:: ../../common.defs
+
=============
parent.config
=============
@@ -122,16 +124,27 @@ The following list shows the possible actions and their allowed values.
.. _parent-config-format-parent:
-``parent``
- An ordered list of parent servers. If the request cannot be handled
- by the last parent server in the list, then it will be routed to the
- origin server. You can specify either a hostname or an IP address,
- but; you must specify the port number.
+``parent`` `(hostname or IP address):port[|weight][,another host]`
+ An ordered list of parent servers, separated by commas or
+ semicolons. If the request cannot be handled by the last parent
+ server in the list, then it will be routed to the origin server.
+ You can specify either a hostname or an IP address, but, you must
+ specify the port number. If there are multiple IP addresses associated
+ with the hostname, |TS| will treat them as a single entity when tracking
+ health. Example::
+
+ parent="p1.x.com:8080, 192.168.0.3:80, 192.168.0.4:80"
+
+ An optional weight can be specified after a pipe (``|``). This example
+ has one parent take 20% (2/(2+3+5)) of the requests, another 30% (3/(2+3+5)),
+ and the last 50% (5/(2+3+5))::
+
+ parent="p1.x.com:8080|2.0, 192.168.0.3:80|3.0, 192.168.0.4:80|5.0"
.. _parent-config-format-secondary-parent:
``secondary_parent``
- An optional ordered list of secondary parent servers. This
+ An optional ordered list of secondary parent servers in the same format as parent. This
optional list may only be used when ``round_robin`` is set to
``consistent_hash``. If the request cannot be handled by the
first parent server chosen from the ``parent`` list, then the
@@ -177,11 +190,11 @@ The following list shows the possible actions and their allowed values.
One of the following values:
- ``true`` - This is the default. The list of parents and secondary parents
- are proxy cache servers.
+ are proxy cache servers.
- ``false`` - The list of parents and secondary parents are the origin
- servers ``go_direct`` flag is ignored and origins are selected using
- the specified ``round_robin`` algorithm. The FQDN is removed from
- the http request line.
+ servers ``go_direct`` flag is ignored and origins are selected using
+ the specified ``round_robin`` algorithm. The FQDN is removed from
+ the http request line.
.. _parent-config-format-parent-retry: