我试图在wildfly 8.0.0中使用sping的发现方法。 我正在使用默认的Amazon Linux AMI,并使用大厨根据本教程http://aws.typepad.com/awsaktuell/tutorial/在ec2中启动实例。 我已经部署了一个示例Web应用程序,这是聚类。 截至目前,我有一个单一的节点。 但在不久的将来,我不想在群集中添加更多的节点。
我使用所需的s3凭证和存储区详细信息修改了文件standalone-full-ha.xml。
<subsystem xmlns="urn:jboss:domain:jgroups:2.0" default-stack="s3ping"> ...... <stack name="s3ping"> <transport type="TCP" socket-binding="jgroups-tcp" diagnostics-socket-binding="jgroups-diagnostics"/> <protocol type="S3_PING"> <property name="access_key"> XXXXXXXXXXXXXXXXXXX </property> <property name="secret_access_key"> XXXXXXXXXXXXXXXXXXXXXXXX </property> <property name="prefix"> jboss-config </property> <property name="timeout"> 60000 </property> </protocol> <protocol type="MERGE2"/> <protocol type="FD_SOCK" socket-binding="jgroups-tcp-fd"/> <protocol type="FD"/> <protocol type="VERIFY_SUSPECT"/> <protocol type="BARRIER"/> <protocol type="pbcast.NAKACK"/> <protocol type="UNICAST2"/> <protocol type="pbcast.STABLE"/> <protocol type="pbcast.GMS"/> <protocol type="UFC"/> <protocol type="MFC"/> <protocol type="FRAG2"/> </stack>
我开始这个jboss实例
sudo /etc/init.d/jboss start
它成功启动,可以访问应用程序。 我已经手动创build了s3存储桶,作为Iam用户使用了“jboss”(在standalone-full-ha.xml中使用“jboss”用户credentitals)以及访问s3存储桶的用户策略,但无法看到在此创build的任何节点信息文件s3桶。 有没有其他configuration,我需要添加到它的工作?
我遇到了同样的问题,事实certificate没有任何东西正在向jgroups堆栈广播。
添加这样的东西为我固定:
<subsystem xmlns="urn:jboss:domain:messaging:2.0"> <hornetq-server> <broadcast-groups> <broadcast-group name="bg-group1"> <jgroups-stack>s3ping</jgroups-stack> <jgroups-channel>hq-cluster</jgroups-channel> <connector-ref>http-connector</connector-ref> </broadcast-group> </broadcast-groups> </hornetq-server> </subsystem>