Liberty profile xsWebGrid feature properties

Specify the webGrid feature to automatically start a container that hosts clients for HTTP session replication.

You can set the following attributes on the xsWebGrid element of the server.xml file:

Parameters

objectGridName

A string value that defines the name of the ObjectGrid instance used for a particular web application. The default name is session.

This property must reflect the objectGridName in both the ObjectGrid XML and deployment XML files used to start the eXtreme Scale container servers.

objectGridType

A string value that is set to REMOTE, which specifies that session data is stored outside of the server on which the web application is running.

ojectGridTxTimeout
Specifies the amount of time in seconds that a transaction is allowed for completion. If a transaction does not complete in this amount of time, the transaction is marked for rollback and a TransactionTimeoutException exception results. Default value: 30 (in seconds)
mapSetNumberOfPartitions
Specifies the number of partitions for the mapSet element. Default value: 47
mapSetMinSyncReplicas
Specifies the minimum number of synchronous replicas for each partition in the mapSet. Shards are not placed until the domain can support the minimum number of synchronous replicas. To support the minSyncReplicas value, you need one more container server than the minSyncReplicas value. If the number of synchronous replicas falls below the minSyncReplicas value, write transactions are no longer allowed for that partition. Default value: 0
mapSetMaxSyncReplicas
Specifies the maximum number of synchronous replicas for each partition in the mapSet. No other synchronous replicas are placed for a partition after a domain reaches this number of synchronous replicas for that specific partition. Adding container servers that can support this ObjectGrid can result in an increased number of synchronous replicas if your maxSyncReplicas value has not already been met. Default value: 0
mapSetMaxAsyncReplicas
Specifies the maximum number of asynchronous replicas for each partition in the mapSet. No other asynchronous replicas are placed for a partition after a domain reaches this number of asynchronous replicas for that specific partition. Adding container servers that can support this ObjectGrid can result in an increased number of asynchronous replicas if your maxAsyncReplicas value has not already been met. Default value: 1
mapSetDevelopmentMode
With this attribute, you can influence where a shard is placed in relation to its peer shards. When the developmentMode attribute is set to false, no two shards from the same partition are placed on the same computer. When the developmentMode attribute is set to true, shards from the same partition can be placed on the same machine. In either case, no two shards from the same partition are ever placed in the same container server. Default value: false