Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mesos scheduler/slave continuously gets disconnected

Tags:

mesos

When the Mesos scheduler (or slave) is on a different machine than the Mesos master, it keeps trying to connect to the master but gets disconnected. This cycle repeats continuously. How to fix this problem?

like image 280
vinodkone Avatar asked Jul 03 '14 17:07

vinodkone


2 Answers

Both the framework (and slaves) and master need to be able to talk to each other. IOW, if one of the end points uses a private IP (e.g., 127.0.0.1) then it wouldn't work. If you want the master/slave to use a public ip you can use --ip flag. For the framework, you can set LIBPROCESS_IP in the environment.

like image 91
vinodkone Avatar answered Jan 01 '23 11:01

vinodkone


we need a bit more information to go on - it sounds like you aren't advertising the slave on an IP the master can get to.

As mentioned above, a slave will happily advertise it's IP address as 127.0.0.1/localhost which obviously isn't reachable from the master unless they're on the same server. This should show up in the master and slave logs, so check those.

firewalls can also be an issue, so try after disabling those to rule them out.

like image 33
Rasputnik Avatar answered Jan 01 '23 13:01

Rasputnik