Amazon ec2 JBoss AS7使用S3 Ping在Amazon EC2上工作时不复制会话

Amazon ec2 JBoss AS7使用S3 Ping在Amazon EC2上工作时不复制会话,amazon-ec2,cloud,jboss7.x,cluster-computing,session-replication,Amazon Ec2,Cloud,Jboss7.x,Cluster Computing,Session Replication,我在亚马逊有一个自动校准组。我已将每个实例中的Jboss配置为: <subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="tcps3"> <stack name="tcps3"> <transport type="TCP" socket-binding="jgroups-tcp" diagnostics-socket-binding="jgroups-diagnostics

我在亚马逊有一个自动校准组。我已将每个实例中的Jboss配置为:

<subsystem xmlns="urn:jboss:domain:jgroups:1.1" default-stack="tcps3">
<stack name="tcps3">
            <transport type="TCP" socket-binding="jgroups-tcp" diagnostics-socket-binding="jgroups-diagnostics"/>
            <protocol type="S3_PING">
                <property name="access_key">
                    xxxxxxxxxxxxx
                </property>
                <property name="secret_access_key">
                    /xxxxxxxxxxxx
                </property>
                <property name="location">
                    mybucket
                </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>
    </subsystem>

首先,检查您是否已在应用程序的
web.xml
文件中添加了

之后,看看这些链接,EC2中的复制存在一些问题:


可能的解决方法,使用FRAG2限制数据包大小:

我已经有了
。我已经为
16K
更改了
,但仍然无法工作(@Camila请尝试为jgroups启用调试级别,并检查是否存在用于复制的消息。我已使用部分日志文件编辑了答案。我看不到任何错误。@Camila日志中的此消息表明jgroups配置不正确:
群集成员数:1
您必须至少有2个成员。请检查防火墙在节点之间启用且存在连接日志中一个有趣的事情是每条消息的重复条目。您如何创建jboss实例?似乎一起运行并将消息发送到同一个日志
17:27:19,674 INFO  [stdout] (pool-25-thread-1) -------------------------------------------------------------------
17:27:19,674 INFO  [stdout] (pool-25-thread-1) -------------------------------------------------------------------
17:27:19,675 INFO  [stdout] (pool-25-thread-1) GMS: address=ip-172-31-20-76/hibernate, cluster=hibernate, physical address=127.0.0.1:7600
17:27:19,675 INFO  [stdout] (pool-25-thread-1) GMS: address=ip-172-31-20-76/hibernate, cluster=hibernate, physical address=127.0.0.1:7600
17:27:19,677 INFO  [stdout] (pool-25-thread-1) -------------------------------------------------------------------
17:27:19,677 INFO  [stdout] (pool-25-thread-1) -------------------------------------------------------------------
17:27:19,830 INFO  [stdout] (pool-15-thread-1) 
17:27:19,830 INFO  [stdout] (pool-15-thread-1) 
17:27:19,831 INFO  [stdout] (pool-15-thread-1) -------------------------------------------------------------------
17:27:19,831 INFO  [stdout] (pool-15-thread-1) -------------------------------------------------------------------
17:27:19,835 INFO  [stdout] (pool-15-thread-1) GMS: address=ip-172-31-20-76/web, cluster=web, physical address=127.0.0.1:7600
17:27:19,835 INFO  [stdout] (pool-15-thread-1) GMS: address=ip-172-31-20-76/web, cluster=web, physical address=127.0.0.1:7600
17:27:19,837 INFO  [stdout] (pool-15-thread-1) -------------------------------------------------------------------
17:27:19,837 INFO  [stdout] (pool-15-thread-1) -------------------------------------------------------------------
17:27:23,569 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) JBAS011402: Starting Persistence Unit Service 'QuestoesEAR.ear/QuestoesEJB.jar#CrudPU'
17:27:23,569 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) JBAS011402: Starting Persistence Unit Service 'QuestoesEAR.ear/QuestoesEJB.jar#CrudPU'
17:27:23,642 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-3) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
17:27:23,642 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-3) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
17:27:23,652 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-4) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
17:27:23,652 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-4) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
17:27:23,820 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-2) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
17:27:23,820 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-2) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
17:27:23,826 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-16-thread-1) ISPN000078: Starting JGroups Channel
17:27:23,826 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-16-thread-1) ISPN000078: Starting JGroups Channel
17:27:23,831 INFO  [org.hibernate.Version] (MSC service thread 1-2) HHH000412: Hibernate Core {4.0.1.Final}
17:27:23,831 INFO  [org.hibernate.Version] (MSC service thread 1-2) HHH000412: Hibernate Core {4.0.1.Final}
17:27:23,842 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-2) HHH000206: hibernate.properties not found
17:27:23,842 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-2) HHH000206: hibernate.properties not found
17:27:23,845 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-2) HHH000021: Bytecode provider name : javassist
17:27:23,845 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-2) HHH000021: Bytecode provider name : javassist
17:27:23,850 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-16-thread-1) ISPN000094: Received new cluster view: [ip-172-31-20-76/web|0] [ip-172-31-20-76/web]
17:27:23,850 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-16-thread-1) ISPN000094: Received new cluster view: [ip-172-31-20-76/web|0] [ip-172-31-20-76/web]
17:27:23,853 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-16-thread-1) ISPN000079: Cache local address is ip-172-31-20-76/web, physical addresses are [127.0.0.1:7600]
17:27:23,853 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-16-thread-1) ISPN000079: Cache local address is ip-172-31-20-76/web, physical addresses are [127.0.0.1:7600]
17:27:23,872 INFO  [org.infinispan.factories.GlobalComponentRegistry] (pool-16-thread-1) ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.2.FINAL
17:27:23,872 INFO  [org.infinispan.factories.GlobalComponentRegistry] (pool-16-thread-1) ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.2.FINAL
17:27:23,875 INFO  [org.infinispan.config.ConfigurationValidatingVisitor] (pool-16-thread-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
17:27:23,875 INFO  [org.infinispan.config.ConfigurationValidatingVisitor] (pool-16-thread-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
17:27:23,909 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-2) HHH000204: Processing PersistenceUnitInfo [
    name: CrudPU
    ...]
17:27:23,909 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-2) HHH000204: Processing PersistenceUnitInfo [
    name: CrudPU
    ...]
17:27:24,126 INFO  [org.infinispan.jmx.CacheJmxRegistration] (pool-16-thread-1) ISPN000031: MBeans were successfully registered to the platform mbean server.
17:27:24,126 INFO  [org.infinispan.jmx.CacheJmxRegistration] (pool-16-thread-1) ISPN000031: MBeans were successfully registered to the platform mbean server.
17:27:24,184 INFO  [org.jboss.as.clustering.infinispan] (pool-16-thread-1) JBAS010281: Started repl cache from web container
17:27:24,184 INFO  [org.jboss.as.clustering.infinispan] (pool-16-thread-1) JBAS010281: Started repl cache from web container
17:27:24,212 INFO  [org.jboss.as.clustering.impl.CoreGroupCommunicationService.web] (MSC service thread 1-4) JBAS010206: Number of cluster members: 1
17:27:24,212 INFO  [org.jboss.as.clustering.impl.CoreGroupCommunicationService.web] (MSC service thread 1-4) JBAS010206: Number of cluster members: 1