spring - Infinispan and JGroups discovery on EC2 -


i'm trying use application on aws ec2 on linux boxes tomcat servers. used application infinispan on lan , used udp multicasting jgroups member discovery. ec2 not support udp multicasting , default node discovery approach used infinispan detect nodes running in cluster. looked using s3_ping protocol, have not figured out why doesn't work.

does have ideas problem might here?

here configuration files: 1. applicationcontext-cache.xml

<!-- infinispan cache --> <cache:annotation-driven/>  <import resource="classpath:/applicationcontext-dao.xml"/>   <bean id="cachemanager" class="org.infinispan.spring.provider.springembeddedcachemanagerfactorybean">     <property name="configurationfilelocation" value="classpath:/infinispan-replication.xml"/> </bean>  <context:component-scan base-package="com.alex.cache"/> 

2.infinispan-replication.xml

<infinispan xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"         xsi:schemalocation="urn:infinispan:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd"         xmlns="urn:infinispan:config:5.1">  <global>     <transport transportclass="org.infinispan.remoting.transport.jgroups.jgroupstransport">         <properties>             <property name="configurationfile" value="/home/akasiyanik/dev/projects/myapp/myapp-configs/jgroups.xml"/>         </properties>     </transport> </global>  <default>     <!-- configure synchronous replication cache -->     <clustering mode="replication">         <sync/>         <hash numowners="2"/>     </clustering> </default> </infinispan> 

3. jgroups.xml

<config>     <tcp bind_port="${jgroups.tcp.port:7800}"       loopback="true"       port_range="30"       recv_buf_size="20000000"       send_buf_size="640000"       discard_incompatible_packets="true"       max_bundle_size="64000"       max_bundle_timeout="30"               enable_bundling="true"       use_send_queues="true"       sock_conn_timeout="300"       enable_diagnostics="false"       thread_pool.enabled="true"       thread_pool.min_threads="2"       thread_pool.max_threads="30"       thread_pool.keep_alive_time="60000"       thread_pool.queue_enabled="false"       thread_pool.queue_max_size="100"       thread_pool.rejection_policy="discard"        oob_thread_pool.enabled="true"       oob_thread_pool.min_threads="2"       oob_thread_pool.max_threads="30"       oob_thread_pool.keep_alive_time="60000"       oob_thread_pool.queue_enabled="false"       oob_thread_pool.queue_max_size="100"       oob_thread_pool.rejection_policy="discard"      />     <s3_ping location="r********s" access_key="ak***************sia"       secret_access_key="y*************************************bj" timeout="2000" num_initial_members="2"/>     <merge2 max_interval="30000"         min_interval="10000"/>     <fd_sock/>     <fd timeout="3000" max_tries="3"/>     <verify_suspect timeout="1500"/>     <barrier />     <pbcast.nakack use_mcast_xmit="false"                exponential_backoff="500"                discard_delivered_msgs="true"/>     <unicast />     <pbcast.stable stability_delay="1000" desired_avg_gossip="50000"                max_bytes="4m"/>     <pbcast.gms print_local_addr="true" join_timeout="3000"              view_bundling="true"/>     <ufc max_credits="2m"      min_threshold="0.4"/>     <mfc max_credits="2m"      min_threshold="0.4"/>    <frag2 frag_size="60k" />    <pbcast.state_transfer/> </config> 

use this: https://github.com/meltmedia/jgroups-aws

it implementation of jgroups discovery protocol aws using aws api (multicast replacement)


Comments