apache - AWS EC2 with S3 PING Wildfly 8.2 session not shared -


the 2 wildfly instances not in same session.

i have configured following parts of standalone-full-ha.xml :

<subsystem xmlns="urn:jboss:domain:modcluster:1.2">            <mod-cluster-config advertise-socket="modcluster" proxy-    list="10.0.0.146:6666" balancer="mycluster" advertise="false" connector="ajp"> </subsystem> 

10.0.0.146 apache instance private ip.

<subsystem xmlns="urn:jboss:domain:jgroups:2.0" default-stack="tcp">             <stack name="tcp">                 <transport type="tcp" socket-binding="jgroups-tcp"/>                 <protocol type="s3_ping">                 <property name="access_key">                     xxxxxxxxxxxxxxxx                 </property>                 <property name="secret_access_key">                     xxxxxxxxxxxxxxxxxxxxxxx                 </property>                 <property name="location">                     wildfly-bucket                 </property>                 <property name="timeout">                     16000                 </property>             </protocol>             <protocol type="merge2"/>             <protocol type="fd_sock" socket-binding="jgroups-tcp-fd"/>             <protocol type="fd"/>             <protocol type="verify_suspect"/>             <protocol type="pbcast.nakack"/>             <protocol type="unicast3"/>             <protocol type="pbcast.stable"/>             <protocol type="pbcast.gms"/>             <protocol type="mfc"/>             <protocol type="frag2"/>             <protocol type="rsvp"/>         </stack>     </subsystem> 

....

<interfaces>    <interface name="management">        <inet-address value="${jboss.bind.address.management:10.0.0.210}"/>    </interface>   <interface name="public">        <inet-address value="${jboss.bind.address:10.0.0.210}"/>   </interface>   <interface name="unsecure">       <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>   </interface> 

then have started instances (server1 , server2):

./standalone.sh -djboss.node.name=server1 -c standalone-full-ha.xml 

in server logging right:

07:41:27,019 info [org.infinispan.remoting.transport.jgroups.jgroupstransport] (serverservice    thread pool -- 63) ispn000094: received new cluster view: [server2/web|1] (2)   [server2/web, server1/web] 

apache mod_cluster recognizes 2 nodes. in s3 have granted permission “wildfly-bucket” authenticated user, , myself. have tried adding bucket policy:

 {     "version": "2012-10-17",    "statement": [         {             "sid": "",             "effect": "allow",             "principal": {             "aws": "arn:aws:iam::xxxxxxxxxxxxxx:user/laura"            },            "action": [                 "s3:getobjectversion",                 "s3:deleteobject",                 "s3:deleteobjectversion",                 "s3:getobject",                 "s3:putobject"             ],             "resource": "arn:aws:s3:::wildfly-bucket/*"          },        {             "sid": "",             "effect": "allow",             "principal": {             "aws": "arn:aws:iam::xxxxxxxxxxx:user/laura"             },             "action": [                 "s3:listbucketversions",                 "s3:listbucket"             ],            "resource": "arn:aws:s3:::wildfly-bucket"        }    ] 

}

the user “laura” in group administratoraccess.

i have set 2 instances+apache in same security group , tried same availability zone.

for security group have set following rules inbound:

custom tcp rule tcp 7600    0.0.0.0/0 custom tcp rule tcp 8080    0.0.0.0/0 ssh tcp 22  0.0.0.0/0 http    tcp 80  0.0.0.0/0 traffic all 0.0.0.0/0 custom icmp rule    echo reply  n/a 0.0.0.0/0 icmp    n/a 0.0.0.0/0 custom tcp rule tcp 9990    0.0.0.0/0 

outbound:

custom tcp rule tcp 7600    0.0.0.0/0 traffic all 0.0.0.0/0 

what missing?

can please me?

thank you.


Comments