Hi Damien,

To get things to work on EC2 you will probably need to set up a gossip server 
using JGroups.  Here's the general approach:

1.) Start an EC2 instance that will host the gossip server.    Install JGroups 
and start the gossip server as described in the JGroups documentation.

2.) Configure Sequoia JGroups communication to point each Sequoia controller to 
the gossip server.  I have appended a typical configuration for this.  You'll 
need to change HOST1, HOST2 to your gossip server host names.  For safety it's 
good to have a couple of them.

3.) Start the controllers and confirm they can connect to the group.

The tricky thing on EC2 is to ensure that your controllers know the IP address 
of the gossip server.  One approach to simplify things is to register that 
address through a dynamic DNS provider like www.dnsmadeeasy.com.   I have used 
this and it works pretty well.

Cheers, Robert


On 4/15/09 8:41 AM PDT, "Damien Hardy" <damien.ha...@laposte.net> wrote:

Hi Emmanuel,

many thanks for your help.
But have you some pointers on this kind of configuration ? (the UDP one is
already quite obscure for me :)

best regards

--
Damien


>
> Hi Damien,
>
> AFAIK, Amazon EC2 does not support UDP multicast. You will have to use a
> TCP configuration of JGroups for the GMS (group membership) to work.
>
> Hope this helps,
> Emmanuel
>> I am playing with Sequoia for a couple of days now and I reach to have a
>> complete chain working from php to 2 mysql databases working via
>> myosotis
>> and sequoia.
>>
>> Now 2nd round ... use 2 controllers.
>>
>> So I build a second VM with the same configuration of sequoia that my
>> first working one.
>>
>> it work again perfectly alone.
>>
>> No I try to make theme communicate as peer controllers.
>>
>> I add the
>> "<Distribution>
>>         <MessageTimeouts/>
>>     </Distribution>"
>> section in my virtualdatabase configuration file.
>> I rename the config/sequencer.xml and modify the
>> hedera_jgroups.properties
>> in consequences (in order to avoid the use of the sequencer.xml present
>> in
>> the jgroups jar file).
>>
>> the controllers start without problem. But ...
>>
>> The can't see them each other so on the 2 controllers I obtain :
>> myDB(admin) > show controllers
>> 14:34:58,423 INFO  controller.virtualdatabase.myDB
>> Member(address=/10.x.x.x:32781, uid=myDB) see
>> members:[Member(address=/10.x.x.x:32781, uid=myDB)] and has
>> mapping:{Member(address=/10.x.x.x:32781, uid=myDB)=10.x.x.x:1090}
>> myDB is hosted by 1 controller(s):
>>      10.226.71.175:1090
>>
>>
>> How does they discover themselves ? can I precise it ?
>>
>> I precise that I use 3 Amazon EC2 instances (virtual machines) for my
>> tests : 2 for db/controllers and 1 front (php)
>> So there are not on the same LAN I suppose.
>>
>> Thanks for your help in advance
>>
>> Best regards,
>>
>>


_______________________________________________
Sequoia mailing list
Sequoia@lists.forge.continuent.org
http://forge.continuent.org/mailman/listinfo/sequoia


--
Robert Hodges, CTO, Continuent, Inc.
Email:  robert.hod...@continuent.com
Mobile:  +1-510-501-3728  Skype:  hodgesrm

Attachment: jgroups_tcp_gossip.xml
Description: jgroups_tcp_gossip.xml

_______________________________________________
Sequoia mailing list
Sequoia@lists.forge.continuent.org
http://forge.continuent.org/mailman/listinfo/sequoia

Reply via email to