Session persistence and session replication

The default values below may be overridden in your project jython file:

        #               - Web Container properties
        # Following may be one of: DATABASE, DATA_REPLICATION, NONE
        # Set to DATA_REPLICATION to enable memory-to-memory replication
        webContainerSessionPersistenceMode      = "NONE"
        # Following may be one of: BOTH, SERVER, CLIENT
        webContainerDataReplicationMode = "BOTH"

You will need to set up data replication in order to use the above settings. Override the default settings below:

        # Memory-to-Memory session replication
        
        #               - Replication Domain
        installReplicationDomain        = "false"
        replNumberOfReplicas            = 1
        replRequestTimeout              = 5
        replUseSSL                      = "false"

If you want to configure a client/server mode replication you will need to set the Replication Domain to point to for the client cluster:

        # If webContainerDataReplicationMode="CLIENT" and this value is set, 
        # it will be taken instead of clusterName

        clientModeReplicationDomainName = "SessionCluster"

Example 1: Use of Data replication:

        # Memory-to-Memory session replication 
        
        webContainerSessionPersistenceMode = "DATA_REPLICATION"
        webContainerDataReplicationMode    = "BOTH"
        installReplicationDomain           = "true"
        replNumberOfReplicas               = 1
        replRequestTimeout                 = 5
        replUseSSL                         = "false"

Example 2: Node level replication domain

        # Memory-to-Memory session replication 
        
        webContainerSessionPersistenceMode  = "DATA_REPLICATION"
        webContainerDataReplicationMode     = "BOTH"
        installReplicationDomain            = "true"
        nodeLevelReplicationDomain          = "true"
        replNumberOfReplicas                = 1
        replRequestTimeout                  = 5
        replUseSSL                          = "false"

Example 3: memory-to-memory replication for the client/server mode

        # For the cluster of session manager replication servers

        clusterName = "SessionCluster"
        ...
        webContainerSessionPersistenceMode  = "DATA_REPLICATION"
        webContainerDataReplicationMode     = "SERVER"
        installReplicationDomain            = "true"
        replNumberOfReplicas                = 1
        replRequestTimeout                  = 5
        replUseSSL                          = "false"
        
        ####################################################
        
        # For the application cluster (different deployment)
        
        clusterName = "ClientCluster"
        ...
        webContainerSessionPersistenceMode  = "DATA_REPLICATION"
        webContainerDataReplicationMode     = "CLIENT"
        installReplicationDomain            = "true"
        replNumberOfReplicas                = 1
        replRequestTimeout                  = 5
        replUseSSL                          = "false"
        clientModeReplicationDomainName     = "SessionCluster"