Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to configure Amazon EC2 instances to support multicast discovery needed for EhCache

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

like image 877
Archer Avatar asked Apr 27 '11 08:04

Archer


People also ask

Does EC2 support multicast?

An ENI associated with a supported Amazon EC2 instance receives multicast traffic by being a multicast group member. Nitro instances* can receive and/or send traffic in a static source group membership configuration. With IGMPv2** enabled, any Nitro instance can send traffic without static configuration.

What are the 3 different methods that you connect to a EC2 instance?

AWS support many ways to let you connect to your servers(EC2), we will introduce three methods : SSH, Instance Connect, System Manager and deep dive in EC2 Instance Connect and System Manager – Session Manager.

Can we launch multiple instances with the same Ami?

You can launch multiple instances from a single AMI when you require multiple instances with the same configuration. You can use different AMIs to launch instances when you require instances with different configurations.

What type of instances do AMIs use?

An Amazon Machine Image (AMI) is a template that contains a software configuration (for example, an operating system, an application server, and applications). From an AMI, you launch an instance, which is a copy of the AMI running as a virtual server in the cloud.


2 Answers

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

like image 55
Vincent Giguère Avatar answered Oct 18 '22 10:10

Vincent Giguère


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

like image 24
Steve-o Avatar answered Oct 18 '22 10:10

Steve-o