Memory-to-memory replication for the peer-to-peer mode (default)


 

+

Search Tips   |   Advanced Search

Use the peer-to-peer configuration to attain session affinity using a combination of servers that are configured as both client and server. The peer-to-peer configuration contains a single replica by default.

To configure the session management facility for memory-to-memory session replication for peer-to-peer functions, both client and server function, or both mode, with a single replica...

  1. Create an application cluster. This cluster is used to deploy the application.

    1. Go to the Server Cluster page

      Servers | Server Types | Clusters | New | cluster_name

    2. Select the check box...

      Create a replication domain for this cluster

    3. Click Next.

    4. Define each cluster member server. Type a cluster member name.

    5. Click Apply.

      Repeat steps for each new server in cluster.

    6. Click Next and review the summary of changes.

    7. Click Finish to complete the configuration.

    we have now created a cluster that contains the deployed application and the replication domain.

  2. Enable memory-to-memory session replication for each server.

    1. Go to the appropriate level of session management for the Web container level. Go to...

      Servers | Server Types | WebSphere application servers | server_name | Web Container Settings | Web container | Session management | Additional Properties | Distributed environment settings | Memory-to-memory replication

    2. Select the Replication domain to use for the replication of sessions.

    3. Select the both client and server 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".

    4. Click OK on the Memory-to-memory replication page.

    5. To change the tuning parameters, click Custom tuning parameters and select a setting or customize one. Click OK. Click Save.

      Using the default tuning parameter custom settings, which specifies time based write interval of 10 seconds, may result in data loss when an appserver in the cluster fails. However, this is just a small opportunity for lost data when compared to the significant improvement in performance.

    6. Click OK the Distributed environment settings page.

    7. Click OK the Session management page.

    8. Repeat a through i for each server.

 

Related concepts

Memory-to-memory replication settings
Memory-to-memory replication
Memory-to-memory topology: Peer-to-peer function
Memory-to-memory topology: Client/server function

 

Related tasks


Set memory-to-memory replication for the client/server mode