mesos webui只显示最近连接的从设备

sycxhyv7  于 2021-06-21  发布在  Mesos
关注(0)|答案(2)|浏览(382)

我正在建立一个Mesos星团来演示。我的设置是一主两从。所有的机器都运行ubuntu14.04 lts并且在同一个本地网络上。我开始mesos硕士与命令根据文件。

  1. ./mesos-master.sh --ip=192.168.65.27 --work_dir=/var/lib/mesos

我可以启动并连接在另一台机器上运行的从机到主机

  1. ./mesos-slave.sh --master=192.168.65.27:5050

但是,每当我尝试将一个或多个从机连接到同一个主机时,只有最近连接的从机才会列在mesos的webui下 http://192.168.65.24:5050/#/slaves . 我检查了终端输出。对于一个奴隶来说,情况如下。

  1. I0107 11:31:39.346242 6742 slave.cpp:3053] Current usage 5.71%. Max allowed age:
  2. 5.900004310159479days
  3. I0107 11:32:39.349727 6744 slave.cpp:3053] Current usage 5.71%. Max allowed age:
  4. 5.900000961729503days
  5. I0107 11:33:39.355268 6740 slave.cpp:3053] Current usage 5.71%. Max allowed age:
  6. 5.900000256796875days
  7. I0107 11:34:39.355785 6744 slave.cpp:3053] Current usage 5.71%. Max allowed age:
  8. 5.900000080563727days
  9. I0107 11:35:39.376319 6742 slave.cpp:3053] Current usage 5.71%. Max allowed age:
  10. 5.900009538409780days

另一种情况如下所示

  1. I0106 11:34:34.815814 6238 slave.cpp:3053] Current usage 40.74%. Max allowed age:
  2. 3.448325928286030days
  3. I0106 11:35:34.816684 6238 slave.cpp:3053] Current usage 40.74%. Max allowed age:
  4. 3.448326110500035days
  5. I0106 11:36:34.821465 6244 slave.cpp:3053] Current usage 40.74%. Max allowed age:
  6. 3.448323923931886days
  7. I0106 11:37:34.822031 6243 slave.cpp:3053] Current usage 40.74%. Max allowed age:
  8. 3.448324106145903days
  9. I0106 11:38:34.846472 6243 slave.cpp:3053] Current usage 40.74%. Max allowed age:
  10. 3.448324835001956days
  11. I0106 11:39:34.889264 6243 slave.cpp:3053] Current usage 40.74%. Max allowed age:
  12. 3.448322101791771days

mesos主机的终端输出如下所示

  1. I0107 15:12:28.482170 6412 master.cpp:2781] Removing old disconnected slave 20150107-
  2. 150547-406956224-5050-6393-31 at slave(1)@127.0.1.1:5051 (mesos_slave2-ThinkCentre-
  3. Edge72) because a registration attempt is being made from slave(1)@127.0.1.1:5051
  4. I0107 15:12:28.482221 6412 master.cpp:4218] Removing slave 20150107-150547-406956224-
  5. 5050-6393-31 at slave(1)@127.0.1.1:5051 (mesos_slave2-ThinkCentre-Edge72)
  6. I0107 15:12:28.482307 6414 hierarchical_allocator_process.hpp:467] Removed slave
  7. 20150107-150547-406956224-5050-6393-31
  8. I0107 15:12:28.482364 6412 master.cpp:2811] Registering slave at slave(1)@127.0.1.1:5051
  9. (mesos_slave1-ThinkCentre-Edge72) with id 20150107-150547-406956224-5050-6393-32
  10. I0107 15:12:28.482379 6414 registrar.cpp:422] Attempting to update the 'registry'
  11. I0107 15:12:28.483706 6413 log.cpp:680] Attempting to append 344 bytes to the log
  12. I0107 15:12:28.483772 6413 coordinator.cpp:340] Coordinator attempting to write APPEND
  13. action at position 847
  14. I0107 15:12:28.484074 6413 replica.cpp:508] Replica received write request for position
  15. 847
  16. I0107 15:12:28.537632 6413 leveldb.cpp:343] Persisting action (364 bytes) to leveldb
  17. took 53.520241ms
  18. I0107 15:12:28.537683 6413 replica.cpp:676] Persisted action at 847
  19. I0107 15:12:28.537832 6413 replica.cpp:655] Replica received learned notice for position
  20. 847
  21. I0107 15:12:28.579407 6413 leveldb.cpp:343] Persisting action (366 bytes) to leveldb
  22. took 41.551104ms
  23. I0107 15:12:28.579454 6413 replica.cpp:676] Persisted action at 847
  24. I0107 15:12:28.579471 6413 replica.cpp:661] Replica learned APPEND action at position
  25. 847
  26. I0107 15:12:28.579779 6413 registrar.cpp:479] Successfully updated 'registry'
  27. I0107 15:12:28.579825 6409 log.cpp:699] Attempting to truncate the log to 847
  28. I0107 15:12:28.579876 6413 registrar.cpp:422] Attempting to update the 'registry'
  29. I0107 15:12:28.579929 6414 master.cpp:4321] Removed slave 20150107-150547-406956224-
  30. 5050-6393-31 (mesos_slave2-ThinkCentre-Edge72)
  31. I0107 15:12:28.580001 6412 coordinator.cpp:340] Coordinator attempting to write TRUNCATE
  32. action at position 848
  33. I0107 15:12:28.580216 6412 replica.cpp:508] Replica received write request for position
  34. 848
  35. I0107 15:12:28.621160 6412 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took
  36. 40.912992ms
  37. I0107 15:12:28.621215 6412 replica.cpp:676] Persisted action at 848
  38. I0107 15:12:28.621426 6413 replica.cpp:655] Replica received learned notice for position
  39. 848
  40. I0107 15:12:28.662858 6413 leveldb.cpp:343] Persisting action (20 bytes) to leveldb took
  41. 41.418688ms
  42. I0107 15:12:28.662943 6413 leveldb.cpp:401] Deleting ~2 keys from leveldb took 32165ns
  43. I0107 15:12:28.662963 6413 replica.cpp:676] Persisted action at 848
  44. I0107 15:12:28.662976 6413 replica.cpp:661] Replica learned TRUNCATE action at position
  45. 848
  46. I0107 15:12:28.663244 6409 log.cpp:680] Attempting to append 550 bytes to the log
  47. I0107 15:12:28.663331 6408 coordinator.cpp:340] Coordinator attempting to write APPEND
  48. action at position 849
  49. I0107 15:12:28.663539 6409 replica.cpp:508] Replica received write request for position
  50. 849
  51. I0107 15:12:28.704601 6409 leveldb.cpp:343] Persisting action (570 bytes) to leveldb
  52. took 41.040042ms
  53. I0107 15:12:28.704654 6409 replica.cpp:676] Persisted action at 849
  54. I0107 15:12:28.704839 6410 replica.cpp:655] Replica received learned notice for position
  55. 849
  56. I0107 15:12:28.746300 6410 leveldb.cpp:343] Persisting action (572 bytes) to leveldb
  57. took 41.427841ms
  58. I0107 15:12:28.746354 6410 replica.cpp:676] Persisted action at 849
  59. I0107 15:12:28.746371 6410 replica.cpp:661] Replica learned APPEND action at position
  60. 849
  61. I0107 15:12:28.746661 6410 registrar.cpp:479] Successfully updated 'registry'
  62. I0107 15:12:28.746722 6414 log.cpp:699] Attempting to truncate the log to 849
  63. I0107 15:12:28.746759 6409 master.cpp:2851] Registered slave 20150107-150547-406956224-
  64. 5050-6393-32 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72)
  65. I0107 15:12:28.746775 6410 coordinator.cpp:340] Coordinator attempting to write TRUNCATE
  66. action at position 850
  67. I0107 15:12:28.746789 6409 master.cpp:4085] Adding slave 20150107-150547-406956224-5050-
  68. 6393-32 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72) with cpus(*):4;
  69. mem(*):6785; disk(*):144943; ports(*):[31000-32000]
  70. I0107 15:12:28.746940 6407 replica.cpp:508] Replica received write request for position
  71. 850
  72. I0107 15:12:28.746958 6409 master.cpp:775] Slave 20150107-150547-406956224-5050-6393-32
  73. at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72) disconnected
  74. I0107 15:12:28.746968 6409 master.cpp:1680] Disconnecting slave 20150107-150547-
  75. 406956224-5050-6393-32
  76. I0107 15:12:28.746999 6409 hierarchical_allocator_process.hpp:442] Added slave 20150107-
  77. 150547-406956224-5050-6393-32 (mesos_slave1-ThinkCentre-Edge72) with cpus(*):4;
  78. mem(*):6785; disk(*):144943; ports(*):[31000-32000] (and cpus(*):4; mem(*):6785;
  79. disk(*):144943; ports(*):[31000-32000] available)
  80. I0107 15:12:28.747051 6409 hierarchical_allocator_process.hpp:481] Slave 20150107-
  81. 150547-406956224-5050-6393-32 deactivated
  82. I0107 15:12:28.788100 6407 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took
  83. 41.139421ms
  84. I0107 15:12:28.788164 6407 replica.cpp:676] Persisted action at 850
  85. I0107 15:12:28.788331 6411 replica.cpp:655] Replica received learned notice for position
  86. 850
  87. I0107 15:12:28.829857 6411 leveldb.cpp:343] Persisting action (20 bytes) to leveldb took
  88. 41.48648ms
  89. I0107 15:12:28.829910 6411 leveldb.cpp:401] Deleting ~2 keys from leveldb took 23122ns
  90. I0107 15:12:28.829924 6411 replica.cpp:676] Persisted action at 850
  91. I0107 15:12:28.829936 6411 replica.cpp:661] Replica learned TRUNCATE action at position
  92. 850
  93. I0107 15:12:29.070030 6412 master.cpp:2781] Removing old disconnected slave 20150107-
  94. 150547-406956224-5050-6393-32 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-
  95. Edge72) because a registration attempt is being made from slave(1)@127.0.1.1:5051
  96. I0107 15:12:29.070081 6412 master.cpp:4218] Removing slave 20150107-150547-406956224-
  97. 5050-6393-32 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72)
  98. I0107 15:12:29.070184 6407 hierarchical_allocator_process.hpp:467] Removed slave
  99. 20150107-150547-406956224-5050-6393-32
  100. I0107 15:12:29.070305 6412 master.cpp:2811] Registering slave at slave(1)@127.0.1.1:5051
  101. (mesos_slave1-ThinkCentre-Edge72) with id 20150107-150547-406956224-5050-6393-33
  102. I0107 15:12:29.070363 6411 registrar.cpp:422] Attempting to update the 'registry'
  103. I0107 15:12:29.071686 6412 log.cpp:680] Attempting to append 344 bytes to the log
  104. I0107 15:12:29.071750 6414 coordinator.cpp:340] Coordinator attempting to write APPEND
  105. action at position 851
  106. I0107 15:12:29.072064 6408 replica.cpp:508] Replica received write request for position
  107. 851
  108. I0107 15:12:29.104596 6408 leveldb.cpp:343] Persisting action (364 bytes) to leveldb
  109. took 32.50025ms
  110. I0107 15:12:29.104645 6408 replica.cpp:676] Persisted action at 851
  111. I0107 15:12:29.104837 6409 replica.cpp:655] Replica received learned notice for position
  112. 851
  113. I0107 15:12:29.146327 6409 leveldb.cpp:343] Persisting action (366 bytes) to leveldb
  114. took 41.451476ms
  115. I0107 15:12:29.146374 6409 replica.cpp:676] Persisted action at 851
  116. I0107 15:12:29.146390 6409 replica.cpp:661] Replica learned APPEND action at position
  117. 851
  118. I0107 15:12:29.146685 6409 registrar.cpp:479] Successfully updated 'registry'
  119. I0107 15:12:29.146765 6412 log.cpp:699] Attempting to truncate the log to 851
  120. I0107 15:12:29.146781 6409 registrar.cpp:422] Attempting to update the 'registry'
  121. I0107 15:12:29.146823 6407 master.cpp:4321] Removed slave 20150107-150547-406956224-
  122. 5050-6393-32 (mesos_slave1-ThinkCentre-Edge72)
  123. I0107 15:12:29.146837 6411 coordinator.cpp:340] Coordinator attempting to write TRUNCATE
  124. action at position 852
  125. I0107 15:12:29.147100 6414 replica.cpp:508] Replica received write request for position
  126. 852
  127. I0107 15:12:29.188091 6414 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took
  128. 40.960719ms
  129. I0107 15:12:29.188145 6414 replica.cpp:676] Persisted action at 852
  130. I0107 15:12:29.188280 6414 replica.cpp:655] Replica received learned notice for position
  131. 852
  132. I0107 15:12:29.229823 6414 leveldb.cpp:343] Persisting action (20 bytes) to leveldb took
  133. 41.531512ms
  134. I0107 15:12:29.229907 6414 leveldb.cpp:401] Deleting ~2 keys from leveldb took 30444ns
  135. I0107 15:12:29.229926 6414 replica.cpp:676] Persisted action at 852
  136. I0107 15:12:29.229939 6414 replica.cpp:661] Replica learned TRUNCATE action at position
  137. 852
  138. I0107 15:12:29.230134 6410 log.cpp:680] Attempting to append 550 bytes to the log
  139. I0107 15:12:29.230185 6410 coordinator.cpp:340] Coordinator attempting to write APPEND
  140. action at position 853
  141. I0107 15:12:29.230376 6411 replica.cpp:508] Replica received write request for position
  142. 853
  143. I0107 15:12:29.271564 6411 leveldb.cpp:343] Persisting action (570 bytes) to leveldb
  144. took 41.128758ms
  145. I0107 15:12:29.271617 6411 replica.cpp:676] Persisted action at 853
  146. I0107 15:12:29.271826 6411 replica.cpp:655] Replica received learned notice for position
  147. 853
  148. I0107 15:12:29.313411 6411 leveldb.cpp:343] Persisting action (572 bytes) to leveldb
  149. took 41.551225ms
  150. I0107 15:12:29.313457 6411 replica.cpp:676] Persisted action at 853
  151. I0107 15:12:29.313473 6411 replica.cpp:661] Replica learned APPEND action at position
  152. 853
  153. I0107 15:12:29.313753 6410 registrar.cpp:479] Successfully updated 'registry'
  154. I0107 15:12:29.313794 6409 log.cpp:699] Attempting to truncate the log to 853
  155. I0107 15:12:29.313823 6413 master.cpp:2851] Registered slave 20150107-150547-406956224-
  156. 5050-6393-33 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72)
  157. I0107 15:12:29.313843 6413 master.cpp:4085] Adding slave 20150107-150547-406956224-5050-
  158. 6393-33 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72) with cpus(*):4;
  159. mem(*):6785; disk(*):144943; ports(*):[31000-32000]
  160. I0107 15:12:29.313854 6410 coordinator.cpp:340] Coordinator attempting to write TRUNCATE
  161. action at position 854
  162. I0107 15:12:29.314043 6409 replica.cpp:508] Replica received write request for position
  163. 854
  164. I0107 15:12:29.314091 6413 master.cpp:775] Slave 20150107-150547-406956224-5050-6393-33
  165. at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72) disconnected
  166. I0107 15:12:29.314115 6413 master.cpp:1680] Disconnecting slave 20150107-150547-
  167. 406956224-5050-6393-33
  168. I0107 15:12:29.314128 6410 hierarchical_allocator_process.hpp:442] Added slave 20150107-
  169. 150547-406956224-5050-6393-33 (mesos_slave1-ThinkCentre-Edge72) with cpus(*):4;
  170. mem(*):6785; disk(*):144943; ports(*):[31000-32000] (and cpus(*):4; mem(*):6785;
  171. disk(*):144943; ports(*):[31000-32000] available)
  172. I0107 15:12:29.314184 6410 hierarchical_allocator_process.hpp:481] Slave 20150107-
  173. 150547-406956224-5050-6393-33 deactivated
  174. I0107 15:12:29.355125 6409 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took
  175. 41.039775ms
  176. I0107 15:12:29.355178 6409 replica.cpp:676] Persisted action at 854
  177. I0107 15:12:29.355316 6409 replica.cpp:655] Replica received learned notice for position
  178. 854
  179. I0107 15:12:29.396852 6409 leveldb.cpp:343] Persisting action (20 bytes) to leveldb took
  180. 41.50737ms
  181. I0107 15:12:29.396934 6409 leveldb.cpp:401] Deleting ~2 keys from leveldb took 30887ns
  182. I0107 15:12:29.396955 6409 replica.cpp:676] Persisted action at 854
  183. I0107 15:12:29.396967 6409 replica.cpp:661] Replica learned TRUNCATE action at position
  184. 854
  185. I0107 15:12:29.529793 6407 master.cpp:2781] Removing old disconnected slave 20150107-
  186. 150547-406956224-5050-6393-33 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-
  187. Edge72) because a registration attempt is being made from slave(1)@127.0.1.1:5051
  188. I0107 15:12:29.529831 6407 master.cpp:4218] Removing slave 20150107-150547-406956224-
  189. 5050-6393-33 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72)
  190. I0107 15:12:29.529917 6414 hierarchical_allocator_process.hpp:467] Removed slave
  191. 20150107-150547-406956224-5050-6393-33
  192. I0107 15:12:29.529963 6407 master.cpp:2811] Registering slave at slave(1)@127.0.1.1:5051
  193. (mesos_slave1-ThinkCentre-Edge72) with id 20150107-150547-406956224-5050-6393-34
  194. I0107 15:12:29.529988 6412 registrar.cpp:422] Attempting to update the 'registry'
  195. I0107 15:12:29.531298 6410 log.cpp:680] Attempting to append 344 bytes to the log
  196. I0107 15:12:29.531371 6410 coordinator.cpp:340] Coordinator attempting to write APPEND
  197. action at position 855
  198. I0107 15:12:29.531597 6411 replica.cpp:508] Replica received write request for position
  199. 855
  200. I0107 15:12:29.571789 6411 leveldb.cpp:343] Persisting action (364 bytes) to leveldb
  201. took 40.154081ms
  202. I0107 15:12:29.571836 6411 replica.cpp:676] Persisted action at 855
  203. I0107 15:12:29.572059 6412 replica.cpp:655] Replica received learned notice for position
  204. 855
  205. I0107 15:12:29.613510 6412 leveldb.cpp:343] Persisting action (366 bytes) to leveldb
  206. took 41.426794ms
  207. I0107 15:12:29.613565 6412 replica.cpp:676] Persisted action at 855
  208. I0107 15:12:29.613584 6412 replica.cpp:661] Replica learned APPEND action at position
  209. 855
  210. I0107 15:12:29.613906 6414 registrar.cpp:479] Successfully updated 'registry'
  211. I0107 15:12:29.613915 6412 log.cpp:699] Attempting to truncate the log to 855
  212. I0107 15:12:29.613998 6407 coordinator.cpp:340] Coordinator attempting to write TRUNCATE
  213. action at position 856
  214. I0107 15:12:29.614168 6407 replica.cpp:508] Replica received write request for position
  215. 856
  216. I0107 15:12:29.613999 6414 registrar.cpp:422] Attempting to update the 'registry'
  217. I0107 15:12:29.614001 6412 master.cpp:4321] Removed slave 20150107-150547-406956224-
  218. 5050-6393-33 (mesos_slave1-ThinkCentre-Edge72)
  219. I0107 15:12:29.655239 6407 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took
  220. 41.046542ms
  221. I0107 15:12:29.655294 6407 replica.cpp:676] Persisted action at 856
  222. I0107 15:12:29.655437 6407 replica.cpp:655] Replica received learned notice for position
  223. 856
  224. I0107 15:12:29.696975 6407 leveldb.cpp:343] Persisting action (20 bytes) to leveldb took
  225. 41.51733ms
  226. I0107 15:12:29.697057 6407 leveldb.cpp:401] Deleting ~2 keys from leveldb took 30767ns
  227. I0107 15:12:29.697078 6407 replica.cpp:676] Persisted action at 856
  228. I0107 15:12:29.697090 6407 replica.cpp:661] Replica learned TRUNCATE action at position
  229. 856
  230. I0107 15:12:29.697302 6414 log.cpp:680] Attempting to append 550 bytes to the log
  231. I0107 15:12:29.697357 6412 coordinator.cpp:340] Coordinator attempting to write APPEND
  232. action at position 857
  233. I0107 15:12:29.697630 6409 replica.cpp:508] Replica received write request for position
  234. 857
  235. I0107 15:12:29.738620 6409 leveldb.cpp:343] Persisting action (570 bytes) to leveldb
  236. took 40.971859ms
  237. I0107 15:12:29.738662 6409 replica.cpp:676] Persisted action at 857
  238. I0107 15:12:29.738785 6409 replica.cpp:655] Replica received learned notice for position
  239. 857
  240. I0107 15:12:29.780450 6409 leveldb.cpp:343] Persisting action (572 bytes) to leveldb
  241. took 41.637468ms
  242. I0107 15:12:29.780506 6409 replica.cpp:676] Persisted action at 857
  243. I0107 15:12:29.780524 6409 replica.cpp:661] Replica learned APPEND action at position
  244. 857
  245. I0107 15:12:29.780766 6409 registrar.cpp:479] Successfully updated 'registry'
  246. I0107 15:12:29.780788 6410 log.cpp:699] Attempting to truncate the log to 857
  247. I0107 15:12:29.780823 6413 coordinator.cpp:340] Coordinator attempting to write TRUNCATE
  248. action at position 858
  249. I0107 15:12:29.780838 6412 master.cpp:2851] Registered slave 20150107-150547-406956224-
  250. 5050-6393-34 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72)
  251. I0107 15:12:29.780858 6412 master.cpp:4085] Adding slave 20150107-150547-406956224-5050-
  252. 6393-34 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72) with cpus(*):4;
  253. mem(*):6785; disk(*):144943; ports(*):[31000-32000]
  254. I0107 15:12:29.780977 6410 replica.cpp:508] Replica received write request for position
  255. 858
  256. I0107 15:12:29.780987 6412 master.cpp:775] Slave 20150107-150547-406956224-5050-6393-34
  257. at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72) disconnected
  258. I0107 15:12:29.780997 6412 master.cpp:1680] Disconnecting slave 20150107-150547-
  259. 406956224-5050-6393-34
  260. I0107 15:12:29.781045 6414 hierarchical_allocator_process.hpp:442] Added slave 20150107-
  261. 150547-406956224-5050-6393-34 (mesos_slave1-ThinkCentre-Edge72) with cpus(*):4;
  262. mem(*):6785; disk(*):144943; ports(*):[31000-32000] (and cpus(*):4; mem(*):6785;
  263. disk(*):144943; ports(*):[31000-32000] available)
  264. I0107 15:12:29.781128 6414 hierarchical_allocator_process.hpp:481] Slave 20150107-
  265. 150547-406956224-5050-6393-34 deactivated
  266. I0107 15:12:29.822186 6410 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took
  267. 41.194886ms
  268. I0107 15:12:29.822240 6410 replica.cpp:676] Persisted action at 858
  269. I0107 15:12:29.822494 6407 replica.cpp:655] Replica received learned notice for position
  270. 858
  271. I0107 15:12:29.863934 6407 leveldb.cpp:343] Persisting action (20 bytes) to leveldb took
  272. 41.397501ms
  273. I0107 15:12:29.863970 6407 leveldb.cpp:401] Deleting ~2 keys from leveldb took 14397ns
  274. I0107 15:12:29.863980 6407 replica.cpp:676] Persisted action at 858
  275. I0107 15:12:29.863987 6407 replica.cpp:661] Replica learned TRUNCATE action at position
  276. 858
  277. I0107 15:12:30.644934 6413 http.cpp:466] HTTP request for '/master/state.json'
  278. I0107 15:12:36.460794 6408 master.cpp:2781] Removing old disconnected slave 20150107-
  279. 150547-406956224-5050-6393-34 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-
  280. Edge72) because a registration attempt is being made from slave(1)@127.0.1.1:5051
  281. I0107 15:12:36.460850 6408 master.cpp:4218] Removing slave 20150107-150547-406956224-
  282. 5050-6393-34 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72)
  283. I0107 15:12:36.460953 6407 hierarchical_allocator_process.hpp:467] Removed slave
  284. 20150107- 150547-406956224-5050-6393-34
  285. I0107 15:12:36.461001 6408 master.cpp:2811] Registering slave at slave(1)@127.0.1.1:5051
  286. (mesos_slave1-ThinkCentre-Edge72) with id 20150107-150547-406956224-5050-6393-35
  287. I0107 15:12:36.461027 6407 registrar.cpp:422] Attempting to update the 'registry'
  288. I0107 15:12:36.461735 6409 log.cpp:680] Attempting to append 344 bytes to the log
  289. I0107 15:12:36.461803 6408 coordinator.cpp:340] Coordinator attempting to write APPEND
  290. action at position 859
  291. I0107 15:12:36.462061 6414 replica.cpp:508] Replica received write request for position
  292. 859
  293. I0107 15:12:36.479645 6414 leveldb.cpp:343] Persisting action (364 bytes) to leveldb
  294. took 17.545233ms
  295. I0107 15:12:36.479693 6414 replica.cpp:676] Persisted action at 859
  296. I0107 15:12:36.479923 6414 replica.cpp:655] Replica received learned notice for position
  297. 859
  298. I0107 15:12:36.515755 6414 leveldb.cpp:343] Persisting action (366 bytes) to leveldb
  299. took 35.807609ms
  300. I0107 15:12:36.515801 6414 replica.cpp:676] Persisted action at 859
  301. I0107 15:12:36.515818 6414 replica.cpp:661] Replica learned APPEND action at position
  302. 859
  303. I0107 15:12:36.516130 6414 registrar.cpp:479] Successfully updated 'registry'
  304. I0107 15:12:36.516180 6407 log.cpp:699] Attempting to truncate the log to 859
  305. I0107 15:12:36.516222 6414 registrar.cpp:422] Attempting to update the 'registry'
  306. I0107 15:12:36.516242 6407 coordinator.cpp:340] Coordinator attempting to write TRUNCATE
  307. action at position 860
  308. I0107 15:12:36.516243 6410 master.cpp:4321] Removed slave 20150107-150547-406956224-
  309. 5050-6393-34 (mesos_slave1-ThinkCentre-Edge72)
  310. I0107 15:12:36.516499 6411 replica.cpp:508] Replica received write request for position
  311. 860
  312. I0107 15:12:36.557504 6411 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took
  313. 40.974358ms
  314. I0107 15:12:36.557559 6411 replica.cpp:676] Persisted action at 860
  315. I0107 15:12:36.557689 6412 replica.cpp:655] Replica received learned notice for position
  316. 860
  317. I0107 15:12:36.599247 6412 leveldb.cpp:343] Persisting action (20 bytes) to leveldb took
  318. 41.522371ms
  319. I0107 15:12:36.599334 6412 leveldb.cpp:401] Deleting ~2 keys from leveldb took 32551ns
  320. I0107 15:12:36.599354 6412 replica.cpp:676] Persisted action at 860
  321. I0107 15:12:36.599367 6412 replica.cpp:661] Replica learned TRUNCATE action at position
  322. 860
  323. I0107 15:12:36.599599 6409 log.cpp:680] Attempting to append 550 bytes to the log
  324. I0107 15:12:36.599660 6409 coordinator.cpp:340] Coordinator attempting to write APPEND
  325. action at position 861
  326. I0107 15:12:36.599859 6409 replica.cpp:508] Replica received write request for position
  327. 861
  328. I0107 15:12:36.641084 6409 leveldb.cpp:343] Persisting action (570 bytes) to leveldb
  329. took 41.195477ms
  330. I0107 15:12:36.641137 6409 replica.cpp:676] Persisted action at 861
  331. I0107 15:12:36.641297 6409 replica.cpp:655] Replica received learned notice for position
  332. 861
  333. I0107 15:12:36.682837 6409 leveldb.cpp:343] Persisting action (572 bytes) to leveldb
  334. took 41.528099ms
  335. I0107 15:12:36.682858 6409 replica.cpp:676] Persisted action at 861
  336. I0107 15:12:36.682868 6409 replica.cpp:661] Replica learned APPEND action at position
  337. 861
  338. I0107 15:12:36.683104 6409 registrar.cpp:479] Successfully updated 'registry'
  339. I0107 15:12:36.683161 6410 log.cpp:699] Attempting to truncate the log to 861
  340. I0107 15:12:36.683189 6410 coordinator.cpp:340] Coordinator attempting to write TRUNCATE
  341. action at position 862
  342. I0107 15:12:36.683195 6414 master.cpp:2851] Registered slave 20150107-150547-406956224-
  343. 5050-6393-35 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72)
  344. I0107 15:12:36.683213 6414 master.cpp:4085] Adding slave 20150107-150547-406956224-5050-
  345. 6393-35 at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72) with cpus(*):4;
  346. mem(*):6785; disk(*):144943; ports(*):[31000-32000]
  347. I0107 15:12:36.683306 6407 replica.cpp:508] Replica received write request for position
  348. 862
  349. I0107 15:12:36.683346 6414 master.cpp:775] Slave 20150107-150547-406956224-5050-6393-35
  350. at slave(1)@127.0.1.1:5051 (mesos_slave1-ThinkCentre-Edge72) disconnected
  351. I0107 15:12:36.683368 6414 master.cpp:1680] Disconnecting slave 20150107-150547-
  352. 406956224-5050-6393-35
  353. I0107 15:12:36.683452 6412 hierarchical_allocator_process.hpp:442] Added slave 20150107-
  354. 150547-406956224-5050-6393-35 (mesos_slave1-ThinkCentre-Edge72) with cpus(*):4;
  355. mem(*):6785; disk(*):144943; ports(*):[31000-32000] (and cpus(*):4; mem(*):6785;
  356. disk(*):144943; ports(*):[31000-32000] available)
  357. I0107 15:12:36.683516 6412 hierarchical_allocator_process.hpp:481] Slave 20150107-
  358. 150547-406956224-5050-6393-35 deactivated
  359. I0107 15:12:36.724563 6407 leveldb.cpp:343] Persisting action (18 bytes) to leveldb took
  360. 41.207139ms
  361. I0107 15:12:36.724611 6407 replica.cpp:676] Persisted action at 862
  362. I0107 15:12:36.724793 6408 replica.cpp:655] Replica received learned notice for position
  363. 862
  364. I0107 15:12:36.766309 6408 leveldb.cpp:343] Persisting action (20 bytes) to leveldb took
  365. 41.490591ms
  366. I0107 15:12:36.766386 6408 leveldb.cpp:401] Deleting ~2 keys from leveldb took 30472ns
  367. I0107 15:12:36.766405 6408 replica.cpp:676] Persisted action at 862
  368. I0107 15:12:36.766417 6408 replica.cpp:661] Replica learned TRUNCATE action at position
  369. 862
  370. I0107 15:12:40.659693 6413 http.cpp:466] HTTP request for '/master/state.json'

我尝试在另一台机器上运行mesos-master.sh,并尝试从其他机器连接从机,但输出是相同的。我怎样才能解决这个问题?

yhived7q

yhived7q1#

看起来奴隶们想注册成为 127.0.1.1:5051 ,因此此时只能注册1个从属服务器hostname:port. 至少有两种方法可以解决此问题:
--ip=<non-localhost-ip> 当发射mesos slave时
修改 /etc/hosts 在每个奴隶身上 hostname 下定决心 127.0.x.1 .

ubbxdtey

ubbxdtey2#

安装 mesosphere . 你可以在这里得到说明。安装运行后 mesos-master 论主人与主人 mesos-slave 在拥有指向你主人的ip的奴隶身上。如果你得到 port already used error 正如上面adam提到的,尝试使用参数在不同的端口上运行slave --port=value . 如果在另一个端口上运行时权限被拒绝,请尝试sudo。

相关问题