瀏覽代碼

cr: documentation extension related to the prime route behaviour (port r5898)

Henning Westerholt 16 年之前
父節點
當前提交
5ec9f271fa
共有 2 個文件被更改,包括 21 次插入3 次删除
  1. 10 2
      modules/carrierroute/README
  2. 11 1
      modules/carrierroute/doc/carrierroute_admin.xml

+ 10 - 2
modules/carrierroute/README

@@ -511,8 +511,16 @@ rewrite_user, hash_source, descavp)
    the destination or the number of channels. This function is
    only usable with rewrite_user and prefix_matching containing a
    valid string. This string needs to be numerical if the
-   match_mode parameter is set to 10. It uses the prime hash
-   algorithm to calculate the hash values.
+   match_mode parameter is set to 10.
+
+   It uses the prime hash algorithm to calculate the hash values.
+   This means that the fuction behaves different then the normal
+   routing function. If you don't know what this prime
+   functionality is, you should just use the cr_route function.
+   The prime routing algorithm not use the configured
+   probabilities in order to route requests, it just uses a fixed
+   hash distribution. If one of the hash targets is not available,
+   and no backup rule is configured, the function will return -1.
 
    Meaning of the parameters is as follows:
      * carrier - The routing tree to be used. Additional to a

+ 11 - 1
modules/carrierroute/doc/carrierroute_admin.xml

@@ -507,7 +507,17 @@ cr_tree_rewrite_uri(tree, domain)
         number of channels.
         This function is only usable with rewrite_user and prefix_matching
         containing a valid string. This string needs to be numerical if the match_mode
-		parameter is set to 10. It uses the prime hash algorithm to calculate the hash values.
+        parameter is set to 10.
+            </para>
+            <para>
+        It uses the prime hash algorithm to calculate the hash values. This
+        means that the fuction behaves different then the normal routing
+        function. If you don't know what this prime functionality is,
+        you should just use the <emphasis>cr_route</emphasis> function. The
+        prime routing algorithm not use the configured probabilities in
+        order to route requests, it just uses a fixed hash distribution. If
+        one of the hash targets is not available, and no backup rule is
+        configured, the function will return -1.
 	    </para>
 	    <para>Meaning of the parameters is as follows:</para>
 	    <itemizedlist>