[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
L1 - L2 cache behavior discrepancy  XML
Forum Index -> Terracotta Platform
Author Message
losthope

neo

Joined: 10/17/2013 02:47:44
Messages: 2
Offline

I have a question on the behavior of terracotta distributed cache. The explanation is below. Is this behavior correct ?

Scenario 1 – L1 is connected with L2. This setup works fine. When I do a REST PUT the value gets into the L2 cache and I am able to retrieve the value using a REST GET.

REST Client -> L1(Apache Tomcat 7.0. REST Server) ->(Active connection) L2(TSA)


Scenario 2 – L1 is disconnected with L2. I am shutting down Terracotta server array server to simulate this. When I try to do a GET REST call for the previous value I inserted when L2 was up and running I don’t get the value from the L1 cache. Instead it takes around a minute and then responds with 204 No Content.

REST Client -> L1(Apache Tomcat 7.0. REST Server) <>(Not connected) L2(TSA)

klalithr

consul

Joined: 01/23/2011 10:58:07
Messages: 489
Offline

Killing L2 is not simulating a L1 disconnect. The way I simulate an L1 disconnect is to use the kill SIGSTOP command on the process ID.
The correct behavior of Terracotta will be determined by the heartbeating used (usually in such cases, it will seems like a GC pause).

The way customer use this in production is deploy TC in active-passive scenario. That way you get a NSPOF.

Karthik Lalithraj (Terracotta)
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team