[Clustering/JBoss] - Re: Importance of M-Bean architecuture
by bstansberry@jboss.com
If you need to handle a very large number of concurrent web requests, yes, you'll need to use web tier clustering. Whether you also need to use some kind of state replication depends on whether you want to support HA -- i.e. user doesn't lose session state if their session moves from one server to another.
What kind of state replication depends on where your application stores any session state. Most common is in the HttpSession, so you enable web session state replication by adding the "distributable" tag to your web.xml.
Multihoming the network card means assigning more than one IP address to the same network interface. See your OS docs for how to do this. An alternative is to have a second network interface. Main point is you have a distinct IP address available for each JBoss instance on the machine.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145308#4145308
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145308
18 years, 3 months
[Persistence, JBoss/CMP, Hibernate, Database] - Connecting to MySQL Cluster
by sledwich
I am about to start some testing with JBOSS 4.0.5 and MySQL Cluster.
I have a traditional mysql-ds.xml to connect to a single instance :
<local-tx-datasource>
<jndi-name>mysql-propcoent-bandr</jndi-name>
<connection-url>jdbc:mysql://172.16.82.1:3306/mytestdb</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>jboss</user-name>
*****
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<!-- sql to call when connection is created
<new-connection-sql>some arbitrary sql</new-connection-sql>
-->
<!-- sql to call on an existing pooled connection when it is obtained from pool
<check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
-->
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) --><min-pool-size>10</min-pool-size>
<max-pool-size>35</max-pool-size><transaction-isolation>TRANSACTION_READ_UNCOMMITTED</transaction-isolation>
<type-mapping>mySQL</type-mapping>
</local-tx-datasource>
Does anybody know or can tell me how to connect it to a mysql cluster?
Cluster config is as below:
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 @172.16.82.129 (Version: 5.0.51, Nodegroup: 0)
id=3 @172.16.82.130 (Version: 5.0.51, Nodegroup: 0, Master)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @172.16.82.1 (Version: 5.0.51)
[mysqld(API)] 2 node(s)
id=4 @172.16.82.129 (Version: 5.0.51)
id=5 @172.16.82.131 (Version: 5.0.51)
Any help appreciated Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145291#4145291
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145291
18 years, 3 months