You can use the client/server configuration to attain session affinity
using a combination of servers that are configured as client only and server
only.
About this task
To configure the session management facility for memory-to-memory
replication using the clients/server mode, complete the following steps:
Procedure
- Create an application cluster. This cluster is used
to deploy the application.
- Go to the Server Cluster page. Click Servers > Clusters.
- Click New.
- Type a cluster name for this application cluster.
- Click Next.
- Define each cluster member server. Type a cluster member name.
- Click Apply. Complete steps e and f for
each server created in this cluster.
- Click Next and review the summary of changes.
- Click Finish to complete the configuration.
Do not create a replication domain for the application cluster.
You have now created a cluster that contains the deployed application.
Create a cluster of session manager replication
servers that you want to use as the backup cluster.
- Go to the Server Cluster page. Click .
- Click New.
- Type a cluster name for the cluster of session manager replication
servers.
- Define a replication domain. Select the Create a replication
domain for this cluster check box.
- Click Next.
- Define each cluster member server. Type a cluster member name.
- Click Apply. Complete steps f through g for
each server created in this cluster.
- Click Next and review the summary of changes.
- Click Finish to complete the configuration.
This step creates a cluster of backup session manager replication
servers and associates a replication domain with that cluster.
- Enable memory-to-memory session replication for each cluster member
server in the application cluster.
- Go to the appropriate level of session management for the Web
container level. Click
- Click Distributed environment settings under Additional
Properties.
- Click Memory-to-memory replication.
- Select the Replication domain that you want to use for
the replication of sessions.
- Select the Client only Replication mode. You
must configure all session managers connected to a replication domain to have
the same topology. If one session manager instance in a domain is configured
to use the client/server topology, then the rest of the session manager instances
in that domain must be a combination of servers configured as Client only
and Server only. If one session manager instance is configured to use the
peer-to-peer topology, then all session manager instances must be configured
as Both client and server. Alternatively, if one DRS Instance is configured
in the client only mode then all DRS Instances in the domain must be configured
in either the client only or the server only modes.
- Click OK on the Memory-to-memory replication page.
- Optional: If you want to change the tuning parameters,
click Custom tuning parameters. Click OK. Click Save.
Note: Using the default tuning parameter custom settings, which specifies
time based write interval of 10 seconds, may result in data loss when an
application server in your cluster fails. However, this is just a small opportunity
for lost data when compared to the significant improvement in performance.
- Click OK the Distributed environment settings page.
- Click OK the Session management page.
- Repeat a through i for each server.
- Enable memory-to-memory session replication for each cluster member
server in the replication cluster.
- Go to the appropriate level of session management for the Web
container level. Click Servers > Application Servers > server_name > Container
Settings > Web Container Settings > Session management
- Click Distributed Environment Settings under Additional
Properties.
- Click Memory-to-memory replication.
- Select the Replication domain that you want to use for
the replication of sessions.
- Select the Server only Replication mode. You
must configure all session managers connected to a replication domain to have
the same topology. If one session manager instance in a domain is configured
to use the client/server topology, then the rest of the session manager instances
in that domain must be a combination of servers configured as Client only
and Server only. If one session manager instance is configured to use the
peer-to-peer topology, then all session manager instances must be configured
as Both client and server. Alternatively, if one DRS Instance is configured
in the client only mode then all DRS Instances in the domain must be configured
in either the client only or the server only modes.
- Click OK on the Memory-to-memory replication page.
- Optional: If you want to change the tuning parameters,
click Custom tuning parameters. Click OK. Click Save.
Note: Using the default tuning parameter custom settings, which specifies
time based write interval of 10 seconds, may result in data loss when an
application server in your cluster fails. However, this is just a small opportunity
for lost data when compared to the significant improvement in performance.
- Click OK the Distributed environment settings page.
- Click OK the Session management page.
- Repeat a through i for each server.