distributed-process icon indicating copy to clipboard operation
distributed-process copied to clipboard

simplelocalnet: how to use on master with several interfaces?

Open jwaldmann opened this issue 12 years ago • 4 comments

(I'm sorry for this being not exactly Haskell)

I wan to run C.H. on a cluster where the main node has several network interfaces:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.6.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.5.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
141.X.X.0      0.0.0.0         255.255.252.0   U     0      0        0 eth2
0.0.0.0         141.X.X.X   0.0.0.0         UG    0      0        0 eth2

client nodes have two interfaces in the local network (192.168.5/6.X) only

I can run C.H. processes on several of the client nodes, but I don't seem to be able to use the main node. Are the broadcasts going to the wrong places?

jwaldmann avatar Dec 18 '12 21:12 jwaldmann

It's possible your os isn't configured to multicast to the interface you're trying to use. What does netstat -nr look like?

hyperthunk avatar Dec 23 '12 11:12 hyperthunk

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.6.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.5.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
141.X.X.0       0.0.0.0         255.255.252.0   U         0 0          0 eth2
0.0.0.0       141.X.X.X         0.0.0.0         UG        0 0          0 eth2

jwaldmann avatar Dec 27 '12 19:12 jwaldmann

So I don't see a multicast range IP address in the routing table there. You need to add the route so that all the servers know about the group, something like route -nv add -net 228.0.0.4 -interface eth0 or whatever your flavour of *nix requires. I'd suggest using something like emcast or mnc to test that the machines are happily communicating in the first instance. Or just ip igmp join-group <ip-addr> and ping from another location or whatever.

hyperthunk avatar Dec 28 '12 02:12 hyperthunk

Did you have any joy with this @jwaldmann?

hyperthunk avatar Jan 04 '13 15:01 hyperthunk