[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]
Client Disconnects from Terracotta Server  XML
Forum Index -> Terracotta Platform
Author Message
amrdilip

neo

Joined: 08/30/2013 04:40:15
Messages: 1
Offline

Hi

I am new to Ehcache , In past few days , we are facing serious disconnections from the terracotta server . we tried out few options , mentioned below

In Xml configuration for ehcache , we added nonstop cache and rejoin attribute in the terracottaconfig element but not successful . Attaching the xml for your reference

<ehcache name="$$$_$$$_MANAGER" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="true"
monitoring="autodetect" dynamicConfig="true">
<cache name="$$$" maxElementsInMemory="10000"
memoryStoreEvictionPolicy="LFU" eternal="false" timeToIdleSeconds="14400000"
timeToLiveSeconds="14400000" maxElementsOnDisk="10000000">
<terracotta clustered="true" consistency="eventual" synchronousWrites="false">
<nonstop immediateTimeout="false" timeoutMillis="30000">
<timeoutBehavior type="noop" />
</nonstop>
</terracotta>
</cache>

<terracottaConfig url="xxx.xxx.xxx.xxx:9510" rejoin="true"/>
</ehcache>

Waiting for your reply
pomelko

journeyman

Joined: 03/15/2012 12:17:17
Messages: 13
Offline

Hi,
I guess that you have already read this

http://terracotta.org/documentation/4.0/terracotta-server-array/high-availability#77332

As you can see, you have to set two terracotta properties:

l2.l1reconnect.enabled
l2.l1reconnect.timeout.millis

to enable reconnection. If it's done, make sure that timeout you set is long enought. Because if is to short, client can't rejoin the cluster and have to be restarted.

I had this problem couple days ago. I changed timeout from 5000 to 30000.

I hope that it helps.
 
Forum Index -> Terracotta Platform
Go to:   
Powered by JForum 2.1.7 © JForum Team