mesos从属服务器在mesos主web用户界面中周期性地波动

eufgjt7s  于 2021-06-21  发布在  Mesos
关注(0)|答案(1)|浏览(308)

我在linux mint环境中安装了1个mesos主机和3个mesos从机。现在,当我运行所有的主人和奴隶,我可以看到在mesos主人,每一个奴隶定期出现在及时的方式。我无法看到所有3个奴隶出现在Mesos用户界面页面。
我的问题是,这是正常的还是我应该能够看到所有三个奴隶在一起?我已经从apachemesos站点下载了mesos表单,并手动创建了mesos主服务器和从服务器。
编辑:
这是我的master/state.json细节:

{"activated_slaves":0,"build_date":"2015-08-12 18:18:29","build_time":1439417909,"build_user":"root","completed_frameworks":[],"deactivated_slaves":1,"elected_time":1439426147.74133,"flags":{"allocation_interval":"1secs","allocator":"HierarchicalDRF","authenticate":"false","authenticate_slaves":"false","authenticators":"crammd5","framework_sorter":"drf","help":"false","initialize_driver_logging":"true","ip":"ip address","log_auto_initialize":"true","logbufsecs":"0","logging_level":"INFO","max_slave_ping_timeouts":"5","port":"5050","quiet":"false","recovery_slave_removal_limit":"100%","registry":"replicated_log","registry_fetch_timeout":"1mins","registry_store_timeout":"5secs","registry_strict":"false","root_submissions":"true","slave_ping_timeout":"15secs","slave_reregister_timeout":"10mins","user_sorter":"drf","version":"false","webui_dir":"\/mesos-0.23.0\/build\/..\/src\/webui","work_dir":"\/var\/lib\/mesos","zk_session_timeout":"10secs"},"frameworks":[],"hostname":"school_name.ip.in-addr.arpa","id":"20150812-203547-1316479616-5050-10790","leader":"master@ip:5050","orphan_tasks":[],"pid":"master@ip:5050","slaves":[{"active":false,"attributes":{},"hostname":"name","id":"20150812-203547-1316479616-5050-10790-S4930","offered_resources":{"cpus":0,"disk":0,"mem":0},"pid":"slave(1)@127.0.1.1:5051","registered_time":1439475605.91917,"reserved_resources":{},"resources":{"cpus":8,"disk":901526,"mem":31022,"ports":"[31000-32000]"},"unreserved_resources":{"cpus":8,"disk":901526,"mem":31022,"ports":"[31000-32000]"},"used_resources":{"cpus":0,"disk":0,"mem":0}}],"start_time":1439426147.73525,"unregistered_frameworks":[],"version":"0.23.0"}

这里有一些细节可以帮助你们理解安装:我已经从apache站点下载了meses,并在本地构建和运行它们

./bin/mesos-master.sh --ip=128.226.119.78 --work_dir=/var/lib/mesos

从奴隶那里,我把米索斯奴隶当作奴隶

./bin/mesos-slave.sh --master=128.226.119.78:5050

我对三个奴隶都做了同样的事。
这里有两个控制台输出,我可以看到从机中不断出现。

Querying resource estimator for oversubscribable resources
I0813 10:29:18.962781  9900 slave.cpp:4193] Received oversubscribable resources  from the resource estimator
3phpmpom

3phpmpom1#

从master state.json。我发现你需要在启动slave时设置一个ip。

slaves:
   [ { active: false,
       attributes: {},
       hostname: 'gladiator',
       id: '20150812-203547-1316479616-5050-10790-S4930',
       offered_resources: [Object],
       pid: 'slave(1)@127.0.1.1:5051',
       registered_time: 1439475605.91917,
       reserved_resources: {},
       resources: [Object],
       unreserved_resources: [Object],
       used_resources: [Object] } ],

从机启动并侦听127.0.0.1,因此主机无法正确连接它。你可以试试

./bin/mesos-slave.sh --master=128.226.119.78:5050 --ip=your_slave_ip_which_could_connect_from_master:5051

相关问题