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
- blocks
-
JBPAPP-4307 MODCLUSTER-157: SystemMemoryUsageLoadMetric returns wrong load metric
- Closed