-
1. Re: loadbalancing without ha-failover
ben.wang Dec 20, 2005 7:18 PM (in response to fwiese)Just don't set the clustered tag true in your jboss.xml for your SFSB. It will just do the load balance.
-
2. Re: loadbalancing without ha-failover
fwiese Dec 21, 2005 2:41 AM (in response to fwiese)Thanks, this is a solution, but -- exists a global switch also ;-), it would be nice. A thing like a default setting for all SFSBs.
Falko -
3. Re: loadbalancing without ha-failover
slaboure Dec 21, 2005 6:13 AM (in response to fwiese)you could also try to make your own clustering configuration, name it the way you want, and simply use a non-clustered cache/store, like for the default SFSB configuration.
Cheers,
sacha -
4. Re: loadbalancing without ha-failover
schustes Mar 1, 2007 11:12 PM (in response to fwiese)What am I doing wrong then, or does my scenario just not fit. The application I have is basically a distributed computing server used to run simulations requested by a remote client. I also want to have the loadbalancing, but no replication, so I use HA-JNDI, but set don't set the clustered tag in jboss.xml
The architecture is quite simple - each node has the SFSBs to be balanced. A central node is dedicated to serve remote client requests and has the single-cluster jms running. There are two ejbs on the normal nodes, one being a proxy, creating n delegates to split up the workload. Thus, the central server creates an SFSB on a randomly selected server, from where possibly more SFSBs, which should be loadbalanced, may be created.
My problem occurs when I want to create 'delegate beans' on the nodes. I start a lookup, and what (probably correctly) happens, is that the Home interface seems to be returned from the local jndi-tree, and consequently the beans as well. Thus, a single job will run only on one node (the one selected by the 'bootstrapping server') with the proxy and a number of delegates it creates. What I would like to have is to distributed the delegates over the cluster. Does this scenario simply not work if all nodes have the same EJBs deployed? Must I then use the clustered-invokers and add my own interceptors (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=80210 - this works fine if I declare the ejbs clustered, but is just unnecessary overhead for my purposes)."sacha.labourey@jboss.com" wrote:
you could also try to make your own clustering configuration, name it the way you want, and simply use a non-clustered cache/store, like for the default SFSB configuration.
I don't know what this means. I played around with the clustered-ejb configuration in standardjboss.xml trying to disable the state-transfer, but I didn't get it to work (once I stop using StatefulHASessionSynchronisationInterceptor, the session seems to get lost, and I get remote exceptions). If there is a wiki or something, I would be very thankful for a pointer.
best, stephan -
5. Re: loadbalancing without ha-failover
schustes Mar 1, 2007 11:14 PM (in response to fwiese)P.S. I use ejb 2.0 with jboss 4.0.2