Fabric3 with ZeroMQ on EC2
Running Fabric3 with ZeroMQ on EC2
Requierments
EC2 - Account
Account - Secret Access Key
Account - Access Key
Amazon S3 Bucket name ( no setup requiered but still needed, watch out for costs)
Oracle/Sun JRE (tested with latest 1.6.0_27)
3 Micro Instances
Setup of the instances
I used the Amazon 32-Bit AMI (amzn-ami-2011.02.1.i386-ebs (ami-47cefa33) : http://aws.amazon.com/amis/4157).
Download fabric3 Standalone and the ZeroMQ Profile (from http://fabric3.org/downloads.html)
Now we need to configure JGroups to enable group communication over tcp since ec2 dosent support multicasts.
Download fabric3 Standalone and the ZeroMQ Profile (from http://fabric3.org/downloads.html)
Now we need to configure JGroups to enable group communication over tcp since ec2 dosent support multicasts.
I have couple of instances in VPC.
aws config:
public subnetA-192.168.20.0/24, subnetB-192.168.30.0/24, subnetC-192.168.40.0/24 in vpc (192.168.0.0/16) are associated with route table A
private subnetD-192.168.0.0/24, subnetE-192.168.10.0/24 in vpc (192.168.0.0/16) are associated with route table B
route table A is routed through internet gateway A
route table B is routed through NAT instance A
load balancer A has selected subnets: subnetB and subnetC and subdomain in route53 points to loadBalancer dns name
there is a NAT instance in VPC in subnetA
there are instances in private subnets subnetD and subnetE
subnetA is in availability zone C, subnetB is in availability zone A, subnetC is in availability zone D, subnetD is in availability zone D, subnetE is in availability zone A
I've got it working with the following federation config:
Does anybody has some suggestions, how to improve it? I had to set bind_addr to instance IP address, in order to make work, is it possible to make it more dynamic? All the jgroups placehoilders are not working: GLOBAL, SITE_LOCAL, LINK_LOCAL, NON_LOOPBACK ...