Hi Jonas,

Are you trying the trunk or the 1.0 release?

The 1.0 release has issues with name resolution and with nodes with 
multiple network interfaces.
I recently made some changes to the trunk to try to fix these issues. You 
should use the trunk if you are still on the 1.0 release.

With trunk you can now specify -Dapgas.my.ip=x.x.x.x to specify the ip 
(hence the interface) hazelcast should bind.
Try specifying the ip of the master explicitly (using an ip that is 
reachable from the second node, definitely not 127.0.0.1).

BTW with trunk the master to connect to is now specified using 
-Dapgas.my.master=...
I now use "apagas.my.xyz" properties for per-jvm settings and "apgas.xyz" 
properties for shared properties.

Try running the master with -Dapgas.places=2 and look with ps for the 
command line used by the slave place.
Try running the same command line from the other node.

Are you sure there is no firewall interfering?
You can try to connect from the slave node to the master using "telnet 
ip_of_the_master 5701" once place 0 has started
and see whether a connection is established or not.

As I said, this code is in flux and has not been thoroughly tested yet...

One issue right now if you launch places by hand is that there is no way 
to tell the master to wait for additional place before starting to run 
main.
So you the master may quickly runs and terminates before the slaves 
connect to it.
This is not an issue with ResilientHelloWorld however because of the 
infinite loop.

Typically only place 0 invokes the application main.
In your example, place 1 should invoke java ... apgas.GlobalRuntime rather 
than java ... examples.ResilientHelloWorld.
Otherwise two copies of main will run in parallel.

Olivier



Jonas Posner <jonas.pos...@student.uni-kassel.de> wrote on 09/23/2015 
09:30:58 AM:

> From: Jonas Posner <jonas.pos...@student.uni-kassel.de>
> To: x10-users@lists.sourceforge.net
> Date: 09/23/2015 09:31 AM
> Subject: [X10-users] APGAS lib: Adding Places across different mashines
> 
> Hi all,
> 
> I'm playing around with the APGAS library for Java. I want to add 
> some places to a running application using the ip:port adress. I use
> for testing the ResilientWorld Class in examples. Local works it 
> fine with the commands:
> 1.application: java -cp .:../lib/hazelcast-3.4.jar -Dapgas.places=1 
> examples.ResilientHelloWorld
> 2.application: java -cp .:../lib/hazelcast-3.4.jar -Dapgas.places=1 
> -Dapgas.master=localhost examples.ResilientHelloWorld
> 
> The second application connects to the first and the output shows 
> two places as expected. Application two can crash and app one 
> catches a DeadPlaceException. Everything fine and as expected.
> 
> But now i want to start the applications at tow different machines. 
> Instead of "localhost" i wrote the ip of the first application. 
> Additionally I added the port :5701. But application two doesn't 
> connect. Both applications run alone. I also switched the port in 
> the Transport Class of APGAS, without  success. I don't know what to
> do now. What requirements must be met?
> 
> Thanks and many greetings
> Jonas Posner
> 
------------------------------------------------------------------------------
> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
> Get real-time metrics from all of your servers, apps and tools
> in one place.
> SourceForge users - Click here to start your Free Trial of Datadog now!
> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users


------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to