<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
High availability question on Jboss cache
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/gaprashanth">Prashanth rao</a> in <i>JBoss Cache</i> - <a href="http://community.jboss.org/message/583573#583573">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>We are having an all active node cluster where each node can receive requests for reading data and is expected to return identical data all the time. Now there is a requirement to introduce a caching framework which should fit into our architecture without changing the current design.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>While we investigate Jboss cache arhictecture, we understand that it provides in-memory cache but also persistense based on some configurations with eviction and class loading.  This suits our need of using eviction for the efficient use of memory and persisting only on memory overload.   But we are having a requirement on deleting the cached data (permanetly) on its expiry. We may have to impelement a supplementary feature to implement this and this is not the issue.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>We are evaluating the different cache loading techniques like shared class loaders, class loaders with each node having its own persistent store etc. But as made clear earlier, we also need to combine eviction along with class loading as we need to make best use of memory.  Our concern is selecting the best class loading technique which suits our architecture.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>A) If shared class loading is used,</p><p>if the object is evicted at different intervals from the different nodes of the cluster, whether the object passivated from node will be overwriiten from the other node ? But if this ok as the objects evicted/passivated are all same across the nodes due to replication ( used with synchronous option)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>If one node is restarted, should it load the state from other node because it cant just rely on the persistent store as the other node can be ahead of the persistent store. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>B) If we use different persistent stores for each node,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>If the objects are evicted at different intervals from the different nodes of the cluster,   we can assume that the objects will go into separate persistence stores. But again if a node is restarted, it has to load the entire state from the memory of other node and not its persistence store as the memory always has the actual data if used with eviction ?</p><p>If the persistent store one node is down, what happen to the requests on that node. Whether the object is automatically loaded from other nodes and returned back as well as updating the local cache?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Also one more concern is on the concurrent writes to the same object across the cluster. We understand that Jboss cache supports 2 phase commit, where the object is locked for writes on other nodes while it is being done on some node. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Please provide us some inputs at the earliest as it is URGENT.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/583573#583573">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Cache at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>