summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h')
-rw-r--r--TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h
index 34003d356c5..e11f443c091 100644
--- a/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h
+++ b/TAO/orbsvcs/orbsvcs/LoadBalancing/LB_LeastLoaded.h
@@ -33,11 +33,33 @@ namespace TAO_LB
*
* Defaults defined by the Load Balancing specification.
*/
+ //@{
const CORBA::Float LL_DEFAULT_CRITICAL_THRESHOLD = 0;
const CORBA::Float LL_DEFAULT_REJECT_THRESHOLD = 0;
const CORBA::Float LL_DEFAULT_TOLERANCE = 1;
const CORBA::Float LL_DEFAULT_DAMPENING = 0;
const CORBA::Float LL_DEFAULT_PER_BALANCE_LOAD = 0;
+ //@}
+
+ /**
+ * @name TAO-specific LeastLoaded strategy parameters.
+ *
+ * Parameters internal to TAO's LeastLoaded strategy
+ * implementation.
+ */
+ //@{
+ /// Percentage difference between two load values that determines
+ /// whether the loads are considered equivalent.
+ /**
+ * If the percent difference between two loads, i.e.:
+ * (Old Load - New Load) / New Load
+ * is less than or equal to this value, the two loads will be
+ * considered equivalent. In such a case, an object group member
+ * residing at the location corresponding to one of the two loads
+ * will be selected at random.
+ */
+ const CORBA::Float LL_DEFAULT_LOAD_PERCENT_DIFF_CUTOFF = 0.01; // 1%
+ //@}
}
/**