|
Ian Kent |
3685ec |
autofs-5.0.3 - update replicated server selection documentation
|
|
Ian Kent |
3685ec |
|
|
Ian Kent |
3685ec |
From: Ian Kent <raven@themaw.net>
|
|
Ian Kent |
3685ec |
|
|
Ian Kent |
3685ec |
Update the replicated server selection README documentation to
|
|
Ian Kent |
3685ec |
reflect the selection rules now used.
|
|
Ian Kent |
3685ec |
---
|
|
Ian Kent |
3685ec |
|
|
Ian Kent |
3685ec |
CHANGELOG | 1 +
|
|
Ian Kent |
3685ec |
README.replicated-server | 53 ++++++++++++++++++++++------------------------
|
|
Ian Kent |
3685ec |
2 files changed, 26 insertions(+), 28 deletions(-)
|
|
Ian Kent |
3685ec |
|
|
Ian Kent |
3685ec |
|
|
Ian Kent |
3685ec |
diff --git a/CHANGELOG b/CHANGELOG
|
|
Ian Kent |
3685ec |
index af3318a..be39e33 100644
|
|
Ian Kent |
3685ec |
--- a/CHANGELOG
|
|
Ian Kent |
3685ec |
+++ b/CHANGELOG
|
|
Ian Kent |
3685ec |
@@ -31,6 +31,7 @@
|
|
Ian Kent |
3685ec |
umount during expire.
|
|
Ian Kent |
3685ec |
- make mount of multi-mounts wuth a root offset atomic.
|
|
Ian Kent |
3685ec |
- add replicated server selection debug logging.
|
|
Ian Kent |
3685ec |
+- update replicated server selection documentation.
|
|
Ian Kent |
3685ec |
|
|
Ian Kent |
3685ec |
14/01/2008 autofs-5.0.3
|
|
Ian Kent |
3685ec |
-----------------------
|
|
Ian Kent |
3685ec |
diff --git a/README.replicated-server b/README.replicated-server
|
|
Ian Kent |
3685ec |
index 333dea3..1d771d3 100644
|
|
Ian Kent |
3685ec |
--- a/README.replicated-server
|
|
Ian Kent |
3685ec |
+++ b/README.replicated-server
|
|
Ian Kent |
3685ec |
@@ -3,48 +3,45 @@ Supported forms for mount paths are:
|
|
Ian Kent |
3685ec |
Normal single-host (these are unchanged)
|
|
Ian Kent |
3685ec |
<path> host:/path/path
|
|
Ian Kent |
3685ec |
|
|
Ian Kent |
3685ec |
+Single host entries are not probed for a server response.
|
|
Ian Kent |
3685ec |
+
|
|
Ian Kent |
3685ec |
Multiple replicated hosts, same path:
|
|
Ian Kent |
3685ec |
<path> host1,host2,hostn:/path/path
|
|
Ian Kent |
3685ec |
|
|
Ian Kent |
3685ec |
-This will do an initial RPC call with a .1 second timeout to all hosts to
|
|
Ian Kent |
3685ec |
-find best match. If this fails, it will try a 10 second timeout, if this
|
|
Ian Kent |
3685ec |
-fails it takes the first host.
|
|
Ian Kent |
3685ec |
-
|
|
Ian Kent |
3685ec |
Multiple hosts, some with same path, some with another
|
|
Ian Kent |
3685ec |
<path> host1,host2:/blah host3:/some/other/path
|
|
Ian Kent |
3685ec |
|
|
Ian Kent |
3685ec |
-Works as expected
|
|
Ian Kent |
3685ec |
-
|
|
Ian Kent |
3685ec |
Multiple replicated hosts, different (potentially) paths:
|
|
Ian Kent |
3685ec |
<path> host1:/path/pathA host2:/path/pathB
|
|
Ian Kent |
3685ec |
|
|
Ian Kent |
3685ec |
-Same as above with RPC calls..
|
|
Ian Kent |
3685ec |
-
|
|
Ian Kent |
3685ec |
Mutliple weighted, replicated hosts same path:
|
|
Ian Kent |
3685ec |
-
|
|
Ian Kent |
3685ec |
<path> host1(5),host2(6),host3(1):/path/path
|
|
Ian Kent |
3685ec |
|
|
Ian Kent |
3685ec |
-Will pick lowest weighted host that responds to RPC call.
|
|
Ian Kent |
3685ec |
-RPC time is not counted, only whether the call got a reply
|
|
Ian Kent |
3685ec |
-at all. Initially does a .1 second timeout, if all hosts
|
|
Ian Kent |
3685ec |
-fail this, moves to 10 second timeout. If one of the hosts
|
|
Ian Kent |
3685ec |
-is localhost, the automounter will choose that regardless of
|
|
Ian Kent |
3685ec |
-its weight. (This has been done to remain compatible with
|
|
Ian Kent |
3685ec |
-Sun's automounter)
|
|
Ian Kent |
3685ec |
-
|
|
Ian Kent |
3685ec |
Multiple weighted, replicated hosts different (potentially)
|
|
Ian Kent |
3685ec |
paths:
|
|
Ian Kent |
3685ec |
<path> host1(3):/path/pathA host2(5):/path/pathB
|
|
Ian Kent |
3685ec |
|
|
Ian Kent |
3685ec |
-Same as above with RPC calls/weighting.
|
|
Ian Kent |
3685ec |
-
|
|
Ian Kent |
3685ec |
-Anything else is questionable and unsupported, but these
|
|
Ian Kent |
3685ec |
-variations will also work:
|
|
Ian Kent |
3685ec |
-<path> host1(3),host:/blah
|
|
Ian Kent |
3685ec |
-
|
|
Ian Kent |
3685ec |
-Unsupported and I don't know why you would use this, but will
|
|
Ian Kent |
3685ec |
-work. Weighted host always gets precedence if it responds to RPC
|
|
Ian Kent |
3685ec |
-
|
|
Ian Kent |
3685ec |
-Anything else, I ain't making no promises.
|
|
Ian Kent |
3685ec |
+For these formats a priority ordered list of hosts is created by using
|
|
Ian Kent |
3685ec |
+the following selection rules.
|
|
Ian Kent |
3685ec |
+
|
|
Ian Kent |
3685ec |
+1) Highest priority in selection is proximity.
|
|
Ian Kent |
3685ec |
+ Proximity, in order of precedence is:
|
|
Ian Kent |
3685ec |
+ - PROXIMITY_LOCAL, host corresponds to a local interface.
|
|
Ian Kent |
3685ec |
+ - PROXIMITY_SUBNET, host is located in a subnet reachable
|
|
Ian Kent |
3685ec |
+ through a local interface.
|
|
Ian Kent |
3685ec |
+ - PROXIMITY_NETWORK, host is located in a network reachable
|
|
Ian Kent |
3685ec |
+ through a local interface.
|
|
Ian Kent |
3685ec |
+ - PROXIMITY_OTHER, host is on a network not directlty
|
|
Ian Kent |
3685ec |
+ reachable through a local interface.
|
|
Ian Kent |
3685ec |
+
|
|
Ian Kent |
3685ec |
+2) NFS version and protocol is selected by caclculating the largest
|
|
Ian Kent |
3685ec |
+ number of hosts supporting an NFS version and protocol that
|
|
Ian Kent |
3685ec |
+ have the closest proximity. These hosts are added to the list
|
|
Ian Kent |
3685ec |
+ in response time order. Hosts may have a corresponding weight
|
|
Ian Kent |
3685ec |
+ which essentially increases response time and so influences the
|
|
Ian Kent |
3685ec |
+ host order.
|
|
Ian Kent |
3685ec |
+
|
|
Ian Kent |
3685ec |
+3) Hosts at further proximity that support the selected NFS version
|
|
Ian Kent |
3685ec |
+ and protocol are also added to the list in response time order as
|
|
Ian Kent |
3685ec |
+ in 2 above.
|
|
Ian Kent |
3685ec |
|
|
Ian Kent |
3685ec |
-Jason
|