10

Is there any way to configure Amazon EC2 instances to support multicast needed for EhCache auto-discovery? (through iptables hacks etc)/

Archer
  • 5,073
  • 8
  • 50
  • 96

3 Answers3

10

There is no multicast between EC2 instances. Amazon does not allow it.

There is a straight answer on the FAQ http://aws.amazon.com/vpc/faqs/#R4

You can submit a request to AWS, I am sure that you (we) are not alone facing a requirement to easily auto-scale an EHCache on amazon.

Terracotta seems to have a solution, cloud tools. http://ww1.terracotta.org/documentation/3.7/cloud-tools/get-started

juanmirocks
  • 4,786
  • 5
  • 46
  • 46
4

Dependent upon kernel configuration you might be able to overlay multicast on VPN connections manually wired up between each EC2 instance:

original version:

https://web.archive.org/web/20111129081152/http://www.slideshare.net/Franklin72/vpncubed-ipsec-to-ec2-gateway-test

New version for 2014:

http://www.slideshare.net/CohesiveFT/cohesiveft-vns3-configuration-documentation-for-amazon-aws

Steve-o
  • 12,678
  • 2
  • 41
  • 60
0

Here is a presentation about how to use JGroups-based clustering (e.g. EHCache, and JBoss AS) on AWS:

http://www.redhat.com/summit/2011/presentations/jbossworld/whats_new/wednesday/ban_w_310_running_in_the_cloud.pdf

You can configure JGroups to use TCP/IP and do discovery in many different ways.

Joshua Davis
  • 3,499
  • 1
  • 26
  • 29