terracotta

Looking for terracotta examples

I am looking for good example code for terracotta. Especially around using master/worker pattern. In particular using custom routing (we like, but would like to use some strick data affinity type routing - ie. one worker looks after a set of task types ). Also examples or experience setting up masters and topologies would be great als...

experience with java clustering ?

Would like to hear from people about their experience with java clustering (ie. implementing HA solutions). aka . terracotta, jgroups etc. It doesn't have to be web apps. Experience writing custom stand alone servers would be great also. UPDATE - I will be a bit more specific -> not that interested in Web App clustering (unless it ca...

Distributed Concurrency Control

I've been working on this for a few days now, and I've found several solutions but none of them incredibly simple or lightweight. The problem is basically this: We have a cluster of 10 machines, each of which is running the same software on a multithreaded ESB platform. I can deal with concurrency issues between threads on the same mac...

Can I use Terracotta to scale a RAM-intensive application?

I'm evaluating Terracotta to help me scale up an application which is currently RAM-bounded. It is a collaborative filter and stores about 2 kilobytes of data per-user. I want to use Amazon's EC2, which means I'm limited to 14GB of RAM, which gives me an effective per-server upper-bound of around 7 million users. I need to be able to sca...

Are "dirty reads" safe to use in Terracotta?

"Dirty reads", meaning reading an object's value even though it is write-locked by another thread, are described on Terracotta's website, yet I've heard that they shouldn't be used, even if you don't care about the possibility that you might get old data when you dirty-read the locked object. Does anyone have any experience of using dir...

Any experience using Terracotta open source?

Does anybody have experience using the open source offering from Terracotta as opposed to their enterprise offering? Specifically, I'm interested if it is worth the effort to use terracotta without the enterprise tools to manage your cluster? Over-simplified usage summary: we're a small startup with limited budget that needs to process ...

On using Terracotta as a persistence solution.

Would it be a good idea to use Terracotta as a persistence solution (replacing a database)? I'm specifically wondering about data integrity issues and support for transactional systems. ...

Terracotta as data layer

Is it possible to use terracotta for storing data instead of a traditional DBMS? ...

What would you recommend for a large-scale Java data grid technology: Terracotta, GigaSpaces, Coherence, etc?

I've been reading up on so-called "data grid" solutions for the Java platform including Terracotta, GigaSpaces and Coherence. I was wondering if anyone has real-world experience working any of these tools and could share their experience. I'm also really curious to know what scale of deployment people have worked with: are we talking 2-4...

Would you consider Terracotta to be a mature product?

I just don't know. I mean, there are a few topics that point me away from believing such. For example, the latest stable version (3.0.0-stable), has a broken eclipse plugin that simply doesn't work at all. Furthermore, attempting to upgrade between revisions is an enormous hassle, as all servers are incompatible with all clients not of ...

Terracotta + Compass = Hibernate + HSQLDB + JMS?

I am currently in need of a high performance java storage mechanism. This means: 1) I have 10,000+ objects with 1 - Many Relationship. 2) The objects are updated every 5 seconds, with the most recent updates persistent in the case of system failure. 3) The objects need to be queryable in a reasonable time (1-5 seconds). (IE: Give me...

Regarding Terracotta and Servlets/ Shared Threads.

I have a system that I need to distrubte that works as follows. Servlets served by tomcat start up and spawn off threads with a large number of shared (distributed) fields. Ergo, I set the thread as a root and attempt to spawn the threads as normal from my servlet constructor. However, logging indicates that the Runnable I'm attempting t...

Querying Terracotta

Is there any way to Query against the objects stored by a Terracotta instance? I am looking for SQL-Like Queries or any way to filter objects based on fields. ...

Terracotta - Cannot cast to com.tc.object.bytecode.TransparentAccess

I have a rather large spring application, and all I'm trying to share is a single Map (using util.ConcurrentMap as implementation). To do this, I created a bean in my appContext, and I tried to use the following tc-config line: */applicationContext.xml Must I do something else to enable this to work? MyClass is a rather s...

Terracotta Performance and Tips

I am just learning how to use Terracotta after discovering it about a month ago. It is a very cool technology. Basically what I am trying to do: My root (System of Record) is a ConcurrentHashMap. The main Instrumented Class is a "JavaBean" with 30 or so fields that I want to exist in the HashMap. There will be about 20000 of these J...

How does Terracotta work in this situation?

So lets say I have an N sized server array set up like so: I have a simple JavaBean/POJO: package example; public class Person { private OtherObject obj; public void setObj(OtherObject theObj) { synchronized (this) { obj = theObj; } } public OtherObject getObj() { synchronized (this) { return obj; ...

Clustering COMET using Terracotta

We're trying to cluster a COMET web application written in Java using JETTY 7.0's implementation of suspended servlet 3.0 API. Does anyone have experience using Terracotta in a suspend/resume servlet web application. Greg Wilkins of JETTY mentions some issues with COMET performance with Terracotta. Clustering COMETD with Terracotta ...

Teracotta and Hibernate Search

Does anyone have experience with using Terracotta with Hibernate Search to satisfy application Queries? If so: What magnitude of "object updates" can it handle? (How's the performance) What kind of performance do the Queries have? Is it possible to use Terracotta Hibernate Search without even having a backing Database to sat...

Durable queue configuration in Terracotta

Does anyone know how to configure durable queue on Terracotta server properly? Terracotta stores clustered objects on server in files and writes data to them in append only fashion. I want to control how this internal data gets cleared somehow. I have multiple intensive applications that use common ehcache instance clustered by T...

Single point of access for failover

This is what I am trying to achieve but I'm not familiar with the subject well enough, so please bear with me :) I've got a server to which some devices get connected and periodically upload some data. Communication is done over plain TCP sockets using a proprietary protocol we designed for speed and efficiency. Every such connection is...