[mod_cluster-issues] [JBoss JIRA] (MODCLUSTER-606) Documentation Error - Chapter 10 - Time decay formulas

Leandro Quiroga (JIRA) issues at jboss.org
Tue Aug 1 09:33:00 EDT 2017


Leandro Quiroga created MODCLUSTER-606:
------------------------------------------

             Summary: Documentation Error - Chapter 10 - Time decay formulas
                 Key: MODCLUSTER-606
                 URL: https://issues.jboss.org/browse/MODCLUSTER-606
             Project: mod_cluster
          Issue Type: Bug
          Components: Documentation & Demos
    Affects Versions: 1.3.7.Final, 1.2.13.Final
            Reporter: Leandro Quiroga
            Assignee: Jean-Frederic Clere
            Priority: Minor


In chapter 10 (http://docs.jboss.org/mod_cluster/1.3.0/html_single/#java.load), it says:

The DynamicLoadBalanceFactorProvider applies a time decay function to the loads returned by each metric. The aggregate load, with respect to previous load values, can be expressed by the following formula:

L = (L0 + L1/D + L2/D2 + L3/D3 + ... + LH/DH) * (1 + D + D2 + D3 + ... DH)

... or more concisely as:

L = (∑Hi=0 Li/Di) * (∑Hi=0 Di)

... where D = decayFactor, and H = history.

 

But both formulas are wrong.

It should says:

The DynamicLoadBalanceFactorProvider applies a time decay function to the loads returned by each metric. The aggregate load, with respect to previous load values, can be expressed by the following formula:

L = (L0/D0 + L1/D1 + L2/D2 + L3/D3 + ... + LH/DH) / (1/D0 + 1/D1 + 1/D2 + 1/D3 + ... 1/DH)

... or more concisely as:

L = (∑Hi=0 Li/Di) / (∑Hi=0 1/Di)

... where D = decayFactor, and H = history.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the mod_cluster-issues mailing list