我试图运行mesos(没有zookeeper)使用monit来保持奴隶运行。
我使用以下脚本来启动和停止mesos从机:
开始-从.sh:
# !/bin/bash
nohup /home/someuser/mesos/build/bin/mesos-slave.sh
--master=192.168.0.241:5050
--strict=false
--log_dir=/home/someuser/mesos/logs < /dev/null &
sleep 1
pidof lt-mesos-slave > /home/someuser/run/mesos-slave.pid
停止-从.sh:
# !/bin/bash
cat /home/someuser/run/mesos-slave.pid | xargs kill -9
当我通过ssh启动脚本时,它们工作得很好。但是,当我通过monit使用从属寄存器时(我可以在联机界面上看到它们),但是当我尝试使用spark运行计算时,它失败了,因为大多数任务都丢失了。
监视器设置:
check process mesos-slave with pidfile /home/someuser/run/mesos-slave.pid
start program = "/home/someuser/run/start-mesos.sh"
as uid someuser
stop program = "/home/someuser/run/stop-mesos.sh"
as uid someuser
if failed port 5051 then restart
测井曲线:
I0925 14:06:21.461169 10633 slave.cpp:2413] Executor '20140924-160043-4043352256-5050-7966-0' of framework 20140925-140255-4043352256-5050-11608-0000 has terminated with signal Killed
E0925 14:06:21.461323 10639 slave.cpp:2686] Failed to unmonitor container for executor 20140924-160043-4043352256-5050-7966-0 of framework 20140925-140255-4043352256-5050-11608-0000: Not monitored
I0925 14:06:21.462224 10633 slave.cpp:2018] Handling status update TASK_LOST (UUID: 8258a34e-7831-4e5d-ba55-6df2b905b5ba) for task 0 of framework 20140925-140255-4043352256-5050-11608-0000 from @0.0.0.0:0
我在用吗 Monit
正确地?
暂无答案!
目前还没有任何答案,快来回答吧!