Defines a cluster.
Some topics in the documentation pertain to features that are available only in domains that are configured to support clusters. Examples of domains that support clusters are domains that are created with the cluster profile. For information about profiles, see Usage Profiles in Sun GlassFish Communications Server 2.0 Administration Guide.
The following table describes subelements for the cluster element.
Table 1–23 cluster Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
References a server instance that belongs to the cluster. |
|
zero or more |
References a resource deployed to the cluster. |
|
zero or more |
References an application or module deployed to the cluster. |
|
zero or more |
Specifies a system property. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the cluster element.
Table 1–24 cluster Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the cluster. |
|
default config element’s name attribute value, server-config |
References the configuration used by the cluster. |
|
none; value automatically generated |
Specifies the communication port the Group Management Service uses to listen for group events. Must be a valid port number. |
|
none; value automatically generated |
Specifies the address the Group Management Service uses to listen for group events. Must be a multicast address. |
|
false (developer profile) true (cluster profile) |
(optional) If true, the Group Management Service is started as a lifecycle module in each server instance in the cluster and in the Domain Administration Server. The Domain Administration Server participates in each cluster that has this attribute set to true. |
The following table describes properties for the cluster element.
Table 1–25 cluster Properties
Property |
Default |
Description |
---|---|---|
none |
Specifies which address the group management service uses on a multi-home machine. If a machine has only one network interface, there is no need to set this property. If this property is not set or is set to an invalid value on a multi-home machine, Communications Server uses all available addresses. The primary address is nondeterministic, because the ordering of addresses is specific to the operating system, not the Java network API used to access the network interfaces. You can create system-property elements to set this value differently for each server instance in the cluster. For example: <domain> ... <clusters> <cluster name="cluster1" ... > ... <property name="gms-bind-interface-address" value="${GMS_CLUSTER1_BIND_IF_ADDR}"/> </cluster> ... </clusters> ... <servers> <server name="server1" ... > ... <system-property name="GMS_CLUSTER1_BIND_IF_ADDR" value="123.456.78.910"/> </server> ... </servers> ... </domain> |
References a cluster.
Some topics in the documentation pertain to features that are available only in domains that are configured to support clusters. Examples of domains that support clusters are domains that are created with the cluster profile. For information about profiles, see Usage Profiles in Sun GlassFish Communications Server 2.0 Administration Guide.
The following table describes subelements for the cluster-ref element.
Table 1–26 cluster-ref Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Defines a health checker for the referenced cluster. |
The following table describes attributes for the cluster-ref element.
Table 1–27 cluster-ref Attributes
Attribute |
Default |
Description |
---|---|---|
none |
References the name attribute of a cluster element. |
|
round-robin |
(optional) Specifies the load balancing policy. Allowed values are:
|
|
none |
(optional) Specifies the absolute path to the shared library that implements the user-defined policy. The shared library must exist and be readable on the machine where the load balancer is running. Required only if lb-policy is set to user-defined. |
Contains clusters.
The following table describes subelements for the clusters element.
Table 1–28 clusters Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Defines a cluster. |
Defines a configuration, which is a collection of settings that controls how a server instance functions.
The following table describes subelements for the config element.
Table 1–29 config Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Configures the SIP service. |
|
only one |
Configures the HTTP service. |
|
only one |
Configures the overload protection service for HTTP and SIP requests. |
|
only one |
Configures the IIOP service. |
|
only one |
Determines whether the server to which the configuration applies is an administration server. |
|
zero or one |
Configures the connector service. |
|
only one |
Configures the web container. |
|
only one |
Configures the Enterprise JavaBeansTM (EJBTM) container. |
|
only one |
Configures the message-driven bean (MDB) container. |
|
zero or one |
Configures the SIP container. |
|
zero or one |
Configures the Java Message Service (JMS) provider. |
|
only one |
Configures the system logging service. |
|
only one |
Configures the Java EE security service. |
|
only one |
Configures the transaction service. |
|
only one |
Configures the monitoring service. |
|
zero or one |
Configures the diagnostic service. |
|
only one |
Configures the Java Virtual Machine (JVMTM). |
|
zero or one |
Configures the availability service. |
|
only one |
Configures thread pools. |
|
zero or one |
Configures the alert service. |
|
zero or one |
Configures the group management service. |
|
zero or one |
Configures self-management rules. |
|
zero or more |
Specifies a system property. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the config element.
Table 1–30 config Attributes
Attribute |
Default |
Description |
---|---|---|
server-config (for default instance) |
Specifies the name of the configuration. |
|
true |
(optional) If true, any changes to the system (for example, applications deployed, resources created) are automatically applied to the affected servers without a restart being required. If false, such changes are only picked up by the affected servers when each server restarts. |
Contains configurations.
The following table describes subelements for the configs element.
Table 1–31 configs Subelements
Element |
Required |
Description |
---|---|---|
only one (developer profile) one or more (cluster profile) |
Defines a configuration. |
Defines a pool of client HTTP or SIP connections used by the http-listener or sip-listener subelements of the parent http-service or sip-service element.
none
The following table describes attributes for the connection-pool element.
Table 1–32 connection-pool Attributes
Attribute |
Default |
Description |
---|---|---|
-1 |
(optional) Specifies the maximum number of messages that can be queued until threads are available to process them for http-listener or sip-listener elements. A value of -1 specifies no limit. |
|
4096 |
(optional) Specifies the maximum number of pending connections on an http-listener or sip-listener. Not implemented if the parent element is sip-service. |
|
4096 (http-service) socket channel receive buffer size (sip-service) |
(optional) Specifies the size of the receive buffer for all http-listener or sip-listener elements. A value of -1 specifies no limit. |
|
8192 |
(optional) Specifies the size of the send buffer for all http-listener or sip-listener elements. |
Defines a connector connection pool.
The following table describes subelements for the connector-connection-pool element.
Table 1–33 connector-connection-pool Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Maps the principal received during servlet or EJB authentication to the credentials accepted by the EIS. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the connector-connection-pool element. Changing the following attributes requires a server restart: resource-adapter-name, connection-definition-name, transaction-support, associate-with-thread, lazy-connection-association, and lazy-connection-enlistment.
Table 1–34 connector-connection-pool Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the connection pool. A connector-resource element’s pool-name attribute refers to this name. |
|
none |
Specifies the name attribute of the deployed connector-module. If no name is specified during deployment, the name of the .rar file is used. If the resource adapter is embedded in an application, then it is app_name#rar_name. |
|
none |
Specifies a unique name, identifying a resource adapter’s connection-definition element in the ra.xml file. This is usually the connectionfactory-interface of the connection-definition element. |
|
8 |
(optional) Specifies the initial and minimum number of connections maintained in the pool. |
|
32 |
(optional) Specifies the maximum number of connections that can be created to satisfy client requests. |
|
60000 |
(optional) Specifies the amount of time, in milliseconds, that the caller is willing to wait for a connection. If 0, the caller is blocked indefinitely until a resource is available or an error occurs. |
|
2 |
(optional) Specifies the number of idle connections to be destroyed if the existing number of connections is above the steady-pool-size (subject to the max-pool-size limit). This is enforced periodically at the idle-timeout-in-seconds interval. An idle connection is one that has not been used for a period of idle-timeout-in-seconds. When the pool size reaches steady-pool-size, connection removal stops. |
|
300 |
(optional) Specifies the maximum time that a connection can remain idle in the pool. After this amount of time, the pool can close this connection. |
|
false |
(optional) If true, closes all connections in the pool if a single validation check fails. |
|
none |
(optional) Specifies the transaction support for this connection pool. Overrides the transaction support defined in the resource adapter in a downward compatible way: supports a transaction level lower than or equal to the resource adapter’s, but not higher. Allowed values in descending order are:
|
|
false |
(optional) Specifies whether connections have to be validated before being given to the application. If a resource’s validation fails, it is destroyed, and a new resource is created and returned. |
|
0 |
Detects potential connection leaks by the application. A connection that is not returned back to the pool by the application within the specified period is assumed to be potentially leaking, and a stack trace of the caller is logged. A zero value disables leak detection. A nonzero value enables leak tracing. |
|
false |
If true, the pool will reclaim a connection after connection-leak-timeout-in-seconds occurs. |
|
0 |
Specifies the number of attempts to create a new connection. |
|
10 |
Specifies the time interval between attempts to create a connection when connection-creation-retry-attempts is greater than 0. |
|
60 |
Specifies the time interval within which a connection is validated at most once. Minimizes the number of validation calls. |
|
false |
If true, a connection is not enlisted in a transaction until it is used. If false, any connection object available to a transaction is enlisted in the transaction. |
|
false |
If true, a physical connection is not associated with a logical connection until it is used. If false, a physical connection is associated with a logical connection even before it is used. |
|
false |
If true, allows a connection to be saved as a ThreadLocal in the calling thread. This connection gets reclaimed only when the calling thread dies or when the calling thread is not in use and the pool has run out of connections. |
|
true |
If true, enables connection matching. You can set to false if connections are homogeneous. |
|
0 |
Specifies the number of times a connections is reused by the pool, after which it is closed. A zero value disables this feature. |
Most properties of the connector-connection-pool element are the names of setter methods of the managedconnectionfactory-class element in the ra.xml file. Properties of the connector-connection-pool element override the ManagedConnectionFactory JavaBean configuration settings.
All but the last four properties in the following table are connector-connection-pool properties of jmsra, the resource adapter used to communicate with the Sun GlassFish Message Queue software. For a complete list of the available properties (called administered object attributes in the Message Queue software), see the Sun GlassFish Message Queue 4.4 Administration Guide.
Changes to connector-connection-pool properties require a server restart.
Table 1–35 connector-connection-pool Properties
Property |
Default |
Description |
---|---|---|
none |
Specifies a list of host/port combinations of the Message Queue software. For JMS resources of the Type javax.jms.TopicConnectionFactory or javax.jms.QueueConnectionFactory. |
|
none |
Specifies the JMS Client Identifier to be associated with a Connection created using the createTopicConnection method of the TopicConnectionFactory class. For JMS resources of the Type javax.jms.TopicConnectionFactory . Durable subscription names are unique and only valid within the scope of a client identifier. To create or reactivate a durable subscriber, the connection must have a valid client identifier. The JMS specification ensures that client identifiers are unique and that a given client identifier is allowed to be used by only one active connection at a time. |
|
guest |
Specifies the user name for connecting to the Message Queue software. For JMS resources of the Type javax.jms.TopicConnectionFactory or javax.jms.QueueConnectionFactory. |
|
guest |
Specifies the password for connecting to the Message Queue software. For JMS resources of the Type javax.jms.TopicConnectionFactory or javax.jms.QueueConnectionFactory. |
|
ReconnectAttempts |
6 |
Specifies the number of attempts to connect (or reconnect) for each address in the imqAddressList before the client runtime moves on to try the next address in the list. A value of -1 indicates that the number of reconnect attempts is unlimited (the client runtime attempts to connect to the first address until it succeeds). |
ReconnectInterval |
30000 |
Specifies the interval between reconnect attempts in milliseconds. This applies to attempts on each address in the imqAddressList and on successive addresses in the list. If too short, this time interval does not give a broker time to recover. If too long, the reconnect might represent an unacceptable delay. |
ReconnectEnabled |
false |
If true, specifies that the client runtime attempts to reconnect to a message server (or the list of addresses in imqAddressList) when a connection is lost. |
AddressListBehavior |
priority |
Specifies whether connection attempts are in the order of addresses in the imqAddressList attribute (priority) or in a random order (random). If many clients are attempting a connection using the same connection factory, use a random order to prevent them from all being connected to the same address. |
AddressListIterations |
-1 |
Specifies the number of times the client runtime iterates through the imqAddressList in an effort to establish (or reestablish) a connection. A value of -1 indicates that the number of attempts is unlimited. |
false |
Deprecated. Use the equivalent attribute. |
|
false |
Deprecated. Use the equivalent attribute. |
|
false |
Deprecated. Use the equivalent attribute. |
|
true |
Deprecated. Use the equivalent attribute. |
All JMS administered object resource properties that worked with version 7 of the Communications Server are supported for backward compatibility.
Specifies a deployed connector module.
The following table describes subelements for the connector-module element.
Table 1–36 connector-module Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the connector-module element.
Table 1–37 connector-module Attributes
Defines the connection factory object of a specific connection definition in a connector (resource adapter).
The following table describes subelements for the connector-resource element.
Table 1–38 connector-resource Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the connector-resource element.
Table 1–39 connector-resource Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the JNDI name for the resource. |
|
none |
Specifies the name of the associated connector connection pool, defined in a connector-connection-pool element. |
|
user |
(optional) Defines the type of the resource. Allowed values are:
|
|
enabled |
true |
(optional) Determines whether this resource is enabled at runtime. |
Configures the connector service.
none
The following table describes attributes for the connector-service element.
Table 1–40 connector-service Attributes
Attribute |
Default |
Description |
---|---|---|
30 |
(optional) Specifies the maximum time allowed during application server shutdown for the ResourceAdapter.stop() method of a connector module’s instance to complete. Resource adapters that take longer to shut down are ignored, and Communications Server shutdown continues. |
References a target cluster to which requests are forwarded by a converged load balancer.
Some topics in the documentation pertain to features that are available only in domains that are configured to support clusters. Examples of domains that support clusters are domains that are created with the cluster profile. For information about profiles, see Usage Profiles in Sun GlassFish Communications Server 2.0 Administration Guide.
none
The following table describes attributes for the converged-lb-cluster-ref element.
Table 1–41 converged-lb-cluster-ref Attributes
Attribute |
Default |
Description |
---|---|---|
none |
References the name attribute of a cluster element. |
|
true |
(optional) If true, specifies that a configured cluster load balances incoming requests to itself. If true, the parent converged-lb-config element must have exactly one converged-lb-cluster-ref subelement. In this case, the load balancer is an intrinsic component of the participating server instances in the cluster. For production environments, only the true setting is supported. |
Defines a converged load balancer configuration, which can be referenced by a converged-load-balancer.
Some topics in the documentation pertain to features that are available only in domains that are configured to support clusters. Examples of domains that support clusters are domains that are created with the cluster profile. For information about profiles, see Usage Profiles in Sun GlassFish Communications Server 2.0 Administration Guide.
The following table describes subelements for the converged-lb-config element.
Table 1–42 converged-lb-config Subelements
Element |
Required |
Description |
---|---|---|
only one |
Specifies the load balancing policy used by the converged load balancer. |
|
one or more; only one if this subelement's selfloadbalance attribute is true; zero if a server-ref is defined |
References a cluster. This element contains some attributes related to load balancing. |
|
one or more; zero if a converged-lb-cluster-ref is defined |
References a stand-alone server instance, which does not belong to a cluster. The referenced server element contains some attributes related to load balancing. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the converged-lb-config element.
Table 1–43 converged-lb-config Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the name of the converged load balancer configuration. |
The following table describes properties for the converged-lb-config element.
Table 1–44 converged-lb-config Properties
Property |
Default |
Description |
---|---|---|
1 |
Specifies the factor by which a single recovered server instance is incrementally included in load distribution. Allowed values are decimal numbers between 0 and 1. The load factor starts at zero and increases by load-increase-factor every load-factor-increase-period-in-seconds until it reaches 1. For example, if load-increase-factor is set to 0.1 and load-factor-increase-period-in-seconds is set to 60, it takes ten minutes for a recovered instance to be fully included in load distribution. The load-increase-factor and load-factor-increase-period-in-seconds properties are applicable to all SIP requests and to HTTP requests for converged applications only if data-centric rules are specified. The load-increase-factor and load-factor-increase-period-in-seconds properties have no effect on the round-robin algorithm, which is applicable to HTTP requests for pure web applications. |
|
0 |
Specifies the number of seconds between load factor increases for a recovered server instance. If load-factor-increase-period-in-seconds is set to zero, load-increase-factor has no effect. The load factor for the recovered instance becomes 1 immediately. If load-factor-increase-period-in-seconds is set and load-increase-factor is not set, the recovered instance gets no load for load-factor-increase-period-in-seconds. After load-factor-increase-period-in-seconds lapses, the load factor for the recovered instance becomes 1. |
|
false |
If true, specifies that UDP responses are sent to the client from the back end instead of the front end, saving an extra network hop. |
Contains converged load balancer configurations.
The following table describes subelements for the converged-lb-configs element.
Table 1–45 converged-lb-configs Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Defines a converged load balancer configuration. |
Specifies the load balancing policy used by the converged load balancer.
Some topics in the documentation pertain to features that are available only in domains that are configured to support clusters. Examples of domains that support clusters are domains that are created with the cluster profile. For information about profiles, see Usage Profiles in Sun GlassFish Communications Server 2.0 Administration Guide.
The following table describes subelements for the converged-lb-policy element.
Table 1–46 converged-lb-policy Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the converged-lb-policy element.
Table 1–47 converged-lb-policy Attributes
Attribute |
Default |
Description |
---|---|---|
round-robin |
(optional) Specifies the load balancing policy for pure HTTP requests. This attribute applies to the HTTP part of converged HTTP/SIP requests if dcr-file is not specified. The only allowed value is round-robin, which means that the load balancer cycles through the cluster's server instances in a specified order. |
|
from-tag,call-id |
(optional) Specifies the load balancing policy for SIP requests if dcr-file is not specified. Specifies the parameters on which a consistent hashing policy is applied to obtain the hash key. The default is the only allowed value. |
|
none |
(optional) Specifies the data-centric-rules.xml file path name, which provides the rules for applying consistent hashing on SIP and converged HTTP/SIP requests. By default this file is not specified. If specified, this file takes precedence over the http and sip attributes. This can be an absolute or relative path. A relative path is relative to domain-dir/cluster/config. If a request doesn't match any DCR file rules, a hash key is generated using from-tag,call-id. For an HTTP request, this is the remote host port and address. |
Defines and configures a converged load balancer. For more information about load balancing in the Communications Server, see the Sun GlassFish Communications Server 2.0 High Availability Administration Guide.
Some topics in the documentation pertain to features that are available only in domains that are configured to support clusters. Examples of domains that support clusters are domains that are created with the cluster profile. For information about profiles, see Usage Profiles in Sun GlassFish Communications Server 2.0 Administration Guide.
The following table describes subelements for the converged-load-balancer element.
Table 1–48 converged-load-balancer Subelements
Element |
Required |
Description |
---|---|---|
only one |
Specifies the proxy configuration for the converged load balancer. |
The following table describes attributes for the converged-load-balancer element.
Table 1–49 converged-load-balancer Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies a unique name for the load balancer. |
|
domain-dir/cluster/config/converged-loadbalancer.xml |
Specifies the load balancer's configuration file, converged-loadbalancer.xml. This can be an absolute or relative path. A relative path is relative to domain-dir/cluster/config. |
|
false |
(optional) If true, configuration file changes are propagated to load balancer instances immediately. |
|
none |
Specifies the name of the converged-lb-config used by the load balancer. |
Defines a custom resource, which specifies a custom server-wide resource object factory. Such object factories implement the javax.naming.spi.ObjectFactory interface.
The following table describes subelements for the custom-resource element.
Table 1–50 custom-resource Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Contains a text description of this element. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the custom-resource element.
Table 1–51 custom-resource Attributes