12 Replies Latest reply on Dec 13, 2012 5:12 AM by Michal Karm Babacek

    AS7 modcluster load-metric capacity values

    Pavel Orehov Newbie



      I'm using AS 7.1.1.Final + HTTPD mod_cluster 1.2.0.Final - all works fine.


      My question is regarding capacity values in JBoss modcluster configuration.


      <subsystem xmlns="urn:jboss:domain:modcluster:1.0">

                  <mod-cluster-config advertise-socket="modcluster" advertise-security-key="secret">              

                      <dynamic-load-provider history="10" decay="2">

                          <load-metric type="heap" weight="3" capacity="1024"/>

                          <load-metric type="cpu" weight="2" capacity="2"/>

                          <load-metric type="mem" weight="2" capacity="16"/>

                          <load-metric type="sessions" weight="1" capacity="150"/>





      According to http://docs.jboss.org/mod_cluster/1.2.0/html_single/#ModClusterSubSystem load() of dynamic load providers should return load value between 0-100% and the load-metric is ((load / capacity) * weight).


      So, assumming all JBoss instances run on machines with same CPU and memory, what should be the capacity values for every load-metric ?


      For example, if start JBoss JVM with 1024MB of heap should the capacity be 1024 or 1 ?


      For sessions it is totally unclear what should be the metric. Is it max expected sessions count ?