如何设置 JBoss 集群
我已经使用 Tomcat 多年,但我已经开始了一个新项目,该项目将在 EC2 上使用 JBoss 6 和 Infinispan。我对 JBoss 6 和在集群中配置它都是新手。在阅读了大量内容之后,我很难找到好的文档来解释如何/在哪里配置 JBoss/Infinispan 在集群中工作。
据我所知,JB 和 IS 都使用 JGroups 进行集群通信。我对使用 JDBC_PING 协议非常感兴趣( http://community.jboss.org/wiki/JDBCPING ),因为这听起来非常适合我的需求。但我的问题是我只是不明白从哪里/如何开始配置 JBoss 来使用它(即:必须修改哪些配置文件/等等)。
谁能指出我正确的方向吗?我已经通读了 JBoss AS 5.1 集群指南 ( http:// docs.jboss.org/jbossclustering/cluster_guide/5.1/html/index.html ),但我没有进一步了解如何正确配置它。任何帮助和/或建议将不胜感激!
I've been using Tomcat for years, but I have been put on a new project which will be using both JBoss 6 and Infinispan on EC2. I am new to both JBoss 6 and configuring it in a cluster. After having read around a lot, I am having a lot of difficulty finding good documentation explaining how / where exactly to configure JBoss/Infinispan to work in a cluster.
I understand that both JB and IS use JGroups for the cluster communication. I am very much interested in using JDBC_PING protocol ( http://community.jboss.org/wiki/JDBCPING ), as it sounds ideal for my needs. But my problem is that I just do not understand where/how to start configuring JBoss to use it (ie: which config files must be modified/etc).
Can anyone please point me in the right direction? I've already read through the JBoss AS 5.1 Clustering Guide ( http://docs.jboss.org/jbossclustering/cluster_guide/5.1/html/index.html ) but I am no further ahead understanding how to properly configure this. Any help and/or advice would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,您可能会更轻松地使用 S3_PING(专门为 EC2 编写)而不是 JDBC_PING。
在 AS6 中,jgroups 堆栈配置保存在 $JBOSS_HOME/server/all/deploy/cluster/jgroups-channelfactory.sar/META-INF/jgroups-channelfactory-stacks.xml 中。 Infinispan 缓存配置保存在 $JBOSS_HOME/server/all/deploy/cluster/infinispan-cache-registry.sar/infinispan-configs.xml 中
如果您从 AS6 CacheContainerRegistry 获取 EmbeddedCacheManager,则将使用默认的“udp”堆栈。要自定义给定缓存容器的堆栈,请覆盖 stack 属性。例如
,出于好奇,您为什么选择 AS6 而不是 AS7?
Actually, you'll probably have an easier time using S3_PING (written specifically for EC2) rather than JDBC_PING.
In AS6, jgroups stack configuration is maintained in $JBOSS_HOME/server/all/deploy/cluster/jgroups-channelfactory.sar/META-INF/jgroups-channelfactory-stacks.xml. Infinispan cache configurations are maintained in $JBOSS_HOME/server/all/deploy/cluster/infinispan-cache-registry.sar/infinispan-configs.xml
Provided you obtain your EmbeddedCacheManager from the AS6 CacheContainerRegistry, the default "udp" stack will be used. To customize the stack for a given cache container, override the stack property. e.g.
Out of curiosity, why did you opt for AS6 instead of AS7?