You can implement this very easily with a bit of client code. In fact, I've done just this elsewhere, or at least something very similar.
I have an installation that handles millions of items a day. The items average 80k. I don't have disk space to keep them all on any one box. So, I partitioned the data. I did it this way. I took 8 boxes and setup 4 remote cache server primary/failover pairs. (fyi. Each is configured to use a jdbc disk cache backed by mysql running locally.) Every client is configured with 4 remote cache client auxiliaries, one for each pair. I configured 4 regions on the clients. You could have far more. I divided the remote clients between the regions. Region 1 uses p/f pair A. Region 2, B . . . (In another instance I have 180 regions divided between 4 remote servers.) I decide what region to put the data in through a simple algorithm: key mod numerOfPartitions (here 4) = the region. I named the regions in a pattern like this: MyPartitionedData_0 MyPartitionedData_1 MyPartitionedData_2 MyPartitionedData_3 I take the suffic from the algorithm and put the data in the appropriate region. I made a simple abstraction that does just this. I could add more partitions and reconfigure. It can be scaled indefinitely. . .. Perhaps I'll put in in the JCS util package. Cheers, Aaron --- On Tue, 8/11/09, rcolme...@tiscali.it <rcolme...@tiscali.it> wrote: > From: rcolme...@tiscali.it <rcolme...@tiscali.it> > Subject: JCS HA cluster, is possible? > To: jcs-users@jakarta.apache.org > Date: Tuesday, August 11, 2009, 10:40 AM > Hi, > > I have a question about JCS behavior. > > Suppose this scenario: > - > four JCS server: S1,S2,S3,S4 > - for every server a max of 10,000 > cacheable objects > - a client C1 > > I need that client C1 writes 40,000 > objects to 4 JCS servers. JCS could automatic balance > the > objects > insertion between the 4 servers partitioning the objects > set (via round > robin, for example)? > > I need the maximum performance (availability), > not affordability. Substantially I need > that an object instance "O1" > is allocated _only_ in one server and that the client > lookup > is > executed in parallel on the four servers. > > Is this possible with JCS? > > > TIA > Roberto Colmegna > > > > > Torna a grande richiesta l'offerta estiva di Tiscali Photo > !! Non rinuniciare ai tuoi ricordi. Stampa le tue foto a > soli 0,09 euro > > > > http://photo.tiscali.it > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jcs-users-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jcs-users-h...@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-users-unsubscr...@jakarta.apache.org For additional commands, e-mail: jcs-users-h...@jakarta.apache.org