Is there any way to configure Amazon EC2 instances to support multicast needed for EhCache auto-discovery? (through iptables hacks etc)/
Is there any way to configure Amazon EC2 instances to support multicast discovery needed for EhCache
3 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

- 4,786
- 5
- 46
- 46

- 730
- 4
- 9
-
1Broken link to terracotta – Amit Bens Jun 08 '14 at 14:40
-
seems that i have the same problem with digitalocean (using hazelcast instead of EHCache). But need to be confirmed. – Logemann Oct 09 '14 at 00:54
-
The answer is outdated, this is [now possible](https://aws.amazon.com/articles/overlay-multicast-in-amazon-virtual-private-cloud/). – gcandal Sep 02 '19 at 10:50
Dependent upon kernel configuration you might be able to overlay multicast on VPN connections manually wired up between each EC2 instance:
original version:
New version for 2014:
http://www.slideshare.net/CohesiveFT/cohesiveft-vns3-configuration-documentation-for-amazon-aws

- 12,678
- 2
- 41
- 60
Here is a presentation about how to use JGroups-based clustering (e.g. EHCache, and JBoss AS) on AWS:
You can configure JGroups to use TCP/IP and do discovery in many different ways.

- 3,499
- 1
- 26
- 29