Skip to end of metadata
Go to start of metadata

The mod_cluster integration is done via the modcluster subsystem it requires mod_cluster-1.1.x.or mod_cluster-1.2.x (since 7.1.0)

The modcluster subsystem supports several operations:

The operations specific to the modcluster subsystem are divided in 3 categories the ones that affects the configuration and require a restart of the subsystem, the one that just modify the behaviour temporarily and the ones that display information from the httpd part.

operations displaying httpd informations

There are 2 operations that display how Apache httpd sees the node:

read-proxies-configuration

Send a DUMP message to all Apache httpd the node is connected to and display the message received from Apache httpd.

read-proxies-info

Send a INFO message to all Apache httpd the node is connected to and display the message received from Apache httpd.

operations that handle the proxies the node is connected too

there are 3 operation that could be used to manipulate the list of Apache httpd the node is connected too.

list-proxies:

Displays the httpd that are connected to the node. The httpd could be discovered via the Advertise protocol or via the proxy-list attribute.

remove-proxy

Remove a proxy from the discovered proxies or  temporarily from the proxy-list attribute.

add-proxy

Add a proxy to the discovered proxies or  temporarily to the proxy-list attribute.

Context related operations

Those operations allow to send context related commands to Apache httpd. They are send automatically when deploying or undeploying  webapps.

enable-context

Tell Apache httpd that the context is ready receive requests.

disable-context

Tell Apache httpd that it shouldn't send new session requests to the context of the virtualhost.

stop-context

Tell Apache httpd that it shouldn't send requests to the context of the virtualhost.

Node related operations

Those operations are like the context operation but they apply to all webapps running on the node and operation that affect the whole node.

refresh

Refresh the node by sending a new CONFIG message to Apache httpd.

reset

reset the connection between Apache httpd and the node

Configuration

Metric configuration

There are 4 metric operations corresponding to add and remove load metrics to the dynamic-load-provider. Note that when nothing is defined a simple-load-provider is use with a fixed load factor of one.

that corresponds to the following configuration:

add-metric

Add a metric to the dynamic-load-provider, the dynamic-load-provider in configuration is created if needed.

remove-metric

Remove a metric from the dynamic-load-provider.

add-custom-metric / remove-custom-metric

like the add-metric and remove-metric except they require a class parameter instead the type. Usually they needed additional properties which can be specified

which corresponds the following in the xml configuration file:

JVMRoute configuration

If you want to use your own JVM route instead of automatically generated one you can insert the following property:

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Aug 23, 2014

    a k

    list-proxies,read-proxies-info,add-proxy, enable-context is not available in domain mode ?
    [domain@server-name:9999 /] :read-operation-names
    {
        "outcome" => "success",
        "result" => [
            "add-namespace",
            "add-schema-location",
            "delete-snapshot",
            "full-replace-deployment",
            "list-snapshots",
            "read-attribute",
            "read-children-names",
            "read-children-resources",
            "read-children-types",
            "read-config-as-xml",
            "read-operation-description",
            "read-operation-names",
            "read-resource",
            "read-resource-description",
            "remove-namespace",
            "remove-schema-location",
            "resolve-expression-on-domain",
            "restart-servers",
            "start-servers",
            "stop-servers",
            "take-snapshot",
            "undefine-attribute",
            "upload-deployment-bytes",
            "upload-deployment-stream",
            "upload-deployment-url",
            "validate-address",
            "validate-operation",
            "whoami",
            "write-attribute"
        ]
    }
    list-proxies,read-proxies-info,add-proxy, enable-context is not available in domain mode ?

    [domain@server-name:9999 /] :read-operation-names

    Unknown macro: {     "outcome" => "success",     "result" => [         "add-namespace",         "add-schema-location",         "delete-snapshot",         "full-replace-deployment",         "list-snapshots",         "read-attribute",         "read-children-names",         "read-children-resources",         "read-children-types",         "read-config-as-xml",         "read-operation-description",         "read-operation-names",         "read-resource",         "read-resource-description",         "remove-namespace",         "remove-schema-location",         "resolve-expression-on-domain",         "restart-servers",         "start-servers",         "stop-servers",         "take-snapshot",         "undefine-attribute",         "upload-deployment-bytes",         "upload-deployment-stream",         "upload-deployment-url",         "validate-address",         "validate-operation",         "whoami",         "write-attribute"     ] }