Re: Is it possible to have local and remote interfaces at the same time?
Benoit Pelletier <[email protected]> Tue, 15 Feb 2011 13:12:40 +0100
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Organization | BULL SAS |
| Message-ID | <[email protected]> |
Hi Zoran, > Hi! > > We are using Jonas 4.10.9 and are trying to do clustering. For this purpose we > changed our code from using local interfaces to remote interfaces. But now of > course because of remote interfaces every client action is now MUCH slower. We > still didn't manage to have clustering up and running, but we seriously doubt > that clustering is going to make it up! > > a) Do we have to switch to pure remote interfaces for clustering? Is it > possible to have both local and remote interface at the same time? (Like > lookup-methods being smart enough to know if the bean is on local or remote > machine.) > You can make a try with the local call optimization at the rmi level (see carol.jvm.rmi.local.call and local.registry properties in carol.properties file) > b) Are both interfaces at the same time possible > 1) in Jonas 4.10.9 ? > 2) in Jonas 5 with ejb2 container? > 3) in Jonas 5 with ejb3 container? > Yes for all > c) if clustering goes only with remote interfaces, then what is the benefit of > it if the single user performance drops significantly due to the fact that we > are forced to use remote interfaces? > A drop in the performance with a single node in the clustering mode is not so weird, a small overhead may lie in the underlying mechanism, clustering goals being scalability and availability. Generally the best architecture for performance is to keep web and ejb layers in a same AS node and to perform load-balancing at the web level (Apache/mod_jk). But maybe as such deployment is not appropriate in your case ? Regards; > Thank you, Zoran F. > > > -- ---------------------------------------------------------------- Benoit Pelletier http://jonas.ow2.org Bull, Architect of an Open World TM http://www.bull.com