Uploaded image for project: 'mod_cluster'
  1. mod_cluster
  2. MODCLUSTER-157

SystemMemoryUsageLoadMetric returns wrong load metric

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.4.GA, 1.1.0.CR3
    • 1.0.3.GA, 1.1.0.CR2
    • None
    • None
    • Release Notes

      When using SystemMemoryUsageLoadMetric, mod_cluster prioritizes dispatching requests to a machine which are using system memory higher than other machines. This loadbalancing behaviour is odd.

      SystemMemoryUsageLoadMetric[1] returns wrong load metric. The SystemMemoryUsageLoadMetric#getLoad() should not return "free / total". It should return "(total - free) / total" (= usage / total ) like HeapMemoryUsageLoadMetric[2].

      [1] http://anonsvn.jboss.org/repos/mod_cluster/tags/1.0.3.GA/src/main/java/org/jboss/modcluster/load/metric/impl/SystemMemoryUsageLoadMetric.java
      [2] http://anonsvn.jboss.org/repos/mod_cluster/tags/1.0.3.GA/src/main/java/org/jboss/modcluster/load/metric/impl/HeapMemoryUsageLoadMetric.java

            pferraro@redhat.com Paul Ferraro
            rhn-support-mmiura Masafumi Miura
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: