ansible - Mesos slave not seen from web ui -


i’m building ansible recipe deploy mesos/marathon cluster (https://github.com/gridpocket/ansible-mesos-cluster).

once setup, mesos , marathon ui have 2 problems:
- mesos ui cannot see slave registered
- same ui indicates "no master leading..."

the setup following one:
- 3 mesos master (192.168.1.191, 192, 193): each running mesos-master, zookeeper, marathon
- 3 mesos slaves (192.168.1.194, 195, 196): each running mesos-slave, docker

slaves configuration

in each slave:

/etc/mesos/zk:     zk://192.168.1.191:2181,192.168.1.192:2181,192.168.1.193:2181/mesos 

masters configuration

on each master:

/etc/mesos/zk:  zk://192.168.1.191:2181,192.168.1.192:2181,192.168.1.193:2181/mesos  /etc/mesos-master/quorum:       2  /etc/mesos-master/hostname , /etc/mesos-master/ip ip_of_the_master 

am missing in configuration ?

edit

i rebuilt whole cluster , corrected zookeeper configuration (datadir). now,
- mesos master interface working , indicates master node
- marathon ui working

on slave machine, mesos-slave process stops start it.

the mesos-slave log not verbose problem:

log file created at: 2015/07/09 15:51:15 running on machine: vagrant-ubuntu-trusty-64 log line format: [iwef]mmdd hh:mm:ss.uuuuuu threadid file:line] msg i0709 15:51:15.487542  8133 logging.cpp:172] info level logging started! i0709 15:51:15.488011  8133 main.cpp:156] build: 2015-05-05 06:15:50 root i0709 15:51:15.488081  8133 main.cpp:158] version: 0.22.1 i0709 15:51:15.488137  8133 main.cpp:161] git tag: 0.22.1 i0709 15:51:15.488190  8133 main.cpp:165] git sha: d6309f92a7f9af3ab61a878403e3d9c284ea87e0 

edit 2

when start slave manually, indicating zk string, slave starts correctly:

sudo /usr/sbin/mesos-slave --master=zk://192.168.1.191:2181,192.168.1.192:2181,192.168.1.193:2181/mesos 

but "sudo service mesos-slave start" not enable start slave.

edit 3

i've changed state "latest" "present" in ansible playbook:

- name: install mesos + zookeeper   apt: name=mesos state=present  - name: install marathon   apt: name=marathon state=present 

it fine now, slaves appears in activated state in mesos ui.

was due version problem ?

any of mesos command-line parameters can set files /etc/mesos-slave/master (for mesos-slave --master). how service startup finds mesos parameters.

you can use /etc/default/mesos-slave/ (or -master/) environment variables, or /etc/mesos/ general parameters.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -