Chapter 25 Managing Persistent Component State
You can use in-memory storage to support failover for stateful components by choosing CtsComponents/HeapStorage as the storage component. This feature allows component state to be maintained on a pair of servers, without incurring the overhead of using a remote database to store component state.
The in-memory failover implementation is based on mirror pairs . A mirror pair consists of two servers that are members of a cluster. The servers use the EAServer message service to synchronize component session state held in memory. If one server in a mirror pair goes offline, the other remains to serve client sessions for the mirrored components. You can configure multiple mirror pairs within a cluster, but each server can be a member of only one mirror pair.
In-memory failover requires the following:
The chapter, "EAServer Clusters and Synchronization," in the EAServer System Administration Guide describes how to configure a cluster. To support in-memory failover, you must define mirror pairs within the cluster.
A mirror pair consists of two servers within the cluster that use the EAServer message service to replicate state information for session components hosted on those servers. Servers in a mirror pair should have the same set of stateful components installed. One server cannot be a member of more than one mirror pair.
Configuring mirror pairs
iiop://mypc:9000,iiop://yourpc:9100
Configuring server session cache size
com.sybase.jaguar.server.ps.cache.size
.
This property specifies the maximum size of the memory cache used
to hold session data for components running on the server. The value
has the same syntax as the Cache Size property described in "Mirror Cache tab component
properties".
On the Mirror Cache tab, configure the following:
Cache size value syntax | To indicate |
---|---|
nMor nm |
n megabytes, for
example:
512M |
nKor nk |
n kilobytes, for
example:
1024K |
n |
n bytes, for example:
536870912 |
com.sybase.jaguar.server.ps.cache.size
server
property). If the cache is not large enough, clients may experience
cache overflow errors. When this happens, the least recently accessed
instance is removed from the cache. If a client attempts to invoke
an instance, the client receives a CORBA::OBJECT_NOT_EXIST exception.
Copyright © 2002 Sybase, Inc. All rights reserved. |
![]() |