Re: Distributed Caching with TerraCotta

2013-09-26 Thread Rick Root

I am still struggling with this issue.  No help from anywhere :(


On Sun, Sep 15, 2013 at 12:32 AM, Rick Root rick.r...@gmail.com wrote:

 Hi,

 A little over a year ago, I went through a process setting up terracotta
 caching server for an application that is using cf clustering.. three
 instances of coldfusion powering the application, and I wanted to be able
 to efficiently cache data between instances.
 This worked really well, but now I'm more or less disassocaited with the
 company and they've asked me to set up TerraCotta again on their new
 server, which is running Coldfusion 10.

 Things are different, of course, but much the same

 Here's what I've done.  I installed the latest version of TerraCotta open
 source (3.7.5) which comes with a newer version of ehcache.

 I copied all these jar files into each instances libf older and renamed
 any older versions with a .old extension

 ehcache-core-2.6.6.jar
 ehcache-terracotta-2.6.6.jar
 slf4j-api-1.6.1.jar
 slf4j-jdk14-1.6.1.jar
 slf4j-log4j12-1.6.1.jar
 terracotta-toolkit-1.6-runtime-5.5.0.jar

 Then modified the ehcache.xml as follows:

 I added this line above my defaultcache:

 terracottaConfig url=http://localhost:9510; rejoin=true /

 I added this section BELOW my defaultCache, which essentially adds a new
 cache region named distributedCache

 cache
 name=distributedCache
  maxElementsInMemory=1
 eternal=false
 timeToIdleSeconds=86400
  timeToLiveSeconds=86400
 overflowToDisk=false
 diskSpoolBufferSizeMB=30
  maxElementsOnDisk=1000
 diskPersistent=false
 diskExpiryThreadIntervalSeconds=3600
  memoryStoreEvictionPolicy=LRU
 clearOnFlush=true
 terracotta clustered=true 
  nonstop immediateTimeout=true
 timeoutBehavior type=noop /
  /nonstop
 /terracotta
 /cache

 Now that I've done all this, I did some testing with a cf page that looks
 like this... if the request is made on instance 2, put something in the
 cache, then retrieve it and display it.  If it's on another instance, just
 retrieve the value and display it.

 cache
 name=distributedCache
 maxElementsInMemory=1
  eternal=false
 timeToIdleSeconds=86400
 timeToLiveSeconds=86400
  overflowToDisk=false
 diskSpoolBufferSizeMB=30
 maxElementsOnDisk=1000
  diskPersistent=false
 diskExpiryThreadIntervalSeconds=3600
 memoryStoreEvictionPolicy=LRU
  clearOnFlush=true
 terracotta clustered=true 
 nonstop immediateTimeout=true
  timeoutBehavior type=noop /
 /nonstop
 /terracotta
 /cache


 This doesn't fail, but it doesn't appear to be using the terracotta
 server, because the item is not available on the other instances.

 I don't know where to go from here.

 As always, your combined help is appreciated!

 Rick Root

 --
 *The beatings will continue until morale improves.*




-- 
*The beatings will continue until morale improves.*


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356845
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Distributed Caching with TerraCotta

2013-09-26 Thread Russ Michaels

a very niche requirement, so I think you will struggle to find anyone else
doing that on here.
Have you checked that the jar files are loading and not causing any errors ?
Check the apache logs and the cfadmin info page to see loaded jars


On Thu, Sep 26, 2013 at 2:22 PM, Rick Root rick.r...@gmail.com wrote:


 I am still struggling with this issue.  No help from anywhere :(


 On Sun, Sep 15, 2013 at 12:32 AM, Rick Root rick.r...@gmail.com wrote:

  Hi,
 
  A little over a year ago, I went through a process setting up terracotta
  caching server for an application that is using cf clustering.. three
  instances of coldfusion powering the application, and I wanted to be able
  to efficiently cache data between instances.
  This worked really well, but now I'm more or less disassocaited with the
  company and they've asked me to set up TerraCotta again on their new
  server, which is running Coldfusion 10.
 
  Things are different, of course, but much the same
 
  Here's what I've done.  I installed the latest version of TerraCotta open
  source (3.7.5) which comes with a newer version of ehcache.
 
  I copied all these jar files into each instances libf older and renamed
  any older versions with a .old extension
 
  ehcache-core-2.6.6.jar
  ehcache-terracotta-2.6.6.jar
  slf4j-api-1.6.1.jar
  slf4j-jdk14-1.6.1.jar
  slf4j-log4j12-1.6.1.jar
  terracotta-toolkit-1.6-runtime-5.5.0.jar
 
  Then modified the ehcache.xml as follows:
 
  I added this line above my defaultcache:
 
  terracottaConfig url=http://localhost:9510; rejoin=true /
 
  I added this section BELOW my defaultCache, which essentially adds a new
  cache region named distributedCache
 
  cache
  name=distributedCache
   maxElementsInMemory=1
  eternal=false
  timeToIdleSeconds=86400
   timeToLiveSeconds=86400
  overflowToDisk=false
  diskSpoolBufferSizeMB=30
   maxElementsOnDisk=1000
  diskPersistent=false
  diskExpiryThreadIntervalSeconds=3600
   memoryStoreEvictionPolicy=LRU
  clearOnFlush=true
  terracotta clustered=true 
   nonstop immediateTimeout=true
  timeoutBehavior type=noop /
   /nonstop
  /terracotta
  /cache
 
  Now that I've done all this, I did some testing with a cf page that looks
  like this... if the request is made on instance 2, put something in the
  cache, then retrieve it and display it.  If it's on another instance,
 just
  retrieve the value and display it.
 
  cache
  name=distributedCache
  maxElementsInMemory=1
   eternal=false
  timeToIdleSeconds=86400
  timeToLiveSeconds=86400
   overflowToDisk=false
  diskSpoolBufferSizeMB=30
  maxElementsOnDisk=1000
   diskPersistent=false
  diskExpiryThreadIntervalSeconds=3600
  memoryStoreEvictionPolicy=LRU
   clearOnFlush=true
  terracotta clustered=true 
  nonstop immediateTimeout=true
   timeoutBehavior type=noop /
  /nonstop
  /terracotta
  /cache
 
 
  This doesn't fail, but it doesn't appear to be using the terracotta
  server, because the item is not available on the other instances.
 
  I don't know where to go from here.
 
  As always, your combined help is appreciated!
 
  Rick Root
 
  --
  *The beatings will continue until morale improves.*
 



 --
 *The beatings will continue until morale improves.*


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356846
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Distributed Caching with TerraCotta

2013-09-26 Thread Cameron Childress

On Thu, Sep 26, 2013 at 9:22 AM, Rick Root rick.r...@gmail.com wrote:

 I am still struggling with this issue.  No help from anywhere :(


Terracota at this level is a paid for product right? Should be some level
of support from the vendor? What do their tech support folks say?

-Cameron

-- 
Cameron Childress
--
p:   678.637.5072
im: cameroncf
facebook http://www.facebook.com/cameroncf |
twitterhttp://twitter.com/cameronc |
google+ https://profiles.google.com/u/0/117829379451708140985


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356847
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Distributed Caching with TerraCotta

2013-09-26 Thread Rick Root

It can be, yes.  But this is open source terra cotta server.


On Thu, Sep 26, 2013 at 9:35 AM, Cameron Childress camer...@gmail.comwrote:


 Terracota at this level is a paid for product right? Should be some level
 of support from the vendor? What do their tech support folks say?




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356852
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Distributed Caching with TerraCotta

2013-09-17 Thread Rick Root

Ping... anybody?

On Sun, Sep 15, 2013 at 12:32 AM, Rick Root rick.r...@gmail.com wrote:

 Hi,

 A little over a year ago, I went through a process setting up terracotta
 caching server for an application that is using cf clustering.. three
 instances of coldfusion powering the application, and I wanted to be able
 to efficiently cache data between instances.
 This worked really well, but now I'm more or less disassocaited with the
 company and they've asked me to set up TerraCotta again on their new
 server, which is running Coldfusion 10.

 Things are different, of course, but much the same

 Here's what I've done.  I installed the latest version of TerraCotta open
 source (3.7.5) which comes with a newer version of ehcache.

 I copied all these jar files into each instances libf older and renamed
 any older versions with a .old extension

 ehcache-core-2.6.6.jar
 ehcache-terracotta-2.6.6.jar
 slf4j-api-1.6.1.jar
 slf4j-jdk14-1.6.1.jar
 slf4j-log4j12-1.6.1.jar
 terracotta-toolkit-1.6-runtime-5.5.0.jar

 Then modified the ehcache.xml as follows:

 I added this line above my defaultcache:

 terracottaConfig url=localhost:9510 rejoin=true /

 I added this section BELOW my defaultCache, which essentially adds a new
 cache region named distributedCache

 cache
 name=distributedCache
  maxElementsInMemory=1
 eternal=false
 timeToIdleSeconds=86400
  timeToLiveSeconds=86400
 overflowToDisk=false
 diskSpoolBufferSizeMB=30
  maxElementsOnDisk=1000
 diskPersistent=false
 diskExpiryThreadIntervalSeconds=3600
  memoryStoreEvictionPolicy=LRU
 clearOnFlush=true
 terracotta clustered=true 
  nonstop immediateTimeout=true
 timeoutBehavior type=noop /
  /nonstop
 /terracotta
 /cache

 Now that I've done all this, I did some testing with a cf page that looks
 like this... if the request is made on instance 2, put something in the
 cache, then retrieve it and display it.  If it's on another instance, just
 retrieve the value and display it.

 cache
 name=distributedCache
 maxElementsInMemory=1
  eternal=false
 timeToIdleSeconds=86400
 timeToLiveSeconds=86400
  overflowToDisk=false
 diskSpoolBufferSizeMB=30
 maxElementsOnDisk=1000
  diskPersistent=false
 diskExpiryThreadIntervalSeconds=3600
 memoryStoreEvictionPolicy=LRU
  clearOnFlush=true
 terracotta clustered=true 
 nonstop immediateTimeout=true
  timeoutBehavior type=noop /
 /nonstop
 /terracotta
 /cache


 This doesn't fail, but it doesn't appear to be using the terracotta
 server, because the item is not available on the other instances.

 I don't know where to go from here.

 As always, your combined help is appreciated!

 Rick Root

 --
 *The beatings will continue until morale improves.*



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356804
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Distributed Caching with TerraCotta

2013-09-17 Thread Alan Rother

Try contacting Rob Brooks-Bilson, he's the ehcache expert in CF

http://rob.brooks-bilson.com/

(Also a super nice guy)

=]


On Tue, Sep 17, 2013 at 12:15 PM, Rick Root rick.r...@gmail.com wrote:


 Ping... anybody?

 On Sun, Sep 15, 2013 at 12:32 AM, Rick Root rick.r...@gmail.com wrote:

  Hi,
 
  A little over a year ago, I went through a process setting up terracotta
  caching server for an application that is using cf clustering.. three
  instances of coldfusion powering the application, and I wanted to be able
  to efficiently cache data between instances.
  This worked really well, but now I'm more or less disassocaited with the
  company and they've asked me to set up TerraCotta again on their new
  server, which is running Coldfusion 10.
 
  Things are different, of course, but much the same
 
  Here's what I've done.  I installed the latest version of TerraCotta open
  source (3.7.5) which comes with a newer version of ehcache.
 
  I copied all these jar files into each instances libf older and renamed
  any older versions with a .old extension
 
  ehcache-core-2.6.6.jar
  ehcache-terracotta-2.6.6.jar
  slf4j-api-1.6.1.jar
  slf4j-jdk14-1.6.1.jar
  slf4j-log4j12-1.6.1.jar
  terracotta-toolkit-1.6-runtime-5.5.0.jar
 
  Then modified the ehcache.xml as follows:
 
  I added this line above my defaultcache:
 
  terracottaConfig url=localhost:9510 rejoin=true /
 
  I added this section BELOW my defaultCache, which essentially adds a new
  cache region named distributedCache
 
  cache
  name=distributedCache
   maxElementsInMemory=1
  eternal=false
  timeToIdleSeconds=86400
   timeToLiveSeconds=86400
  overflowToDisk=false
  diskSpoolBufferSizeMB=30
   maxElementsOnDisk=1000
  diskPersistent=false
  diskExpiryThreadIntervalSeconds=3600
   memoryStoreEvictionPolicy=LRU
  clearOnFlush=true
  terracotta clustered=true 
   nonstop immediateTimeout=true
  timeoutBehavior type=noop /
   /nonstop
  /terracotta
  /cache
 
  Now that I've done all this, I did some testing with a cf page that looks
  like this... if the request is made on instance 2, put something in the
  cache, then retrieve it and display it.  If it's on another instance,
 just
  retrieve the value and display it.
 
  cache
  name=distributedCache
  maxElementsInMemory=1
   eternal=false
  timeToIdleSeconds=86400
  timeToLiveSeconds=86400
   overflowToDisk=false
  diskSpoolBufferSizeMB=30
  maxElementsOnDisk=1000
   diskPersistent=false
  diskExpiryThreadIntervalSeconds=3600
  memoryStoreEvictionPolicy=LRU
   clearOnFlush=true
  terracotta clustered=true 
  nonstop immediateTimeout=true
   timeoutBehavior type=noop /
  /nonstop
  /terracotta
  /cache
 
 
  This doesn't fail, but it doesn't appear to be using the terracotta
  server, because the item is not available on the other instances.
 
  I don't know where to go from here.
 
  As always, your combined help is appreciated!
 
  Rick Root
 
  --
  *The beatings will continue until morale improves.*
 


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356805
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Distributed Caching with TerraCotta

2013-09-17 Thread Rick Root

Hah, thanks yeah I already sent him email, no response yet, but he's
offered input on my terra cotta issues in the past.

On Tuesday, September 17, 2013, Alan Rother wrote:


 Try contacting Rob Brooks-Bilson, he's the ehcache expert in CF

 http://rob.brooks-bilson.com/

 (Also a super nice guy)

 =



-- 
*The beatings will continue until morale improves.*


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356808
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Distributed Caching with TerraCotta

2013-09-14 Thread Rick Root

Hi,

A little over a year ago, I went through a process setting up terracotta
caching server for an application that is using cf clustering.. three
instances of coldfusion powering the application, and I wanted to be able
to efficiently cache data between instances.
This worked really well, but now I'm more or less disassocaited with the
company and they've asked me to set up TerraCotta again on their new
server, which is running Coldfusion 10.

Things are different, of course, but much the same

Here's what I've done.  I installed the latest version of TerraCotta open
source (3.7.5) which comes with a newer version of ehcache.

I copied all these jar files into each instances libf older and renamed any
older versions with a .old extension

ehcache-core-2.6.6.jar
ehcache-terracotta-2.6.6.jar
slf4j-api-1.6.1.jar
slf4j-jdk14-1.6.1.jar
slf4j-log4j12-1.6.1.jar
terracotta-toolkit-1.6-runtime-5.5.0.jar

Then modified the ehcache.xml as follows:

I added this line above my defaultcache:

terracottaConfig url=http://localhost:9510; rejoin=true /

I added this section BELOW my defaultCache, which essentially adds a new
cache region named distributedCache

cache
name=distributedCache
maxElementsInMemory=1
eternal=false
timeToIdleSeconds=86400
timeToLiveSeconds=86400
overflowToDisk=false
diskSpoolBufferSizeMB=30
maxElementsOnDisk=1000
diskPersistent=false
diskExpiryThreadIntervalSeconds=3600
memoryStoreEvictionPolicy=LRU
clearOnFlush=true
terracotta clustered=true 
nonstop immediateTimeout=true
timeoutBehavior type=noop /
/nonstop
/terracotta
/cache

Now that I've done all this, I did some testing with a cf page that looks
like this... if the request is made on instance 2, put something in the
cache, then retrieve it and display it.  If it's on another instance, just
retrieve the value and display it.

cache
name=distributedCache
maxElementsInMemory=1
eternal=false
timeToIdleSeconds=86400
timeToLiveSeconds=86400
overflowToDisk=false
diskSpoolBufferSizeMB=30
maxElementsOnDisk=1000
diskPersistent=false
diskExpiryThreadIntervalSeconds=3600
memoryStoreEvictionPolicy=LRU
clearOnFlush=true
terracotta clustered=true 
nonstop immediateTimeout=true
timeoutBehavior type=noop /
/nonstop
/terracotta
/cache


This doesn't fail, but it doesn't appear to be using the terracotta server,
because the item is not available on the other instances.

I don't know where to go from here.

As always, your combined help is appreciated!

Rick Root

-- 
*The beatings will continue until morale improves.*


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356797
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Distributed Caching with TerraCotta

2013-09-14 Thread Rick Root

Oh, I've also done the terracottaconfig line as such, without the http://,
which I think was incorrect.  Same result though.

terracottaConfig url=localhost:9510 rejoin=true /



On Sat, Sep 14, 2013 at 11:32 PM, Rick Root rick.r...@gmail.com wrote:

 Hi,

 A little over a year ago, I went through a process setting up terracotta
 caching server for an application that is using cf clustering.. three
 instances of coldfusion powering the application, and I wanted to be able
 to efficiently cache data between instances.
 This worked really well, but now I'm more or less disassocaited with the
 company and they've asked me to set up TerraCotta again on their new
 server, which is running Coldfusion 10.

 Things are different, of course, but much the same

 Here's what I've done.  I installed the latest version of TerraCotta open
 source (3.7.5) which comes with a newer version of ehcache.

 I copied all these jar files into each instances libf older and renamed
 any older versions with a .old extension

 ehcache-core-2.6.6.jar
 ehcache-terracotta-2.6.6.jar
 slf4j-api-1.6.1.jar
 slf4j-jdk14-1.6.1.jar
 slf4j-log4j12-1.6.1.jar
 terracotta-toolkit-1.6-runtime-5.5.0.jar

 Then modified the ehcache.xml as follows:

 I added this line above my defaultcache:

 terracottaConfig url=http://localhost:9510; rejoin=true /

 I added this section BELOW my defaultCache, which essentially adds a new
 cache region named distributedCache

 cache
 name=distributedCache
  maxElementsInMemory=1
 eternal=false
 timeToIdleSeconds=86400
  timeToLiveSeconds=86400
 overflowToDisk=false
 diskSpoolBufferSizeMB=30
  maxElementsOnDisk=1000
 diskPersistent=false
 diskExpiryThreadIntervalSeconds=3600
  memoryStoreEvictionPolicy=LRU
 clearOnFlush=true
 terracotta clustered=true 
  nonstop immediateTimeout=true
 timeoutBehavior type=noop /
  /nonstop
 /terracotta
 /cache

 Now that I've done all this, I did some testing with a cf page that looks
 like this... if the request is made on instance 2, put something in the
 cache, then retrieve it and display it.  If it's on another instance, just
 retrieve the value and display it.

 cache
 name=distributedCache
 maxElementsInMemory=1
  eternal=false
 timeToIdleSeconds=86400
 timeToLiveSeconds=86400
  overflowToDisk=false
 diskSpoolBufferSizeMB=30
 maxElementsOnDisk=1000
  diskPersistent=false
 diskExpiryThreadIntervalSeconds=3600
 memoryStoreEvictionPolicy=LRU
  clearOnFlush=true
 terracotta clustered=true 
 nonstop immediateTimeout=true
  timeoutBehavior type=noop /
 /nonstop
 /terracotta
 /cache


 This doesn't fail, but it doesn't appear to be using the terracotta
 server, because the item is not available on the other instances.

 I don't know where to go from here.

 As always, your combined help is appreciated!

 Rick Root

 --
 *The beatings will continue until morale improves.*




-- 
*The beatings will continue until morale improves.*


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:356798
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm