3 Replies Latest reply on Jul 23, 2012 8:22 AM by Jean-Frederic Clere

    add-metric&remove-metric

    Bogdan Toma Newbie

      Hello all,

       

      I have set up modcluster subsystem inside JBoss7.0.2.

      According to this: https://docs.jboss.org/author/display/AS7/mod_cluster+in+AS7

      when running :read-operation-names in console i should have add-metric&remove-metric.

      I do not have them.

      What i get is this:

      [standalone@localhost:9999 subsystem=modcluster] :read-operation-names

      {

          "outcome" => "success",

          "result" => [

              "add",

              "add-proxy",

              "disable",

              "disable-context",

              "enable",

              "enable-context",

              "list-proxies",

              "read-attribute",

              "read-children-names",

              "read-children-resources",

              "read-children-types",

              "read-operation-description",

              "read-operation-names",

              "read-resource",

              "read-resource-description",

              "refresh",

              "remove-proxy",

              "reset",

              "stop",

              "stop-context",

              "validate-address",

              "write-attribute"

          ]

      }

       

       

      Do i have to do something special for those operations?

      Are these operationes somewhere else?

       

      Thank you.

        • 1. Re: add-metric&remove-metric
          Jean-Frederic Clere Master

          Because they are in mod-cluster-config=configuration

          • 2. Re: add-metric&remove-metric
            Bogdan Toma Newbie

            Hello, thank you for reply.

             

            Still not working.

            I have done this:

            [standalone@localhost:9999 /] cd subsystem=modcluster

            [standalone@localhost:9999 subsystem=modcluster] cd mod-cluster-config=configuration

            [standalone@localhost:9999 mod-cluster-config=configuration] :add-metric(type=cpu)

            {

                "outcome" => "failed",

                "failure-description" => "No handler for operation add-metric at address [

                (\"subsystem\" => \"modcluster\"),

                (\"mod-cluster-config\" => \"configuration\")

            ]",

                "rolled-back" => true

            }

            [standalone@localhost:9999 mod-cluster-config=configuration]

             

            I have the following configuration in AS7:

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

                        <mod-cluster-config advertise-socket="modcluster">

                            <dynamic-load-provider history="0" decay="1">

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

                            </dynamic-load-provider>

                        </mod-cluster-config>

                   </subsystem>

            • 3. Re: add-metric&remove-metric
              Jean-Frederic Clere Master

              I guess that was a bug related to AS7-3194 you should try with a never version of AS7.

              I have:

               

              [standalone@localhost:9999 mod-cluster-config=configuration] :add-metric(type=cpu)

              {

                  "outcome" => "success",

                  "response-headers" => {

                      "operation-requires-reload" => true,

                      "process-state" => "reload-required"

                  }

              }

              1 of 1 people found this helpful