فهرست منبع

dispacher: docs - more details about weight and rweight attributes

- cross reference sections that have info about weight and rweight
attributes
Daniel-Constantin Mierla 4 سال پیش
والد
کامیت
db55715003
1فایلهای تغییر یافته به همراه20 افزوده شده و 7 حذف شده
  1. 20 7
      src/modules/dispatcher/doc/dispatcher_admin.xml

+ 20 - 7
src/modules/dispatcher/doc/dispatcher_admin.xml

@@ -1193,7 +1193,7 @@ modparam("dispatcher", "reload_delta", 1)
 				<para>
 				<para>
 				<quote>9</quote> - use weight based load distribution. You
 				<quote>9</quote> - use weight based load distribution. You
 				have to set the attribute 'weight' for each address (gateway) in
 				have to set the attribute 'weight' for each address (gateway) in
-				destination set. For more see the description of the 'weight'
+				destination set. See also the description of the 'weight'
 				attribute in the 'Special Attributes' section.
 				attribute in the 'Special Attributes' section.
 				</para>
 				</para>
 			</listitem>
 			</listitem>
@@ -1232,12 +1232,15 @@ modparam("dispatcher", "reload_delta", 1)
 				<para>
 				<para>
 				The major difference from the weight distribution is the
 				The major difference from the weight distribution is the
 				probability recalculation according to rweight value in case of
 				probability recalculation according to rweight value in case of
-				host enabling/disabling
+				destinations being active or inactive.
 				</para>
 				</para>
 				<para>
 				<para>
-				For example, 100 calls in 3-hosts group with rweight params 1/2/1
-				will be distributed as 25/50/25. After third host failing
-				distribution will be changed to 33/67/0.
+				For example, 100 calls in 3-destinations group with rweight params 1/2/1
+				will be distributed as 25/50/25. If the third destination becomes
+				inactive, the distribution is changed to 33/67/0. If the computation
+				of percentage per destination is not an exact integer number, the value
+				is trucated and the last destination is used to fill the remaining
+				percentage till 100.
 				</para>
 				</para>
 				<para>
 				<para>
 				Using this algorithm, you can also enable congestion control by setting the
 				Using this algorithm, you can also enable congestion control by setting the
@@ -1252,6 +1255,10 @@ modparam("dispatcher", "reload_delta", 1)
 				If all the gateways in a set are above their congestion threshold(weight), the
 				If all the gateways in a set are above their congestion threshold(weight), the
 				load distribution is instead done using the ratio of estimated congestion ms.
 				load distribution is instead done using the ratio of estimated congestion ms.
 				</para>
 				</para>
+				<para>
+				See also the description of the 'rweight' attribute in the
+				'Special Attributes' section.
+				</para>
 			</listitem>
 			</listitem>
 			<listitem>
 			<listitem>
 				<para>
 				<para>
@@ -2141,13 +2148,19 @@ kamctl rpc dispatcher.hash 4 bob server.com
 						<listitem>
 						<listitem>
 							<para>'weight' - used for weight based load distribution. It must be set
 							<para>'weight' - used for weight based load distribution. It must be set
 								to a positive integer value beteen 0 and 100. The value represents
 								to a positive integer value beteen 0 and 100. The value represents
-								the percent of calls to be sent to that gateways.></para>
+								the percent of calls to be sent to that gateways. The sum must not
+								exceed 100, otherwise the destinations whose weight added to the
+								sum go over 100 are ignored. If the sum is less than 100, then the
+								last destination is used to fill the missing percentage. See also
+								the description of the corresponding algorithm parameter for
+								ds_select_dst().</para>
 						</listitem>
 						</listitem>
 						<listitem>
 						<listitem>
 							<para>'rweight' - used for relative weight based load distribution. It
 							<para>'rweight' - used for relative weight based load distribution. It
 								must be set to a positive integer value between 1 and 100 (otherwise
 								must be set to a positive integer value between 1 and 100 (otherwise
 								host will be excluded from relative weight distribution
 								host will be excluded from relative weight distribution
-								type).</para>
+								type). See also the description of the corresponding algorithm
+								parameter for ds_select_dst().</para>
 						</listitem>
 						</listitem>
 						<listitem>
 						<listitem>
 							<para>'socket' - used to set the sending socket for the gateway. It is
 							<para>'socket' - used to set the sending socket for the gateway. It is