cuboid 0.0.5 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (778) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/README.md +13 -13
  4. data/cuboid.gemspec +1 -5
  5. data/lib/cuboid/application.rb +10 -10
  6. data/lib/cuboid/option_groups/{dispatcher.rb → agent.rb} +10 -10
  7. data/lib/cuboid/option_groups/paths.rb +1 -1
  8. data/lib/cuboid/options.rb +1 -1
  9. data/lib/cuboid/processes/{dispatchers.rb → agents.rb} +25 -25
  10. data/lib/cuboid/processes/executables/agent.rb +5 -0
  11. data/lib/cuboid/processes/helpers/agents.rb +23 -0
  12. data/lib/cuboid/processes/helpers/instances.rb +4 -4
  13. data/lib/cuboid/processes/helpers.rb +1 -1
  14. data/lib/cuboid/processes/instances.rb +9 -9
  15. data/lib/cuboid/processes/schedulers.rb +2 -2
  16. data/lib/cuboid/processes.rb +2 -2
  17. data/lib/cuboid/report.rb +1 -0
  18. data/lib/cuboid/rest/server/instance_helpers.rb +13 -13
  19. data/lib/cuboid/rest/server/routes/dispatcher.rb +11 -11
  20. data/lib/cuboid/rest/server/routes/grid.rb +8 -8
  21. data/lib/cuboid/rest/server/routes/instances.rb +1 -1
  22. data/lib/cuboid/rest/server.rb +5 -5
  23. data/lib/cuboid/rpc/client/{dispatcher.rb → agent.rb} +4 -4
  24. data/lib/cuboid/rpc/client/instance.rb +2 -2
  25. data/lib/cuboid/rpc/client.rb +1 -1
  26. data/lib/cuboid/rpc/server/agent/node.rb +247 -0
  27. data/lib/cuboid/rpc/server/{dispatcher → agent}/service.rb +13 -13
  28. data/lib/cuboid/rpc/server/{dispatcher.rb → agent.rb} +45 -38
  29. data/lib/cuboid/rpc/server/application_wrapper.rb +2 -1
  30. data/lib/cuboid/rpc/server/instance.rb +4 -4
  31. data/lib/cuboid/rpc/server/scheduler.rb +12 -12
  32. data/lib/cuboid.rb +0 -3
  33. data/lib/version +1 -1
  34. data/spec/cuboid/option_groups/dispatcher_spec.rb +2 -2
  35. data/spec/cuboid/rest/server_spec.rb +46 -46
  36. data/spec/cuboid/rpc/client/dispatcher_spec.rb +2 -2
  37. data/spec/cuboid/rpc/server/agent/node_spec.rb +222 -0
  38. data/spec/cuboid/rpc/server/{dispatcher → agent}/service_spec.rb +16 -16
  39. data/spec/cuboid/rpc/server/{dispatcher_spec.rb → agent_spec.rb} +103 -95
  40. data/spec/cuboid/rpc/server/scheduler_spec.rb +8 -8
  41. data/spec/support/fixtures/executables/node.rb +3 -3
  42. data/spec/support/fixtures/mock_app/test_service.rb +8 -8
  43. data/spec/support/fixtures/mock_app.rb +1 -1
  44. data/spec/support/fixtures/services/echo.rb +6 -6
  45. data/spec/support/helpers/resets.rb +1 -1
  46. data/spec/support/lib/web_server_client.rb +2 -2
  47. data/spec/support/lib/web_server_dispatcher.rb +1 -1
  48. data/spec/support/logs/Agent - 1797289-46860.log +6 -0
  49. data/spec/support/logs/Agent - 1797295-27499.log +11 -0
  50. data/spec/support/logs/Agent - 1797297-3144.log +11 -0
  51. data/spec/support/logs/Agent - 1797379-31898.log +6 -0
  52. data/spec/support/logs/Agent - 1797386-37553.log +11 -0
  53. data/spec/support/logs/Agent - 1797390-46182.log +11 -0
  54. data/spec/support/logs/Agent - 1797487-7120.log +11 -0
  55. data/spec/support/logs/Agent - 1797492-19266.log +11 -0
  56. data/spec/support/logs/Agent - 1797535-15905.log +6 -0
  57. data/spec/support/logs/Agent - 1797540-32892.log +16 -0
  58. data/spec/support/logs/Agent - 1797542-59822.log +14 -0
  59. data/spec/support/logs/Agent - 1797547-57893.log +10 -0
  60. data/spec/support/logs/Agent - 1797558-26026.log +11 -0
  61. data/spec/support/logs/Agent - 1797560-6022.log +11 -0
  62. data/spec/support/logs/Agent - 1797592-36797.log +6 -0
  63. data/spec/support/logs/Agent - 1797598-8455.log +16 -0
  64. data/spec/support/logs/Agent - 1797600-56813.log +14 -0
  65. data/spec/support/logs/Agent - 1797604-47328.log +10 -0
  66. data/spec/support/logs/Agent - 1797611-25674.log +16 -0
  67. data/spec/support/logs/Agent - 1797613-63564.log +14 -0
  68. data/spec/support/logs/Agent - 1797622-56082.log +10 -0
  69. data/spec/support/logs/Agent - 1797632-63113.log +16 -0
  70. data/spec/support/logs/Agent - 1797640-55358.log +14 -0
  71. data/spec/support/logs/Agent - 1797644-19227.log +10 -0
  72. data/spec/support/logs/Agent - 1797649-4273.log +16 -0
  73. data/spec/support/logs/Agent - 1797651-45800.log +14 -0
  74. data/spec/support/logs/Agent - 1797655-44436.log +10 -0
  75. data/spec/support/logs/Agent - 1797663-8070.log +16 -0
  76. data/spec/support/logs/Agent - 1797667-56769.log +14 -0
  77. data/spec/support/logs/Agent - 1797671-53005.log +10 -0
  78. data/spec/support/logs/Agent - 1797678-6376.log +6 -0
  79. data/spec/support/logs/Agent - 1797680-53067.log +6 -0
  80. data/spec/support/logs/Agent - 1797684-1440.log +6 -0
  81. data/spec/support/logs/Agent - 1797688-2251.log +6 -0
  82. data/spec/support/logs/Agent - 1797698-41295.log +6 -0
  83. data/spec/support/logs/Agent - 1797702-50250.log +6 -0
  84. data/spec/support/logs/Agent - 1797707-29900.log +6 -0
  85. data/spec/support/logs/Agent - 1797718-49346.log +6 -0
  86. data/spec/support/logs/Agent - 1797726-15376.log +6 -0
  87. data/spec/support/logs/Agent - 1797745-40056.log +6 -0
  88. data/spec/support/logs/Agent - 1797804-62957.log +17 -0
  89. data/spec/support/logs/Agent - 1797821-21500.log +15 -0
  90. data/spec/support/logs/Agent - 1797832-1983.log +11 -0
  91. data/spec/support/logs/Agent - 1797939-12833.log +17 -0
  92. data/spec/support/logs/Agent - 1797952-60103.log +15 -0
  93. data/spec/support/logs/Agent - 1797960-13475.log +11 -0
  94. data/spec/support/logs/Agent - 1798019-61496.log +17 -0
  95. data/spec/support/logs/Agent - 1798033-46806.log +15 -0
  96. data/spec/support/logs/Agent - 1798041-8155.log +11 -0
  97. data/spec/support/logs/Agent - 1798099-42581.log +17 -0
  98. data/spec/support/logs/Agent - 1798113-6252.log +15 -0
  99. data/spec/support/logs/Agent - 1798121-58237.log +11 -0
  100. data/spec/support/logs/Agent - 1798182-15586.log +16 -0
  101. data/spec/support/logs/Agent - 1798197-41430.log +14 -0
  102. data/spec/support/logs/Agent - 1798205-23172.log +10 -0
  103. data/spec/support/logs/Agent - 1798248-46908.log +6 -0
  104. data/spec/support/logs/Agent - 1798253-25994.log +16 -0
  105. data/spec/support/logs/Agent - 1798255-19341.log +14 -0
  106. data/spec/support/logs/Agent - 1798261-4788.log +10 -0
  107. data/spec/support/logs/Agent - 1798270-2955.log +16 -0
  108. data/spec/support/logs/Agent - 1798277-35029.log +14 -0
  109. data/spec/support/logs/Agent - 1798283-51766.log +10 -0
  110. data/spec/support/logs/Agent - 1798294-27029.log +16 -0
  111. data/spec/support/logs/Agent - 1798296-19420.log +14 -0
  112. data/spec/support/logs/Agent - 1798301-49988.log +10 -0
  113. data/spec/support/logs/Agent - 1798306-62835.log +16 -0
  114. data/spec/support/logs/Agent - 1798308-5619.log +14 -0
  115. data/spec/support/logs/Agent - 1798317-13936.log +10 -0
  116. data/spec/support/logs/Agent - 1798325-24989.log +16 -0
  117. data/spec/support/logs/Agent - 1798329-59694.log +14 -0
  118. data/spec/support/logs/Agent - 1798333-7693.log +10 -0
  119. data/spec/support/logs/Agent - 1798339-9797.log +6 -0
  120. data/spec/support/logs/Agent - 1798341-47566.log +6 -0
  121. data/spec/support/logs/Agent - 1798345-57649.log +6 -0
  122. data/spec/support/logs/Agent - 1798349-1601.log +6 -0
  123. data/spec/support/logs/Agent - 1798365-33727.log +6 -0
  124. data/spec/support/logs/Agent - 1798369-47048.log +6 -0
  125. data/spec/support/logs/Agent - 1798373-39436.log +6 -0
  126. data/spec/support/logs/Agent - 1798380-22295.log +6 -0
  127. data/spec/support/logs/Agent - 1798384-54448.log +6 -0
  128. data/spec/support/logs/Agent - 1798401-25598.log +6 -0
  129. data/spec/support/logs/Agent - 1798464-60577.log +16 -0
  130. data/spec/support/logs/Agent - 1798476-32013.log +14 -0
  131. data/spec/support/logs/Agent - 1798488-17640.log +10 -0
  132. data/spec/support/logs/Agent - 1798516-32546.log +16 -0
  133. data/spec/support/logs/Agent - 1798526-32438.log +14 -0
  134. data/spec/support/logs/Agent - 1798533-62298.log +10 -0
  135. data/spec/support/logs/Agent - 1798543-21098.log +16 -0
  136. data/spec/support/logs/Agent - 1798555-25891.log +14 -0
  137. data/spec/support/logs/Agent - 1798562-34080.log +10 -0
  138. data/spec/support/logs/Agent - 1798606-52034.log +10 -0
  139. data/spec/support/logs/Agent - 1798608-43174.log +10 -0
  140. data/spec/support/logs/Agent - 1798610-14773.log +16 -0
  141. data/spec/support/logs/Agent - 1798614-18350.log +14 -0
  142. data/spec/support/logs/Agent - 1798621-4674.log +10 -0
  143. data/spec/support/logs/Agent - 1798645-52114.log +6 -0
  144. data/spec/support/logs/Agent - 1798650-42695.log +6 -0
  145. data/spec/support/logs/Agent - 1798661-51655.log +7 -0
  146. data/spec/support/logs/Agent - 1798680-43699.log +6 -0
  147. data/spec/support/logs/Agent - 1798687-63896.log +16 -0
  148. data/spec/support/logs/Agent - 1798691-57598.log +14 -0
  149. data/spec/support/logs/Agent - 1798701-14752.log +10 -0
  150. data/spec/support/logs/Agent - 1798708-25763.log +16 -0
  151. data/spec/support/logs/Agent - 1798710-32797.log +14 -0
  152. data/spec/support/logs/Agent - 1798714-28009.log +10 -0
  153. data/spec/support/logs/Agent - 1798724-41047.log +16 -0
  154. data/spec/support/logs/Agent - 1798726-55249.log +14 -0
  155. data/spec/support/logs/Agent - 1798735-6516.log +10 -0
  156. data/spec/support/logs/Agent - 1798743-54492.log +16 -0
  157. data/spec/support/logs/Agent - 1798745-3549.log +14 -0
  158. data/spec/support/logs/Agent - 1798749-63028.log +10 -0
  159. data/spec/support/logs/Agent - 1798759-46764.log +16 -0
  160. data/spec/support/logs/Agent - 1798763-20439.log +14 -0
  161. data/spec/support/logs/Agent - 1798767-24602.log +10 -0
  162. data/spec/support/logs/Agent - 1798773-21120.log +6 -0
  163. data/spec/support/logs/Agent - 1798775-30653.log +7 -0
  164. data/spec/support/logs/Agent - 1798794-13970.log +6 -0
  165. data/spec/support/logs/Agent - 1798799-61184.log +16 -0
  166. data/spec/support/logs/Agent - 1798801-17972.log +14 -0
  167. data/spec/support/logs/Agent - 1798805-20634.log +10 -0
  168. data/spec/support/logs/Agent - 1798812-2372.log +16 -0
  169. data/spec/support/logs/Agent - 1798814-56878.log +14 -0
  170. data/spec/support/logs/Agent - 1798824-62001.log +10 -0
  171. data/spec/support/logs/Agent - 1798835-39880.log +16 -0
  172. data/spec/support/logs/Agent - 1798837-61826.log +14 -0
  173. data/spec/support/logs/Agent - 1798841-16507.log +10 -0
  174. data/spec/support/logs/Agent - 1798846-48234.log +16 -0
  175. data/spec/support/logs/Agent - 1798848-5064.log +14 -0
  176. data/spec/support/logs/Agent - 1798853-31760.log +10 -0
  177. data/spec/support/logs/Agent - 1798866-50670.log +16 -0
  178. data/spec/support/logs/Agent - 1798870-45487.log +14 -0
  179. data/spec/support/logs/Agent - 1798874-52084.log +10 -0
  180. data/spec/support/logs/Agent - 1798880-36517.log +6 -0
  181. data/spec/support/logs/Agent - 1798882-40177.log +6 -0
  182. data/spec/support/logs/Agent - 1798886-7030.log +6 -0
  183. data/spec/support/logs/Agent - 1798895-7798.log +6 -0
  184. data/spec/support/logs/Agent - 1798906-43816.log +6 -0
  185. data/spec/support/logs/Agent - 1798910-18160.log +6 -0
  186. data/spec/support/logs/Agent - 1798916-29506.log +6 -0
  187. data/spec/support/logs/Agent - 1798920-21682.log +6 -0
  188. data/spec/support/logs/Agent - 1798926-45303.log +6 -0
  189. data/spec/support/logs/Agent - 1798950-17451.log +6 -0
  190. data/spec/support/logs/Agent - 1799005-32280.log +16 -0
  191. data/spec/support/logs/Agent - 1799017-9877.log +14 -0
  192. data/spec/support/logs/Agent - 1799024-65347.log +10 -0
  193. data/spec/support/logs/Agent - 1799051-25939.log +16 -0
  194. data/spec/support/logs/Agent - 1799061-59062.log +14 -0
  195. data/spec/support/logs/Agent - 1799074-49397.log +10 -0
  196. data/spec/support/logs/Agent - 1799083-27497.log +16 -0
  197. data/spec/support/logs/Agent - 1799096-40902.log +14 -0
  198. data/spec/support/logs/Agent - 1799103-20369.log +10 -0
  199. data/spec/support/logs/Agent - 1799135-60557.log +10 -0
  200. data/spec/support/logs/Agent - 1799137-3725.log +10 -0
  201. data/spec/support/logs/Agent - 1799144-38486.log +16 -0
  202. data/spec/support/logs/Agent - 1799150-30915.log +14 -0
  203. data/spec/support/logs/Agent - 1799154-18474.log +10 -0
  204. data/spec/support/logs/Agent - 1799170-26867.log +6 -0
  205. data/spec/support/logs/Agent - 1799174-16635.log +6 -0
  206. data/spec/support/logs/Agent - 1799184-8862.log +6 -0
  207. data/spec/support/logs/Agent - 1799197-45365.log +6 -0
  208. data/spec/support/logs/Agent - 1799214-21005.log +6 -0
  209. data/spec/support/logs/Agent - 1799225-8303.log +6 -0
  210. data/spec/support/logs/Agent - 1799229-20233.log +6 -0
  211. data/spec/support/logs/Agent - 1799234-31440.log +6 -0
  212. data/spec/support/logs/Agent - 2486896-44236.log +6 -0
  213. data/spec/support/logs/Agent - 2487229-16390.log +6 -0
  214. data/spec/support/logs/Agent - 2487520-2511.log +6 -0
  215. data/spec/support/logs/Agent - 2487522-24008.log +6 -0
  216. data/spec/support/logs/Agent - 2487526-3383.log +6 -0
  217. data/spec/support/logs/Agent - 2487528-23713.log +10 -0
  218. data/spec/support/logs/Agent - 2487530-42875.log +10 -0
  219. data/spec/support/logs/Agent - 2487533-14182.log +10 -0
  220. data/spec/support/logs/Agent - 2487535-32486.log +10 -0
  221. data/spec/support/logs/Agent - 2487537-30578.log +10 -0
  222. data/spec/support/logs/Agent - 2487539-65402.log +10 -0
  223. data/spec/support/logs/Agent - 2493974-23066.log +6 -0
  224. data/spec/support/logs/Agent - 2501716-11729.log +6 -0
  225. data/spec/support/logs/Agent - 2501724-48638.log +6 -0
  226. data/spec/support/logs/Agent - 2501961-60077.log +6 -0
  227. data/spec/support/logs/Agent - 2501976-10941.log +10 -0
  228. data/spec/support/logs/Agent - 2502050-45312.log +10 -0
  229. data/spec/support/logs/Agent - 2502131-45940.log +10 -0
  230. data/spec/support/logs/Agent - 2502139-59848.log +10 -0
  231. data/spec/support/logs/Agent - 2502262-46629.log +10 -0
  232. data/spec/support/logs/Agent - 2502298-28395.log +10 -0
  233. data/spec/support/logs/Agent - 2512541-7108.log +6 -0
  234. data/spec/support/logs/Agent - 2515458-5532.log +6 -0
  235. data/spec/support/logs/Agent - 2515540-20379.log +6 -0
  236. data/spec/support/logs/Agent - 2515550-19661.log +6 -0
  237. data/spec/support/logs/Agent - 2515626-34192.log +6 -0
  238. data/spec/support/logs/Agent - 2515879-19884.log +6 -0
  239. data/spec/support/logs/Agent - 2516130-27514.log +6 -0
  240. data/spec/support/logs/Agent - 2516382-45886.log +6 -0
  241. data/spec/support/logs/Agent - 2516390-47909.log +6 -0
  242. data/spec/support/logs/Agent - 2516465-47774.log +6 -0
  243. data/spec/support/logs/Agent - 2516546-13955.log +6 -0
  244. data/spec/support/logs/Agent - 2516561-39041.log +6 -0
  245. data/spec/support/logs/Agent - 2516710-46722.log +6 -0
  246. data/spec/support/logs/Agent - 2516795-56481.log +16 -0
  247. data/spec/support/logs/Agent - 2516798-22121.log +14 -0
  248. data/spec/support/logs/Agent - 2516881-21755.log +10 -0
  249. data/spec/support/logs/Agent - 2517053-64944.log +16 -0
  250. data/spec/support/logs/Agent - 2517056-63364.log +14 -0
  251. data/spec/support/logs/Agent - 2517066-34797.log +10 -0
  252. data/spec/support/logs/Agent - 2518042-30794.log +16 -0
  253. data/spec/support/logs/Agent - 2518050-6895.log +14 -0
  254. data/spec/support/logs/Agent - 2518212-36288.log +10 -0
  255. data/spec/support/logs/Agent - 2518395-10976.log +16 -0
  256. data/spec/support/logs/Agent - 2518472-35419.log +14 -0
  257. data/spec/support/logs/Agent - 2518559-43119.log +10 -0
  258. data/spec/support/logs/Agent - 2518647-48415.log +16 -0
  259. data/spec/support/logs/Agent - 2518652-65099.log +14 -0
  260. data/spec/support/logs/Agent - 2518658-1449.log +10 -0
  261. data/spec/support/logs/Agent - 2518910-62083.log +6 -0
  262. data/spec/support/logs/Agent - 2518919-58035.log +6 -0
  263. data/spec/support/logs/Agent - 2519076-57825.log +6 -0
  264. data/spec/support/logs/Agent - 2519156-8413.log +6 -0
  265. data/spec/support/logs/Agent - 2519406-64200.log +6 -0
  266. data/spec/support/logs/Agent - 2519570-20841.log +6 -0
  267. data/spec/support/logs/Agent - 2519659-30136.log +6 -0
  268. data/spec/support/logs/Agent - 2519822-9736.log +6 -0
  269. data/spec/support/logs/Agent - 2520004-59217.log +6 -0
  270. data/spec/support/logs/Agent - 2520357-37723.log +6 -0
  271. data/spec/support/logs/Agent - 2521294-5229.log +16 -0
  272. data/spec/support/logs/Agent - 2521407-31515.log +14 -0
  273. data/spec/support/logs/Agent - 2521415-7501.log +10 -0
  274. data/spec/support/logs/Agent - 2521452-22168.log +16 -0
  275. data/spec/support/logs/Agent - 2521463-24492.log +14 -0
  276. data/spec/support/logs/Agent - 2521482-50808.log +10 -0
  277. data/spec/support/logs/Agent - 2521503-8180.log +16 -0
  278. data/spec/support/logs/Agent - 2521562-3183.log +14 -0
  279. data/spec/support/logs/Agent - 2521639-45199.log +10 -0
  280. data/spec/support/logs/Agent - 2521891-30967.log +10 -0
  281. data/spec/support/logs/Agent - 2521897-64837.log +10 -0
  282. data/spec/support/logs/Agent - 2521916-23526.log +16 -0
  283. data/spec/support/logs/Agent - 2521936-26313.log +14 -0
  284. data/spec/support/logs/Agent - 2521948-18199.log +10 -0
  285. data/spec/support/logs/Agent - 2522026-18512.log +6 -0
  286. data/spec/support/logs/Agent - 2522093-46502.log +6 -0
  287. data/spec/support/logs/Agent - 2522195-30981.log +6 -0
  288. data/spec/support/logs/Agent - 2522295-55509.log +6 -0
  289. data/spec/support/logs/Agent - 2522347-32811.log +6 -0
  290. data/spec/support/logs/Agent - 2523391-7522.log +6 -0
  291. data/spec/support/logs/Agent - 2523626-61560.log +6 -0
  292. data/spec/support/logs/Agent - 2523913-25677.log +6 -0
  293. data/spec/support/logs/Agent - 2539887-21281.log +6 -0
  294. data/spec/support/logs/Agent - 2540261-61895.log +6 -0
  295. data/spec/support/logs/Agent - 2540430-8261.log +6 -0
  296. data/spec/support/logs/Agent - 361913-24577.log +6 -0
  297. data/spec/support/logs/Agent - 362152-33398.log +6 -0
  298. data/spec/support/logs/Agent - 362154-44243.log +6 -0
  299. data/spec/support/logs/Agent - 362157-6034.log +6 -0
  300. data/spec/support/logs/Agent - 362160-38548.log +10 -0
  301. data/spec/support/logs/Agent - 362162-59176.log +10 -0
  302. data/spec/support/logs/Agent - 362165-23738.log +10 -0
  303. data/spec/support/logs/Agent - 362167-57542.log +10 -0
  304. data/spec/support/logs/Agent - 362172-22798.log +10 -0
  305. data/spec/support/logs/Agent - 362174-46609.log +10 -0
  306. data/spec/support/logs/Agent - 362398-10913.log +6 -0
  307. data/spec/support/logs/Agent - 362524-29482.log +6 -0
  308. data/spec/support/logs/Agent - 362527-40674.log +6 -0
  309. data/spec/support/logs/Agent - 362530-32963.log +6 -0
  310. data/spec/support/logs/Agent - 362532-22236.log +6 -0
  311. data/spec/support/logs/Agent - 362543-4429.log +6 -0
  312. data/spec/support/logs/Agent - 362557-7510.log +6 -0
  313. data/spec/support/logs/Agent - 362574-36915.log +6 -0
  314. data/spec/support/logs/Agent - 362576-65372.log +6 -0
  315. data/spec/support/logs/Agent - 362578-29183.log +6 -0
  316. data/spec/support/logs/Agent - 362580-43546.log +6 -0
  317. data/spec/support/logs/Agent - 362582-22254.log +6 -0
  318. data/spec/support/logs/Agent - 362588-40009.log +6 -0
  319. data/spec/support/logs/Agent - 362591-60596.log +16 -0
  320. data/spec/support/logs/Agent - 362595-3584.log +14 -0
  321. data/spec/support/logs/Agent - 362599-39016.log +10 -0
  322. data/spec/support/logs/Agent - 362606-58506.log +16 -0
  323. data/spec/support/logs/Agent - 362609-55768.log +14 -0
  324. data/spec/support/logs/Agent - 362613-37168.log +10 -0
  325. data/spec/support/logs/Agent - 362629-16593.log +16 -0
  326. data/spec/support/logs/Agent - 362632-32264.log +14 -0
  327. data/spec/support/logs/Agent - 362643-59807.log +10 -0
  328. data/spec/support/logs/Agent - 362649-40552.log +16 -0
  329. data/spec/support/logs/Agent - 362655-31144.log +14 -0
  330. data/spec/support/logs/Agent - 362660-12968.log +10 -0
  331. data/spec/support/logs/Agent - 362666-6806.log +16 -0
  332. data/spec/support/logs/Agent - 362673-39178.log +14 -0
  333. data/spec/support/logs/Agent - 362678-36132.log +10 -0
  334. data/spec/support/logs/Agent - 362685-62240.log +6 -0
  335. data/spec/support/logs/Agent - 362687-4068.log +6 -0
  336. data/spec/support/logs/Agent - 362691-48465.log +6 -0
  337. data/spec/support/logs/Agent - 362693-40295.log +6 -0
  338. data/spec/support/logs/Agent - 362705-53855.log +6 -0
  339. data/spec/support/logs/Agent - 362712-14029.log +6 -0
  340. data/spec/support/logs/Agent - 362717-3069.log +6 -0
  341. data/spec/support/logs/Agent - 362721-38670.log +6 -0
  342. data/spec/support/logs/Agent - 362725-7644.log +6 -0
  343. data/spec/support/logs/Agent - 362748-18302.log +6 -0
  344. data/spec/support/logs/Agent - 362828-61766.log +16 -0
  345. data/spec/support/logs/Agent - 362838-44693.log +14 -0
  346. data/spec/support/logs/Agent - 362847-31875.log +10 -0
  347. data/spec/support/logs/Agent - 362875-46401.log +16 -0
  348. data/spec/support/logs/Agent - 362887-52041.log +14 -0
  349. data/spec/support/logs/Agent - 362897-7426.log +10 -0
  350. data/spec/support/logs/Agent - 362908-35228.log +16 -0
  351. data/spec/support/logs/Agent - 362919-33764.log +14 -0
  352. data/spec/support/logs/Agent - 362928-1323.log +10 -0
  353. data/spec/support/logs/Agent - 362960-27883.log +10 -0
  354. data/spec/support/logs/Agent - 362964-26072.log +10 -0
  355. data/spec/support/logs/Agent - 362966-42927.log +16 -0
  356. data/spec/support/logs/Agent - 362972-56025.log +14 -0
  357. data/spec/support/logs/Agent - 362977-39574.log +10 -0
  358. data/spec/support/logs/Agent - 362992-23510.log +6 -0
  359. data/spec/support/logs/Agent - 362996-63445.log +6 -0
  360. data/spec/support/logs/Agent - 363017-59359.log +6 -0
  361. data/spec/support/logs/Agent - 363034-15682.log +6 -0
  362. data/spec/support/logs/Agent - 363050-6605.log +6 -0
  363. data/spec/support/logs/Agent - 363065-59445.log +6 -0
  364. data/spec/support/logs/Agent - 363070-6619.log +6 -0
  365. data/spec/support/logs/Agent - 363077-18731.log +6 -0
  366. data/spec/support/logs/Agent - 363250-16962.log +6 -0
  367. data/spec/support/logs/Agent - 363265-25598.log +6 -0
  368. data/spec/support/logs/Agent - 363279-50603.log +6 -0
  369. data/spec/support/logs/{Instance - 1521363-26218.error.log → Instance - 2525557-35695.error.log } +18 -18
  370. data/spec/support/logs/{Instance - 1521353-26273.error.log → Instance - 2525638-6350.error.log } +18 -18
  371. data/spec/support/logs/{Instance - 1521355-56591.error.log → Instance - 2525719-30351.error.log } +18 -18
  372. data/spec/support/logs/Instance - 363119-21886.error.log +105 -0
  373. data/spec/support/logs/Instance - 363121-31774.error.log +105 -0
  374. data/spec/support/logs/Instance - 363127-52671.error.log +105 -0
  375. data/spec/support/logs/Scheduler - 2486608-59709.log +3 -0
  376. data/spec/support/logs/Scheduler - 2486612-44110.log +27 -0
  377. data/spec/support/logs/Scheduler - 2486723-50393.log +3 -0
  378. data/spec/support/logs/Scheduler - 2486727-21620.log +27 -0
  379. data/spec/support/logs/Scheduler - 2486877-37845.log +3 -0
  380. data/spec/support/logs/Scheduler - 2486881-3624.log +1 -0
  381. data/spec/support/logs/Scheduler - 2486911-24752.log +3 -0
  382. data/spec/support/logs/Scheduler - 2486919-48535.log +27 -0
  383. data/spec/support/logs/Scheduler - 2486985-8897.log +1 -0
  384. data/spec/support/logs/Scheduler - 2487211-7516.log +3 -0
  385. data/spec/support/logs/Scheduler - 2487215-2831.log +1 -0
  386. data/spec/support/logs/Scheduler - 2487246-7826.log +3 -0
  387. data/spec/support/logs/Scheduler - 2487256-35669.log +6 -0
  388. data/spec/support/logs/Scheduler - 2487272-11542.log +4 -0
  389. data/spec/support/logs/Scheduler - 2487278-9621.log +1 -0
  390. data/spec/support/logs/Scheduler - 2487291-24094.log +3 -0
  391. data/spec/support/logs/Scheduler - 2487299-60095.log +6 -0
  392. data/spec/support/logs/Scheduler - 2487368-7706.log +3 -0
  393. data/spec/support/logs/Scheduler - 2487378-9859.log +6 -0
  394. data/spec/support/logs/Scheduler - 2487396-17812.log +3 -0
  395. data/spec/support/logs/Scheduler - 2487407-25543.log +6 -0
  396. data/spec/support/logs/Scheduler - 2487451-44767.log +4 -0
  397. data/spec/support/logs/Scheduler - 2487506-1422.log +6 -0
  398. data/spec/support/logs/Scheduler - 2487541-38068.log +1 -0
  399. data/spec/support/logs/Scheduler - 2487544-21866.log +1 -0
  400. data/spec/support/logs/Scheduler - 2487548-15245.log +1 -0
  401. data/spec/support/logs/Scheduler - 2487551-34905.log +1 -0
  402. data/spec/support/logs/Scheduler - 2487554-22142.log +1 -0
  403. data/spec/support/logs/Scheduler - 2487562-35113.log +1 -0
  404. data/spec/support/logs/Scheduler - 2487565-55125.log +3 -0
  405. data/spec/support/logs/Scheduler - 2487569-48845.log +6 -0
  406. data/spec/support/logs/Scheduler - 2487576-57192.log +4 -0
  407. data/spec/support/logs/Scheduler - 2487583-17991.log +1 -0
  408. data/spec/support/logs/Scheduler - 2487586-30014.log +1 -0
  409. data/spec/support/logs/Scheduler - 2487591-6472.log +1 -0
  410. data/spec/support/logs/Scheduler - 2487594-2195.log +1 -0
  411. data/spec/support/logs/Scheduler - 2487598-55808.log +3 -0
  412. data/spec/support/logs/Scheduler - 2487605-7400.log +1 -0
  413. data/spec/support/logs/Scheduler - 2487607-4337.log +1 -0
  414. data/spec/support/logs/Scheduler - 2487610-25835.log +1 -0
  415. data/spec/support/logs/Scheduler - 2493623-45209.log +3 -0
  416. data/spec/support/logs/Scheduler - 2493714-59407.log +1 -0
  417. data/spec/support/logs/Scheduler - 2494470-61696.log +3 -0
  418. data/spec/support/logs/Scheduler - 2494723-2810.log +6 -0
  419. data/spec/support/logs/Scheduler - 2495458-22112.log +4 -0
  420. data/spec/support/logs/Scheduler - 2496034-4076.log +1 -0
  421. data/spec/support/logs/Scheduler - 2496119-62253.log +3 -0
  422. data/spec/support/logs/Scheduler - 2496210-50380.log +6 -0
  423. data/spec/support/logs/Scheduler - 2497536-24922.log +3 -0
  424. data/spec/support/logs/Scheduler - 2497786-13515.log +6 -0
  425. data/spec/support/logs/Scheduler - 2498774-16911.log +3 -0
  426. data/spec/support/logs/Scheduler - 2498961-4742.log +6 -0
  427. data/spec/support/logs/Scheduler - 2500340-16045.log +4 -0
  428. data/spec/support/logs/Scheduler - 2500980-26158.log +6 -0
  429. data/spec/support/logs/Scheduler - 2502381-26435.log +1 -0
  430. data/spec/support/logs/Scheduler - 2502463-62965.log +1 -0
  431. data/spec/support/logs/Scheduler - 2502547-53434.log +1 -0
  432. data/spec/support/logs/Scheduler - 2502628-43720.log +1 -0
  433. data/spec/support/logs/Scheduler - 2502643-58379.log +1 -0
  434. data/spec/support/logs/Scheduler - 2502873-64893.log +1 -0
  435. data/spec/support/logs/Scheduler - 2502954-43885.log +3 -0
  436. data/spec/support/logs/Scheduler - 2503039-52147.log +6 -0
  437. data/spec/support/logs/Scheduler - 2503768-28831.log +4 -0
  438. data/spec/support/logs/Scheduler - 2504259-24533.log +1 -0
  439. data/spec/support/logs/Scheduler - 2504343-56967.log +1 -0
  440. data/spec/support/logs/Scheduler - 2504502-25085.log +1 -0
  441. data/spec/support/logs/Scheduler - 2504587-30789.log +1 -0
  442. data/spec/support/logs/Scheduler - 2504608-56601.log +3 -0
  443. data/spec/support/logs/Scheduler - 2504760-36374.log +1 -0
  444. data/spec/support/logs/Scheduler - 2504841-49675.log +1 -0
  445. data/spec/support/logs/Scheduler - 2504923-15781.log +1 -0
  446. data/spec/support/logs/Scheduler - 2532871-63847.log +16 -0
  447. data/spec/support/logs/Scheduler - 2538978-63705.log +6 -0
  448. data/spec/support/logs/Scheduler - 2539461-10579.log +6 -0
  449. data/spec/support/logs/Scheduler - 2539981-44320.log +6 -0
  450. data/spec/support/logs/Scheduler - 2540265-37672.log +3 -0
  451. data/spec/support/logs/Scheduler - 2540434-9490.log +5 -0
  452. data/spec/support/logs/Scheduler - 2540840-9957.log +1 -0
  453. data/spec/support/logs/Scheduler - 2540921-2437.log +1 -0
  454. data/spec/support/logs/Scheduler - 2540937-17100.log +1 -0
  455. data/spec/support/logs/Scheduler - 2541007-52812.log +1 -0
  456. data/spec/support/logs/Scheduler - 2541091-56468.log +1 -0
  457. data/spec/support/logs/Scheduler - 2541109-54138.log +1 -0
  458. data/spec/support/logs/Scheduler - 2541188-17918.log +1 -0
  459. data/spec/support/logs/Scheduler - 2541267-2563.log +3 -0
  460. data/spec/support/logs/Scheduler - 2541430-40675.log +3 -0
  461. data/spec/support/logs/Scheduler - 2542341-38074.log +3 -0
  462. data/spec/support/logs/Scheduler - 2542519-33069.log +3 -0
  463. data/spec/support/logs/Scheduler - 2542610-41819.log +4 -0
  464. data/spec/support/logs/Scheduler - 2543168-3708.log +1 -0
  465. data/spec/support/logs/Scheduler - 2543332-46957.log +4 -0
  466. data/spec/support/logs/Scheduler - 2543334-53034.log +1 -0
  467. data/spec/support/logs/Scheduler - 2543419-31038.log +1 -0
  468. data/spec/support/logs/Scheduler - 2543666-10481.log +16 -0
  469. data/spec/support/logs/Scheduler - 2544245-30154.log +4 -0
  470. data/spec/support/logs/Scheduler - 2544487-8113.log +1 -0
  471. data/spec/support/logs/Scheduler - 2544490-62030.log +1 -0
  472. data/spec/support/logs/Scheduler - 2544494-64830.log +1 -0
  473. data/spec/support/logs/Scheduler - 2544585-3507.log +1 -0
  474. data/spec/support/logs/Scheduler - 2544668-24185.log +3 -0
  475. data/spec/support/logs/Scheduler - 2544762-17601.log +1 -0
  476. data/spec/support/logs/Scheduler - 2544790-32379.log +1 -0
  477. data/spec/support/logs/Scheduler - 2544853-35518.log +1 -0
  478. data/spec/support/logs/Scheduler - 2544939-52525.log +1 -0
  479. data/spec/support/logs/Scheduler - 2545016-12352.log +1 -0
  480. data/spec/support/logs/Scheduler - 2545096-63001.log +1 -0
  481. data/spec/support/logs/Scheduler - 2545178-63647.log +2 -0
  482. data/spec/support/logs/Scheduler - 361893-37255.log +3 -0
  483. data/spec/support/logs/Scheduler - 361897-36090.log +1 -0
  484. data/spec/support/logs/Scheduler - 361928-44834.log +3 -0
  485. data/spec/support/logs/Scheduler - 361937-43013.log +6 -0
  486. data/spec/support/logs/Scheduler - 361956-8533.log +4 -0
  487. data/spec/support/logs/Scheduler - 361968-31856.log +1 -0
  488. data/spec/support/logs/Scheduler - 361988-37894.log +3 -0
  489. data/spec/support/logs/Scheduler - 361997-31525.log +6 -0
  490. data/spec/support/logs/Scheduler - 362037-51907.log +3 -0
  491. data/spec/support/logs/Scheduler - 362047-32758.log +6 -0
  492. data/spec/support/logs/Scheduler - 362072-11620.log +3 -0
  493. data/spec/support/logs/Scheduler - 362080-16797.log +6 -0
  494. data/spec/support/logs/Scheduler - 362124-56230.log +4 -0
  495. data/spec/support/logs/Scheduler - 362137-4746.log +6 -0
  496. data/spec/support/logs/Scheduler - 362176-32691.log +1 -0
  497. data/spec/support/logs/Scheduler - 362179-34759.log +1 -0
  498. data/spec/support/logs/Scheduler - 362183-18758.log +1 -0
  499. data/spec/support/logs/Scheduler - 362187-63438.log +1 -0
  500. data/spec/support/logs/Scheduler - 362189-35075.log +1 -0
  501. data/spec/support/logs/Scheduler - 362191-34351.log +1 -0
  502. data/spec/support/logs/Scheduler - 362195-51436.log +3 -0
  503. data/spec/support/logs/Scheduler - 362199-46884.log +6 -0
  504. data/spec/support/logs/Scheduler - 362214-12351.log +4 -0
  505. data/spec/support/logs/Scheduler - 362230-12723.log +1 -0
  506. data/spec/support/logs/Scheduler - 362233-16133.log +1 -0
  507. data/spec/support/logs/Scheduler - 362238-51103.log +1 -0
  508. data/spec/support/logs/Scheduler - 362241-20441.log +1 -0
  509. data/spec/support/logs/Scheduler - 362245-40692.log +3 -0
  510. data/spec/support/logs/Scheduler - 362251-40074.log +1 -0
  511. data/spec/support/logs/Scheduler - 362253-48087.log +1 -0
  512. data/spec/support/logs/Scheduler - 362256-27112.log +1 -0
  513. data/spec/support/logs/Scheduler - 363208-60869.log +16 -0
  514. data/spec/support/logs/Scheduler - 363231-35883.log +6 -0
  515. data/spec/support/logs/Scheduler - 363240-11734.log +6 -0
  516. data/spec/support/logs/Scheduler - 363252-28394.log +6 -0
  517. data/spec/support/logs/Scheduler - 363267-7527.log +3 -0
  518. data/spec/support/logs/Scheduler - 363282-48049.log +5 -0
  519. data/spec/support/logs/Scheduler - 363298-26965.log +1 -0
  520. data/spec/support/logs/Scheduler - 363300-14973.log +1 -0
  521. data/spec/support/logs/Scheduler - 363302-58216.log +1 -0
  522. data/spec/support/logs/Scheduler - 363304-11942.log +1 -0
  523. data/spec/support/logs/Scheduler - 363306-39654.log +1 -0
  524. data/spec/support/logs/Scheduler - 363308-57479.log +1 -0
  525. data/spec/support/logs/Scheduler - 363310-32176.log +1 -0
  526. data/spec/support/logs/Scheduler - 363314-13492.log +3 -0
  527. data/spec/support/logs/Scheduler - 363322-38112.log +3 -0
  528. data/spec/support/logs/Scheduler - 363342-26080.log +3 -0
  529. data/spec/support/logs/Scheduler - 363349-51783.log +3 -0
  530. data/spec/support/logs/Scheduler - 363355-44132.log +4 -0
  531. data/spec/support/logs/Scheduler - 363367-12160.log +1 -0
  532. data/spec/support/logs/Scheduler - 363372-28520.log +4 -0
  533. data/spec/support/logs/Scheduler - 363376-58951.log +1 -0
  534. data/spec/support/logs/Scheduler - 363379-28506.log +1 -0
  535. data/spec/support/logs/Scheduler - 363384-63536.log +16 -0
  536. data/spec/support/logs/Scheduler - 363402-32695.log +4 -0
  537. data/spec/support/logs/Scheduler - 363412-41984.log +1 -0
  538. data/spec/support/logs/Scheduler - 363414-47366.log +1 -0
  539. data/spec/support/logs/Scheduler - 363416-44368.log +1 -0
  540. data/spec/support/logs/Scheduler - 363427-29292.log +1 -0
  541. data/spec/support/logs/Scheduler - 363431-44605.log +3 -0
  542. data/spec/support/logs/Scheduler - 363439-19754.log +1 -0
  543. data/spec/support/logs/Scheduler - 363441-5762.log +1 -0
  544. data/spec/support/logs/Scheduler - 363443-4000.log +1 -0
  545. data/spec/support/logs/Scheduler - 363445-3688.log +1 -0
  546. data/spec/support/logs/Scheduler - 363448-50268.log +1 -0
  547. data/spec/support/logs/Scheduler - 363451-23104.log +1 -0
  548. data/spec/support/logs/Scheduler - 363454-12897.log +2 -0
  549. data/spec/support/logs/{error-1520329.log → error-2487640.log} +449 -449
  550. data/spec/support/logs/error-360075.log +797 -0
  551. data/spec/support/logs/output_spec_2487640.log +390 -0
  552. data/spec/support/logs/output_spec_360075.log +390 -0
  553. data/spec/support/reports/052f88c73e2d0ecf331dbf5fce0cfe3c.crf +0 -0
  554. data/spec/support/reports/06eed3dec98f5cd5fc717190a004d7d6.crf +0 -0
  555. data/spec/support/reports/0902bd88bbd4df462910007a3b5018fc.crf +0 -0
  556. data/spec/support/reports/10b9864e81e3204d1ef4940ccb88b0ed.crf +0 -0
  557. data/spec/support/reports/16b575097e68156416a84a6854d3719c.crf +0 -0
  558. data/spec/support/reports/18be00bff4371738c7c7013b284b415b.crf +0 -0
  559. data/spec/support/reports/1ca39d410c2cf1f652eb8c320d6682bd.crf +0 -0
  560. data/spec/support/reports/266a09d73152ce2f3d2951f1dab133f3.crf +0 -0
  561. data/spec/support/reports/2929bee9c126b2695dc569b693fef574.crf +0 -0
  562. data/spec/support/reports/2abd611201d06f0428f1b060b32d4839.crf +0 -0
  563. data/spec/support/reports/2b9ce956f7060163d7a0b78603dc05ca.crf +0 -0
  564. data/spec/support/reports/3254163f76b8696fa1677d18eaefce1d.crf +0 -0
  565. data/spec/support/reports/3a9e6a4fa91c901550ff295cd21d69c9.crf +0 -0
  566. data/spec/support/reports/3de18cf956e18664f441f94ee05e4118.crf +0 -0
  567. data/spec/support/reports/46bcffd844008e71c7d90a76baf8597d.crf +0 -0
  568. data/spec/support/reports/482cf0d0c54cda32bedf59b2ea995c65.crf +0 -0
  569. data/spec/support/reports/502508e3a29966200350196c9859881c.crf +0 -0
  570. data/spec/support/reports/5f0d832d46338d69b4eab6ff91ba4c91.crf +0 -0
  571. data/spec/support/reports/620287cfdc373595385cf2471e1d4523.crf +0 -0
  572. data/spec/support/reports/65d71de3b0e8c9fe894f4ba36cb4cb7c.crf +0 -0
  573. data/spec/support/reports/6754d1f86dc5544abeca7f06314ebc56.crf +0 -0
  574. data/spec/support/reports/75fecdd5e006942292e02e6a223e7279.crf +0 -0
  575. data/spec/support/reports/77523cc87357aa220c33d5604f41b5a1.crf +0 -0
  576. data/spec/support/reports/7e137bd5f71e0f0fbb63b93b87dae160.crf +0 -0
  577. data/spec/support/reports/806a17c3a40cc22eafd77c97b64a2ed5.crf +0 -0
  578. data/spec/support/reports/81cca53163bbab5ccf4d5f0401d5adcd.crf +0 -0
  579. data/spec/support/reports/8745ae8fdeb76289765582e06a614940.crf +0 -0
  580. data/spec/support/reports/8c204ee129fe1bd6c5964d29ae5d03ae.crf +0 -0
  581. data/spec/support/reports/937b7b516a99c23b2a641bb7bf695bfa.crf +0 -0
  582. data/spec/support/reports/a6eb89ffb1c33e33e421c1ee393118a9.crf +0 -0
  583. data/spec/support/reports/aadbf2c1544b0e11174853fb4883a38c.crf +0 -0
  584. data/spec/support/reports/c360a2833f3e635e69036916010edeac.crf +0 -0
  585. data/spec/support/reports/cf0bfb4662a7cda85db324936aae93d3.crf +0 -0
  586. data/spec/support/reports/cfff9c06897e28b1d58977909738c78f.crf +0 -0
  587. data/spec/support/reports/e2d5321452359193a758f7d16879ddb3.crf +0 -0
  588. data/spec/support/reports/e58c9dfbf9edeca9adcf32af5940f16b.crf +0 -0
  589. data/spec/support/reports/e96abea937f1ed3f89bc2ec5397522db.crf +0 -0
  590. data/spec/support/reports/ec0bbd4424061d305963551a29d20e1a.crf +0 -0
  591. data/spec/support/reports/f16e679098a4411d4f1c123abcd6af90.crf +0 -0
  592. data/spec/support/reports/f2c155087c431851979048ceb8c46ec9.crf +0 -0
  593. data/spec/support/reports/f3d542036e17f6a66e11bfacb2fb3366.crf +0 -0
  594. data/spec/support/reports/f72c7feef5f9c7e29f423c3ebe345ef3.crf +0 -0
  595. data/spec/support/reports/fbb2e1c6ada2d4b8229488f4c4b3b418.crf +0 -0
  596. data/spec/support/snapshots/Cuboid 2022-02-01 13_10_28 +0200 a06d9bd7db81b1b4fb077ceadcc3895f.csf +0 -0
  597. data/spec/support/snapshots/Cuboid 2022-02-01 13_10_42 +0200 36c68859faf144eed9ff9c01ae754217.csf +0 -0
  598. data/spec/support/snapshots/Cuboid 2022-02-01 13_24_42 +0200 5a26112a913330ee8763b2982a4d42df.csf +0 -0
  599. data/spec/support/snapshots/Cuboid 2022-02-01 13_24_56 +0200 190856b98ac7099eb553ed3abcfbcb87.csf +0 -0
  600. data/spec/support/snapshots/Cuboid 2022-02-01 13_35_35 +0200 a9c5229b459119840c9428a3d7c54eb1.csf +0 -0
  601. data/spec/support/snapshots/Cuboid 2022-02-01 13_35_41 +0200 d93660f71110dad136cea0758b29611e.csf +0 -0
  602. data/spec/support/snapshots/Cuboid 2022-02-01 13_35_44 +0200 57083dafa382f1d21cc33c9740861c88.csf +0 -0
  603. data/spec/support/snapshots/Cuboid 2022-02-13 07_55_57 +0200 6ff9bf8c7b70ad85fa3a42f44bcc5fe7.csf +0 -0
  604. data/spec/support/snapshots/Cuboid 2022-02-13 07_56_12 +0200 2852d4e0ae04e5365301703913f7b763.csf +0 -0
  605. data/spec/support/snapshots/Cuboid 2022-02-13 08_06_41 +0200 54da34dab4b059de90cdd33d400ccac7.csf +0 -0
  606. data/spec/support/snapshots/Cuboid 2022-02-13 08_06_46 +0200 61596bdce9318446373d1b736ec7c9ce.csf +0 -0
  607. data/spec/support/snapshots/Cuboid 2022-02-13 08_06_48 +0200 19030be87532ece27c1d4791a8d3229c.csf +0 -0
  608. data/spec/support/snapshots/Cuboid 2022-02-20 03_01_57 +0200 b03ce79d889c60483385e77cda635831.csf +0 -0
  609. metadata +1213 -457
  610. data/lib/cuboid/processes/executables/dispatcher.rb +0 -5
  611. data/lib/cuboid/processes/helpers/dispatchers.rb +0 -23
  612. data/lib/cuboid/rpc/server/dispatcher/node.rb +0 -247
  613. data/spec/cuboid/rpc/server/dispatcher/node_spec.rb +0 -222
  614. data/spec/support/logs/Dispatcher - 1520492-37227.log +0 -6
  615. data/spec/support/logs/Dispatcher - 1520680-13689.log +0 -6
  616. data/spec/support/logs/Dispatcher - 1520682-24167.log +0 -6
  617. data/spec/support/logs/Dispatcher - 1520688-42731.log +0 -6
  618. data/spec/support/logs/Dispatcher - 1520690-5750.log +0 -10
  619. data/spec/support/logs/Dispatcher - 1520692-55183.log +0 -10
  620. data/spec/support/logs/Dispatcher - 1520695-39752.log +0 -10
  621. data/spec/support/logs/Dispatcher - 1520697-44327.log +0 -10
  622. data/spec/support/logs/Dispatcher - 1520699-58785.log +0 -10
  623. data/spec/support/logs/Dispatcher - 1520701-60952.log +0 -10
  624. data/spec/support/logs/Dispatcher - 1520796-50420.log +0 -6
  625. data/spec/support/logs/Dispatcher - 1520894-56883.log +0 -6
  626. data/spec/support/logs/Dispatcher - 1520896-21419.log +0 -6
  627. data/spec/support/logs/Dispatcher - 1520898-62584.log +0 -6
  628. data/spec/support/logs/Dispatcher - 1520900-59721.log +0 -6
  629. data/spec/support/logs/Dispatcher - 1520910-51632.log +0 -6
  630. data/spec/support/logs/Dispatcher - 1520920-21801.log +0 -6
  631. data/spec/support/logs/Dispatcher - 1520930-49223.log +0 -6
  632. data/spec/support/logs/Dispatcher - 1520933-34241.log +0 -6
  633. data/spec/support/logs/Dispatcher - 1520935-64571.log +0 -6
  634. data/spec/support/logs/Dispatcher - 1520937-50734.log +0 -6
  635. data/spec/support/logs/Dispatcher - 1520939-60841.log +0 -6
  636. data/spec/support/logs/Dispatcher - 1520944-8124.log +0 -6
  637. data/spec/support/logs/Dispatcher - 1520946-25192.log +0 -16
  638. data/spec/support/logs/Dispatcher - 1520948-9752.log +0 -14
  639. data/spec/support/logs/Dispatcher - 1520952-45543.log +0 -10
  640. data/spec/support/logs/Dispatcher - 1520958-36653.log +0 -16
  641. data/spec/support/logs/Dispatcher - 1520960-17456.log +0 -14
  642. data/spec/support/logs/Dispatcher - 1520964-5774.log +0 -10
  643. data/spec/support/logs/Dispatcher - 1520976-40848.log +0 -16
  644. data/spec/support/logs/Dispatcher - 1520978-29867.log +0 -14
  645. data/spec/support/logs/Dispatcher - 1520982-17715.log +0 -10
  646. data/spec/support/logs/Dispatcher - 1520987-8925.log +0 -16
  647. data/spec/support/logs/Dispatcher - 1520989-25480.log +0 -14
  648. data/spec/support/logs/Dispatcher - 1520993-5124.log +0 -10
  649. data/spec/support/logs/Dispatcher - 1520999-12901.log +0 -16
  650. data/spec/support/logs/Dispatcher - 1521004-32265.log +0 -14
  651. data/spec/support/logs/Dispatcher - 1521008-33455.log +0 -10
  652. data/spec/support/logs/Dispatcher - 1521014-13779.log +0 -6
  653. data/spec/support/logs/Dispatcher - 1521017-14755.log +0 -6
  654. data/spec/support/logs/Dispatcher - 1521022-48687.log +0 -6
  655. data/spec/support/logs/Dispatcher - 1521024-59097.log +0 -6
  656. data/spec/support/logs/Dispatcher - 1521034-12604.log +0 -6
  657. data/spec/support/logs/Dispatcher - 1521038-64272.log +0 -6
  658. data/spec/support/logs/Dispatcher - 1521043-8680.log +0 -6
  659. data/spec/support/logs/Dispatcher - 1521047-22949.log +0 -6
  660. data/spec/support/logs/Dispatcher - 1521051-3355.log +0 -6
  661. data/spec/support/logs/Dispatcher - 1521074-12332.log +0 -6
  662. data/spec/support/logs/Dispatcher - 1521118-53130.log +0 -16
  663. data/spec/support/logs/Dispatcher - 1521128-47137.log +0 -14
  664. data/spec/support/logs/Dispatcher - 1521136-30328.log +0 -10
  665. data/spec/support/logs/Dispatcher - 1521161-21329.log +0 -16
  666. data/spec/support/logs/Dispatcher - 1521172-19183.log +0 -14
  667. data/spec/support/logs/Dispatcher - 1521179-34902.log +0 -10
  668. data/spec/support/logs/Dispatcher - 1521190-20155.log +0 -16
  669. data/spec/support/logs/Dispatcher - 1521204-43843.log +0 -14
  670. data/spec/support/logs/Dispatcher - 1521211-23972.log +0 -10
  671. data/spec/support/logs/Dispatcher - 1521237-20879.log +0 -10
  672. data/spec/support/logs/Dispatcher - 1521239-61999.log +0 -10
  673. data/spec/support/logs/Dispatcher - 1521242-20975.log +0 -16
  674. data/spec/support/logs/Dispatcher - 1521246-28409.log +0 -14
  675. data/spec/support/logs/Dispatcher - 1521250-58505.log +0 -10
  676. data/spec/support/logs/Dispatcher - 1521262-53292.log +0 -6
  677. data/spec/support/logs/Dispatcher - 1521266-42758.log +0 -6
  678. data/spec/support/logs/Dispatcher - 1521277-4215.log +0 -6
  679. data/spec/support/logs/Dispatcher - 1521292-16086.log +0 -6
  680. data/spec/support/logs/Dispatcher - 1521301-42112.log +0 -6
  681. data/spec/support/logs/Dispatcher - 1521312-61196.log +0 -6
  682. data/spec/support/logs/Dispatcher - 1521316-23353.log +0 -6
  683. data/spec/support/logs/Dispatcher - 1521321-46361.log +0 -6
  684. data/spec/support/logs/Dispatcher - 1521438-46016.log +0 -6
  685. data/spec/support/logs/Dispatcher - 1521454-49862.log +0 -6
  686. data/spec/support/logs/Dispatcher - 1521470-54737.log +0 -6
  687. data/spec/support/logs/Scheduler - 1520469-35703.log +0 -3
  688. data/spec/support/logs/Scheduler - 1520473-60524.log +0 -6
  689. data/spec/support/logs/Scheduler - 1520509-34951.log +0 -3
  690. data/spec/support/logs/Scheduler - 1520517-31455.log +0 -6
  691. data/spec/support/logs/Scheduler - 1520529-43808.log +0 -4
  692. data/spec/support/logs/Scheduler - 1520536-23387.log +0 -1
  693. data/spec/support/logs/Scheduler - 1520549-48260.log +0 -3
  694. data/spec/support/logs/Scheduler - 1520563-45636.log +0 -6
  695. data/spec/support/logs/Scheduler - 1520599-40643.log +0 -3
  696. data/spec/support/logs/Scheduler - 1520608-54106.log +0 -6
  697. data/spec/support/logs/Scheduler - 1520629-24722.log +0 -3
  698. data/spec/support/logs/Scheduler - 1520637-61755.log +0 -6
  699. data/spec/support/logs/Scheduler - 1520663-17447.log +0 -4
  700. data/spec/support/logs/Scheduler - 1520671-38282.log +0 -6
  701. data/spec/support/logs/Scheduler - 1520703-33082.log +0 -1
  702. data/spec/support/logs/Scheduler - 1520706-22309.log +0 -1
  703. data/spec/support/logs/Scheduler - 1520709-1816.log +0 -1
  704. data/spec/support/logs/Scheduler - 1520711-19998.log +0 -1
  705. data/spec/support/logs/Scheduler - 1520714-47570.log +0 -1
  706. data/spec/support/logs/Scheduler - 1520723-18521.log +0 -1
  707. data/spec/support/logs/Scheduler - 1520725-40913.log +0 -3
  708. data/spec/support/logs/Scheduler - 1520749-45742.log +0 -6
  709. data/spec/support/logs/Scheduler - 1520759-44350.log +0 -4
  710. data/spec/support/logs/Scheduler - 1520770-53219.log +0 -1
  711. data/spec/support/logs/Scheduler - 1520773-54792.log +0 -1
  712. data/spec/support/logs/Scheduler - 1520777-19636.log +0 -1
  713. data/spec/support/logs/Scheduler - 1520780-51801.log +0 -1
  714. data/spec/support/logs/Scheduler - 1520782-9652.log +0 -3
  715. data/spec/support/logs/Scheduler - 1520786-59472.log +0 -1
  716. data/spec/support/logs/Scheduler - 1520789-1603.log +0 -1
  717. data/spec/support/logs/Scheduler - 1520792-35476.log +0 -1
  718. data/spec/support/logs/Scheduler - 1521410-47324.log +0 -16
  719. data/spec/support/logs/Scheduler - 1521422-33737.log +0 -6
  720. data/spec/support/logs/Scheduler - 1521433-36637.log +0 -6
  721. data/spec/support/logs/Scheduler - 1521440-15066.log +0 -6
  722. data/spec/support/logs/Scheduler - 1521456-48637.log +0 -3
  723. data/spec/support/logs/Scheduler - 1521472-54425.log +0 -5
  724. data/spec/support/logs/Scheduler - 1521496-12923.log +0 -1
  725. data/spec/support/logs/Scheduler - 1521518-46819.log +0 -1
  726. data/spec/support/logs/Scheduler - 1521522-21417.log +0 -1
  727. data/spec/support/logs/Scheduler - 1521525-35088.log +0 -1
  728. data/spec/support/logs/Scheduler - 1521528-13676.log +0 -1
  729. data/spec/support/logs/Scheduler - 1521530-48176.log +0 -1
  730. data/spec/support/logs/Scheduler - 1521532-13207.log +0 -1
  731. data/spec/support/logs/Scheduler - 1521535-5799.log +0 -3
  732. data/spec/support/logs/Scheduler - 1521543-62784.log +0 -3
  733. data/spec/support/logs/Scheduler - 1521551-10263.log +0 -3
  734. data/spec/support/logs/Scheduler - 1521556-56026.log +0 -3
  735. data/spec/support/logs/Scheduler - 1521560-14551.log +0 -4
  736. data/spec/support/logs/Scheduler - 1521573-47584.log +0 -1
  737. data/spec/support/logs/Scheduler - 1521578-14443.log +0 -4
  738. data/spec/support/logs/Scheduler - 1521580-60337.log +0 -1
  739. data/spec/support/logs/Scheduler - 1521583-52039.log +0 -1
  740. data/spec/support/logs/Scheduler - 1521586-1500.log +0 -16
  741. data/spec/support/logs/Scheduler - 1521598-61298.log +0 -4
  742. data/spec/support/logs/Scheduler - 1521602-61490.log +0 -1
  743. data/spec/support/logs/Scheduler - 1521604-29209.log +0 -1
  744. data/spec/support/logs/Scheduler - 1521606-47734.log +0 -1
  745. data/spec/support/logs/Scheduler - 1521612-63269.log +0 -1
  746. data/spec/support/logs/Scheduler - 1521614-47018.log +0 -3
  747. data/spec/support/logs/Scheduler - 1521619-32411.log +0 -1
  748. data/spec/support/logs/Scheduler - 1521621-42861.log +0 -1
  749. data/spec/support/logs/Scheduler - 1521623-56258.log +0 -1
  750. data/spec/support/logs/Scheduler - 1521627-9487.log +0 -1
  751. data/spec/support/logs/Scheduler - 1521630-3345.log +0 -1
  752. data/spec/support/logs/Scheduler - 1521632-47325.log +0 -1
  753. data/spec/support/logs/Scheduler - 1521635-22156.log +0 -2
  754. data/spec/support/logs/output_spec_1520329.log +0 -390
  755. data/spec/support/reports/003bed585153336c2548d1c60a026a3e.crf +0 -0
  756. data/spec/support/reports/30e3c7a8c13e9b40a0a443a5e5a4ff94.crf +0 -0
  757. data/spec/support/reports/31655751a9f0eee91e588bc796985b1e.crf +0 -0
  758. data/spec/support/reports/40801b7993c0ed919b73242a9c078dde.crf +0 -0
  759. data/spec/support/reports/4719b89667e92bb80102f4b0bb4c0c75.crf +0 -0
  760. data/spec/support/reports/4e765a3d2870d2763ea72167bd3db9d6.crf +0 -0
  761. data/spec/support/reports/61968f732d8ae715c104175e43679915.crf +0 -0
  762. data/spec/support/reports/63446a8ec637d9991b8c6a1151ae59a9.crf +0 -0
  763. data/spec/support/reports/737144b18305c7a115ad7964b9bbe41c.crf +0 -0
  764. data/spec/support/reports/73fe5f7adf905045c3fe4669bdf60d02.crf +0 -0
  765. data/spec/support/reports/86cd396db9ef97472876f32e57c44ce7.crf +0 -0
  766. data/spec/support/reports/8a031ac2b2730dfd07a1d1ca870299f2.crf +0 -0
  767. data/spec/support/reports/8e16ac74484ee5d8cf7073fe22adf787.crf +0 -0
  768. data/spec/support/reports/8eff857213ab6ff712a0b0e8582855c9.crf +0 -0
  769. data/spec/support/reports/9e0e6ed8718973b3d4e63bbb7dd1d1c6.crf +0 -0
  770. data/spec/support/reports/a9c88f967d09cb9c4e8e1180cfb24828.crf +0 -0
  771. data/spec/support/reports/ba32970a64686e45ec8caa5032f65c2e.crf +0 -0
  772. data/spec/support/reports/cceb7596659fd619ab4438953cbda78b.crf +0 -0
  773. data/spec/support/reports/d2e0f4558b605ffd1215e9226815b951.crf +0 -0
  774. data/spec/support/snapshots/Cuboid 2022-01-24 14_38_16 +0200 8238609e31cedaf1bcb89205f9d42121.csf +0 -0
  775. data/spec/support/snapshots/Cuboid 2022-01-24 14_38_30 +0200 68690b002e79c7bc9e3aabfcbc7ac5a7.csf +0 -0
  776. data/spec/support/snapshots/Cuboid 2022-01-24 14_46_39 +0200 6fd3c9491d3e784e18f9c3c0d9deddec.csf +0 -0
  777. data/spec/support/snapshots/Cuboid 2022-01-24 14_46_44 +0200 c3a012fba59210bc7c169afb0565d5a8.csf +0 -0
  778. data/spec/support/snapshots/Cuboid 2022-01-24 14_46_46 +0200 e4c1ce35d8e62e6a16f84eccd36b2283.csf +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b01651b87b7bf659764002cbb1aaa3b8293caf047f9675874b7393dd36c54ced
4
- data.tar.gz: 0b831b738a29e23eecdb949e17079294eb75b57cc902395ec54021cd2d923bee
3
+ metadata.gz: d9533dcacaf536c3e740993765c95acabe9ef309f47d0ee9abb17057ba20248b
4
+ data.tar.gz: 0557ca182b8e7589dca448e75062bb87444716b6d36a7fc257d678efa7090fd3
5
5
  SHA512:
6
- metadata.gz: 4aaca66ce49f16888f68e39d84c4d2d9e3f81b7cc8551b31ee6f74505d0c379a6aa92443e698724da65babd8d32c3f9cc5695c272cca4d5d0c2e4d9637d50f6a
7
- data.tar.gz: 258a9295ef9d4765ef9f8cc9ff60ec53e2ee2b11cb342069db7574853ce7db8c1bceb242c80012170a52bba8b9e8f1a489d7969b150e0be15135aa70a0ba15b6
6
+ metadata.gz: 1ceff653d44e2821fc770c6913fdb9de57922bbfd809f20a043746c2c0f2ddb0103f1e77156bdb103047fd6770bf2968ad9183db5ad6bf623a73965848082be1
7
+ data.tar.gz: 96d5ef822e102d7200068b192ef9f4817d0dba02e4d01a8f83c6aaafa7d2d997947d170bee8a344d61f7657ad29d54e0d7b30042c874e5f53dade035a20f15c2
data/CHANGELOG.md CHANGED
@@ -0,0 +1,10 @@
1
+ # 0.1.3
2
+
3
+ * `Agent`
4
+ * `#preferred`, `#spawn`: Replaced `load_balance` override with `direct` `strategy`.
5
+
6
+ # 0.1.0
7
+
8
+ * `Dispatcher` => `Agent`
9
+ * `Dispatcher#dispatch` => `Agent#spawn`
10
+ * `neighbour` => `peer`
data/README.md CHANGED
@@ -10,8 +10,8 @@ _Cloud_ within a _Cloud_.
10
10
 
11
11
  It offers:
12
12
 
13
- * Load-balancing of _**Instances**_ via a software mesh network (_**Grid**_) of _**Dispatchers**_.
14
- * No need to setup a topology manually, _**Dispatchers**_ will reach
13
+ * Load-balancing of _**Instances**_ via a network (_**Grid**_) of _**Agents**_.
14
+ * No need to setup a topology manually, _**Agents**_ will reach
15
15
  convergence on their own, just point them to an existing _**Grid**_ member.
16
16
  * Scaling up and down can be easily achieved by _plugging_ or _unplugging_ nodes.
17
17
  * Horizontal (`default`) and vertical workload distribution strategies available.
@@ -58,7 +58,7 @@ framework:
58
58
  * `:restore`
59
59
  * `instance_service_for( Symbol, Class )` -- Adds a custom _**Instance**_ RPC API.
60
60
  * `rest_service_for( Symbol, Module )` -- Hooks-up to the _**REST**_ service to provide a custom REST API.
61
- * `dispatcher_service_for( Symbol, Class )` -- Hooks-up to the _**Dispatcher**_ to provide a custom RPC API.
61
+ * `agent_service_for( Symbol, Class )` -- Hooks-up to the _**Agent**_ to provide a custom RPC API.
62
62
  * `serialize_with( Module )` -- A serializer to be used for:
63
63
  * `#options`
64
64
  * `Report#data`
@@ -84,10 +84,10 @@ This is in order to enforce isolation (_state_, _data_, _fault_) between
84
84
  _**Applications**_, take advantage of _OS_ task management and generally keep
85
85
  things simple.
86
86
 
87
- ### Dispatcher
87
+ ### Agent
88
88
 
89
- A _**Dispatcher**_ is a server which awaits for _**Instance**_ spawn requests
90
- (`dispatch` calls) upon which it spawns and passes the _**Instance**_'s
89
+ A _**Agent**_ is a server which awaits for _**Instance**_ spawn requests
90
+ (`spawn` calls) upon which it spawns and passes the _**Instance**_'s
91
91
  connection info to the client.
92
92
 
93
93
  The client can then proceed to use the _**Instance**_ to run and generally manage
@@ -95,7 +95,7 @@ the contained _**Application**_.
95
95
 
96
96
  #### Grid
97
97
 
98
- A _**Dispatcher**_ _**Grid**_ is a software mesh network of _**Dispatcher**_
98
+ A _**Agent**_ _**Grid**_ is a software mesh network of _**Agent**_
99
99
  servers, aimed towards providing automated _load-balancing_ based on available
100
100
  system resources and each _**Application**_'s provisioning configuration.
101
101
 
@@ -104,11 +104,11 @@ providing any existing _**Grid**_ member upon start-up and the rest will be
104
104
  sorted out automatically.
105
105
 
106
106
  The network is _self-healing_ and will monitor _node_ connectivity, taking steps
107
- to ensure that neither server nor network conditions will disrupt dispatching.
107
+ to ensure that neither server nor network conditions will disrupt spawning.
108
108
 
109
109
  ##### Scalability
110
110
 
111
- _**Dispatchers**_ can be easily _plugged_ to or _unplugged_ from the _**Grid**_
111
+ _**Agents**_ can be easily _plugged_ to or _unplugged_ from the _**Grid**_
112
112
  to scale up or down as necessary.
113
113
 
114
114
  _Plugging_ happens at boot-time and _unplugging_ can take place via the available
@@ -125,12 +125,12 @@ The _**Scheduler**_ is a server which:
125
125
  5. Upon _**Application**_ completion stores report to disk.
126
126
  6. Shuts down the _**Instance**_.
127
127
 
128
- #### Dispatcher
128
+ #### Agent
129
129
 
130
- The _**Scheduler**_ can be configured with a _**Dispatcher**_, upon which case,
130
+ The _**Scheduler**_ can be configured with a _**Agent**_, upon which case,
131
131
  it will use it to spawn _**Instances**_.
132
132
 
133
- If the _**Dispatcher**_ is a _**Grid**_ member then the _**Scheduler**_ will
133
+ If the _**Agent**_ is a _**Grid**_ member then the _**Scheduler**_ will
134
134
  also enjoy _load-balancing_ features.
135
135
 
136
136
  ## APIs
@@ -154,7 +154,7 @@ RPC interface.
154
154
  A REST API is also available, taking advantage of HTTP sessions to make progress
155
155
  tracking easier.
156
156
 
157
- The REST interface is basically a web _**Dispatcher**_ and centralised point of
157
+ The REST interface is basically a web _**Agent**_ and centralised point of
158
158
  management for the rest of the entities.
159
159
 
160
160
  Each _**Application**_ can extend upon this and expose an API via its _**REST**_
data/cuboid.gemspec CHANGED
@@ -42,12 +42,8 @@ Gem::Specification.new do |s|
42
42
  # RPC serialization.
43
43
  s.add_dependency 'msgpack', '1.1.0'
44
44
 
45
- # Optimized JSON.
46
- s.add_dependency 'oj', '3.11.5'
47
- s.add_dependency 'oj_mimic_json', '1.0.1'
48
-
49
45
  # Web server
50
- s.add_dependency 'puma', '5.5.2'
46
+ s.add_dependency 'puma', '5.6.2'
51
47
 
52
48
  s.add_dependency 'rack', '2.2.3'
53
49
  s.add_dependency 'rack-test'
@@ -103,15 +103,15 @@ class Application
103
103
  @max_memory ||= 0
104
104
  end
105
105
 
106
- def provision_disk( ram )
107
- @max_disk = ram
106
+ def provision_disk( disk )
107
+ @max_disk = disk
108
108
  end
109
109
 
110
110
  def max_disk
111
- @max_memory ||= 0
111
+ @max_disk ||= 0
112
112
  end
113
113
 
114
- def instance_service_for(name, service )
114
+ def instance_service_for( name, service )
115
115
  instance_services[name] = service
116
116
  end
117
117
 
@@ -127,12 +127,12 @@ class Application
127
127
  @rest_services ||= {}
128
128
  end
129
129
 
130
- def dispatcher_service_for( name, service )
131
- dispatcher_services[name] = service
130
+ def agent_service_for( name, service )
131
+ agent_services[name] = service
132
132
  end
133
133
 
134
- def dispatcher_services
135
- @dispatcher_services ||= {}
134
+ def agent_services
135
+ @agent_services ||= {}
136
136
  end
137
137
 
138
138
  def handler_for( signal, handler )
@@ -183,8 +183,8 @@ class Application
183
183
  case type
184
184
  when :instance
185
185
  const = :Instances
186
- when :dispatcher
187
- const = :Dispatchers
186
+ when :agent
187
+ const = :Agents
188
188
  when :scheduler
189
189
  const = :Schedulers
190
190
  when :rest
@@ -1,14 +1,14 @@
1
1
  module Cuboid::OptionGroups
2
2
 
3
- # Holds options for {RPC::Server::Dispatcher} servers.
3
+ # Holds options for {RPC::Server::Agent} servers.
4
4
  #
5
5
  # @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
6
- class Dispatcher < Cuboid::OptionGroup
6
+ class Agent < Cuboid::OptionGroup
7
7
 
8
- STRATEGIES = Set.new([:horizontal, :vertical])
8
+ STRATEGIES = Set.new([:horizontal, :vertical, :direct])
9
9
 
10
10
  # @return [String]
11
- # URL of a {RPC::Server::Dispatcher}.
11
+ # URL of a {RPC::Server::Agent}.
12
12
  attr_accessor :url
13
13
 
14
14
  # @return [Array<Integer>]
@@ -17,18 +17,18 @@ class Dispatcher < Cuboid::OptionGroup
17
17
  attr_accessor :instance_port_range
18
18
 
19
19
  # @return [String]
20
- # The URL of a neighbouring {RPC::Server::Dispatcher}, applicable when
21
- # {RPC::Server::Dispatcher} are connected to each other to form a Grid.
20
+ # The URL of a peering {RPC::Server::Agent}, applicable when
21
+ # {RPC::Server::Agent} are connected to each other to form a Grid.
22
22
  #
23
- # @see RPC::Server::Dispatcher::Node
24
- attr_accessor :neighbour
23
+ # @see RPC::Server::Agent::Node
24
+ attr_accessor :peer
25
25
 
26
26
  # @return [Float]
27
- # How regularly to check for neighbour statuses.
27
+ # How regularly to check for peer statuses.
28
28
  attr_accessor :ping_interval
29
29
 
30
30
  # @return [String]
31
- # Dispatcher name.
31
+ # Agent name.
32
32
  attr_accessor :name
33
33
 
34
34
  attr_accessor :strategy
@@ -70,7 +70,7 @@ class Paths < Cuboid::OptionGroup
70
70
 
71
71
  # @!attribute executables
72
72
  # @return [String]
73
- # System processes (instance, dispatcher, browser, etc.).
73
+ # System processes (instance, agent, browser, etc.).
74
74
 
75
75
  def initialize
76
76
  @root = self.root_path
@@ -76,7 +76,7 @@ class Options
76
76
  require_relative 'option_groups'
77
77
 
78
78
  TO_RPC_IGNORE = Set.new([
79
- :instance, :rpc, :dispatcher, :queue, :paths,
79
+ :instance, :rpc, :agent, :queue, :paths,
80
80
  :snapshot, :report, :output, :system
81
81
  ])
82
82
 
@@ -2,28 +2,28 @@ module Cuboid
2
2
  module Processes
3
3
 
4
4
  #
5
- # Helper for managing {RPC::Server::Dispatcher} processes.
5
+ # Helper for managing {RPC::Server::Agent} processes.
6
6
  #
7
7
  # @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
8
8
  #
9
- class Dispatchers
9
+ class Agents
10
10
  include Singleton
11
11
  include Utilities
12
12
 
13
- # @return [Array<String>] URLs of all running Dispatchers.
13
+ # @return [Array<String>] URLs of all running Agents.
14
14
  attr_reader :list
15
15
 
16
16
  def initialize
17
17
  @list = []
18
- @dispatcher_connections = {}
18
+ @agent_connections = {}
19
19
  end
20
20
 
21
- # Connects to a Dispatcher by URL.
21
+ # Connects to a Agent by URL.
22
22
  #
23
- # @param [String] url URL of the Dispatcher.
23
+ # @param [String] url URL of the Agent.
24
24
  # @param [Hash] options Options for the RPC client.
25
25
  #
26
- # @return [RPC::Client::Dispatcher]
26
+ # @return [RPC::Client::Agent]
27
27
  def connect( url, options = nil )
28
28
  Arachni::Reactor.global.run_in_thread if !Arachni::Reactor.global.running?
29
29
 
@@ -33,26 +33,26 @@ class Dispatchers
33
33
  end
34
34
 
35
35
  if fresh
36
- @dispatcher_connections[url] = RPC::Client::Dispatcher.new( url, options )
36
+ @agent_connections[url] = RPC::Client::Agent.new( url, options )
37
37
  else
38
- @dispatcher_connections[url] ||= RPC::Client::Dispatcher.new( url, options )
38
+ @agent_connections[url] ||= RPC::Client::Agent.new( url, options )
39
39
  end
40
40
  end
41
41
 
42
- # @param [Block] block Block to pass an RPC client for each Dispatcher.
42
+ # @param [Block] block Block to pass an RPC client for each Agent.
43
43
  def each( &block )
44
44
  @list.each do |url|
45
45
  block.call connect( url )
46
46
  end
47
47
  end
48
48
 
49
- # Spawns a {RPC::Server::Dispatcher} process.
49
+ # Spawns a {RPC::Server::Agent} process.
50
50
  #
51
51
  # @param [Hash] options
52
52
  # To be passed to {Cuboid::Options#set}. Allows `address` instead of
53
53
  # `rpc_server_address` and `port` instead of `rpc_port`.
54
54
  #
55
- # @return [RPC::Client::Dispatcher]
55
+ # @return [RPC::Client::Agent]
56
56
  def spawn( options = {} )
57
57
  options = options.dup
58
58
  fork = options.delete(:fork)
@@ -63,9 +63,9 @@ class Dispatchers
63
63
  }
64
64
 
65
65
  options = {
66
- dispatcher: {
66
+ agent: {
67
67
  name: options[:name],
68
- neighbour: options[:neighbour],
68
+ peer: options[:peer],
69
69
  strategy: options[:strategy],
70
70
  },
71
71
  rpc: {
@@ -88,11 +88,11 @@ class Dispatchers
88
88
  options[:rpc].delete :server_external_address
89
89
  end
90
90
 
91
- if options[:dispatcher][:neighbour].nil?
92
- options[:dispatcher].delete :neighbour
91
+ if options[:agent][:peer].nil?
92
+ options[:agent].delete :peer
93
93
  end
94
94
 
95
- pid = Manager.spawn( :dispatcher, options: options, fork: fork )
95
+ pid = Manager.spawn( :agent, options: options, fork: fork )
96
96
 
97
97
  url = "#{options[:rpc][:server_address]}:#{options[:rpc][:server_port]}"
98
98
  while sleep( 0.1 )
@@ -110,26 +110,26 @@ class Dispatchers
110
110
 
111
111
  def grid_spawn( options = {} )
112
112
  d = spawn( options )
113
- spawn( options.merge neighbour: d.url )
113
+ spawn( options.merge peer: d.url )
114
114
  end
115
115
 
116
- # @note Will also kill all Instances started by the Dispatcher.
116
+ # @note Will also kill all Instances started by the Agent.
117
117
  #
118
- # @param [String] url URL of the Dispatcher to kill.
118
+ # @param [String] url URL of the Agent to kill.
119
119
  def kill( url )
120
- dispatcher = connect( url )
121
- Manager.kill_many dispatcher.statistics['consumed_pids']
122
- Manager.kill dispatcher.pid
120
+ agent = connect( url )
121
+ Manager.kill_many agent.statistics['consumed_pids']
122
+ Manager.kill agent.pid
123
123
  rescue => e
124
124
  #ap e
125
125
  #ap e.backtrace
126
126
  nil
127
127
  ensure
128
128
  @list.delete( url )
129
- @dispatcher_connections.delete( url )
129
+ @agent_connections.delete( url )
130
130
  end
131
131
 
132
- # Kills all {Dispatchers #list}.
132
+ # Kills all {Agents #list}.
133
133
  def killall
134
134
  @list.dup.each do |url|
135
135
  kill url
@@ -0,0 +1,5 @@
1
+ require Options.paths.lib + 'rpc/server/agent'
2
+
3
+ Arachni::Reactor.global.run do
4
+ RPC::Server::Agent.new
5
+ end
@@ -0,0 +1,23 @@
1
+ # @param (see Cuboid::Processes::Agents#spawn)
2
+ # @return (see Cuboid::Processes::Agents#spawn)
3
+ def agent_spawn( *args )
4
+ Cuboid::Processes::Agents.spawn( *args )
5
+ end
6
+
7
+ # @param (see Cuboid::Processes::Agents#kill)
8
+ # @return (see Cuboid::Processes::Agents#kill)
9
+ def agent_kill( *args )
10
+ Cuboid::Processes::Agents.kill( *args )
11
+ end
12
+
13
+ # @param (see Cuboid::Processes::Agents#killall)
14
+ # @return (see Cuboid::Processes::Agents#killall)
15
+ def agent_killall
16
+ Cuboid::Processes::Agents.killall
17
+ end
18
+
19
+ # @param (see Cuboid::Processes::Agents#connect)
20
+ # @return (see Cuboid::Processes::Agents#connect)
21
+ def agent_connect( *args )
22
+ Cuboid::Processes::Agents.connect( *args )
23
+ end
@@ -10,10 +10,10 @@ def instance_grid_spawn( *args )
10
10
  Cuboid::Processes::Instances.grid_spawn( *args )
11
11
  end
12
12
 
13
- # @param (see Cuboid::Processes::Instances#dispatcher_spawn)
14
- # @return (see Cuboid::Processes::Instances#dispatcher_spawn)
15
- def instance_dispatcher_spawn( *args )
16
- Cuboid::Processes::Instances.dispatcher.spawn( *args )
13
+ # @param (see Cuboid::Processes::Instances#agent_spawn)
14
+ # @return (see Cuboid::Processes::Instances#agent_spawn)
15
+ def instance_agent_spawn( *args )
16
+ Cuboid::Processes::Instances.agent.spawn( *args )
17
17
  end
18
18
 
19
19
  def instance_kill( url )
@@ -1,4 +1,4 @@
1
1
  require_relative 'helpers/processes'
2
- require_relative 'helpers/dispatchers'
2
+ require_relative 'helpers/agents'
3
3
  require_relative 'helpers/instances'
4
4
  require_relative 'helpers/schedulers'
@@ -21,7 +21,7 @@ class Instances
21
21
  #
22
22
  # Connects to a Instance by URL.
23
23
  #
24
- # @param [String] url URL of the Dispatcher.
24
+ # @param [String] url URL of the Agent.
25
25
  # @param [String] token
26
26
  # Authentication token -- only need be provided once.
27
27
  #
@@ -125,10 +125,10 @@ class Instances
125
125
  end
126
126
  end
127
127
 
128
- # Starts {RPC::Server::Dispatcher} grid and returns a high-performance Instance.
128
+ # Starts {RPC::Server::Agent} grid and returns a high-performance Instance.
129
129
  #
130
130
  # @param [Hash] options
131
- # @option options [Integer] :grid_size (3) Amount of Dispatchers to spawn.
131
+ # @option options [Integer] :grid_size (3) Amount of Agents to spawn.
132
132
  #
133
133
  # @return [RPC::Client::Instance]
134
134
  def grid_spawn(options = {} )
@@ -136,23 +136,23 @@ class Instances
136
136
 
137
137
  last_member = nil
138
138
  options[:grid_size].times do |i|
139
- last_member = Dispatchers.spawn(
140
- neighbour: last_member ? last_member.url : last_member,
139
+ last_member = Agents.spawn(
140
+ peer: last_member ? last_member.url : last_member,
141
141
  pipe_id: Utilities.available_port.to_s + Utilities.available_port.to_s
142
142
  )
143
143
  end
144
144
 
145
145
  info = nil
146
- info = last_member.dispatch while !info && sleep( 0.1 )
146
+ info = last_member.spawn while !info && sleep( 0.1 )
147
147
 
148
148
  connect( info['url'], info['token'] )
149
149
  end
150
150
 
151
- # Starts {RPC::Server::Dispatcher} and returns an Instance.
151
+ # Starts {RPC::Server::Agent} and returns an Instance.
152
152
  #
153
153
  # @return [RPC::Client::Instance]
154
- def dispatcher_spawn
155
- info = Dispatchers.spawn.dispatch
154
+ def agent_spawn
155
+ info = Agents.spawn.spawn
156
156
  connect( info['url'], info['token'] )
157
157
  end
158
158
 
@@ -61,8 +61,8 @@ class Schedulers
61
61
  }
62
62
 
63
63
  options = {
64
- dispatcher: {
65
- url: options[:dispatcher],
64
+ agent: {
65
+ url: options[:agent],
66
66
  strategy: options[:strategy]
67
67
  },
68
68
  rpc: {
@@ -3,11 +3,11 @@ require 'ostruct'
3
3
 
4
4
  lib = Cuboid::Options.paths.lib
5
5
  require lib + 'rpc/client/instance'
6
- require lib + 'rpc/client/dispatcher'
6
+ require lib + 'rpc/client/agent'
7
7
  require lib + 'rpc/client/scheduler'
8
8
 
9
9
  lib = Cuboid::Options.paths.lib + 'processes/'
10
10
  require lib + 'manager'
11
- require lib + 'dispatchers'
11
+ require lib + 'agents'
12
12
  require lib + 'instances'
13
13
  require lib + 'schedulers'
data/lib/cuboid/report.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require_relative 'rpc/serializer'
2
+ require 'time'
2
3
 
3
4
  module Cuboid
4
5
 
@@ -5,10 +5,10 @@ class Server
5
5
  module InstanceHelpers
6
6
 
7
7
  @@instances = {}
8
- @@dispatchers = {}
8
+ @@agents = {}
9
9
 
10
10
  def get_instance
11
- if dispatcher
11
+ if agent
12
12
  options = {
13
13
  owner: self.class.to_s,
14
14
  helpers: {
@@ -18,7 +18,7 @@ module InstanceHelpers
18
18
  }
19
19
  }
20
20
 
21
- if (info = dispatcher.dispatch( options ))
21
+ if (info = agent.spawn( options ))
22
22
  connect_to_instance( info['url'], info['token'] )
23
23
  end
24
24
  else
@@ -26,24 +26,24 @@ module InstanceHelpers
26
26
  end
27
27
  end
28
28
 
29
- def dispatchers
30
- @@dispatchers.keys
29
+ def agents
30
+ @@agents.keys
31
31
  end
32
32
 
33
- def dispatcher
34
- return if !Options.dispatcher.url
35
- @dispatcher ||= connect_to_dispatcher( Options.dispatcher.url )
33
+ def agent
34
+ return if !Options.agent.url
35
+ @agent ||= connect_to_agent( Options.agent.url )
36
36
  end
37
37
 
38
- def unplug_dispatcher( url )
39
- connect_to_dispatcher( url ).node.unplug
38
+ def unplug_agent( url )
39
+ connect_to_agent( url ).node.unplug
40
40
 
41
- c = @@dispatchers.delete( url )
41
+ c = @@agents.delete( url )
42
42
  c.close if c
43
43
  end
44
44
 
45
- def connect_to_dispatcher( url )
46
- @@dispatchers[url] ||= RPC::Client::Dispatcher.new( url )
45
+ def connect_to_agent( url )
46
+ @@agents[url] ||= RPC::Client::Agent.new( url )
47
47
  end
48
48
 
49
49
  def connect_to_instance( url, token )
@@ -3,32 +3,32 @@ module Rest
3
3
  class Server
4
4
  module Routes
5
5
 
6
- module Dispatcher
6
+ module Agent
7
7
 
8
8
  def self.registered( app )
9
9
 
10
- app.get '/dispatcher/url' do
11
- ensure_dispatcher!
10
+ app.get '/agent/url' do
11
+ ensure_agent!
12
12
 
13
- json Options.dispatcher.url
13
+ json Options.agent.url
14
14
  end
15
15
 
16
- app.put '/dispatcher/url' do
16
+ app.put '/agent/url' do
17
17
  url = ::JSON.load( request.body.read ) || {}
18
18
 
19
19
  handle_error do
20
- connect_to_dispatcher( url ).alive?
20
+ connect_to_agent( url ).alive?
21
21
 
22
- @dispatcher = nil
23
- Options.dispatcher.url = url
22
+ @agent = nil
23
+ Options.agent.url = url
24
24
  json nil
25
25
  end
26
26
  end
27
27
 
28
- app.delete '/dispatcher/url' do
29
- ensure_dispatcher!
28
+ app.delete '/agent/url' do
29
+ ensure_agent!
30
30
 
31
- json @dispatcher = Options.dispatcher.url = nil
31
+ json @agent = Options.agent.url = nil
32
32
  end
33
33
 
34
34
  end
@@ -8,24 +8,24 @@ module Grid
8
8
  def self.registered( app )
9
9
 
10
10
  app.get '/grid' do
11
- ensure_dispatcher!
11
+ ensure_agent!
12
12
 
13
13
  handle_error do
14
- json [Options.dispatcher.url] + dispatcher.statistics['node']['neighbours']
14
+ json [Options.agent.url] + agent.statistics['node']['peers']
15
15
  end
16
16
  end
17
17
 
18
- app.get '/grid/:dispatcher' do |url|
19
- ensure_dispatcher!
18
+ app.get '/grid/:agent' do |url|
19
+ ensure_agent!
20
20
 
21
- handle_error { json connect_to_dispatcher( url ).statistics }
21
+ handle_error { json connect_to_agent( url ).statistics }
22
22
  end
23
23
 
24
- app.delete '/grid/:dispatcher' do |url|
25
- ensure_dispatcher!
24
+ app.delete '/grid/:agent' do |url|
25
+ ensure_agent!
26
26
 
27
27
  handle_error do
28
- unplug_dispatcher( url )
28
+ unplug_agent( url )
29
29
  end
30
30
 
31
31
  json nil
@@ -16,7 +16,7 @@ module Instances
16
16
 
17
17
  # Create
18
18
  app.post '/instances' do
19
- max_utilization! if !dispatcher && System.max_utilization?
19
+ max_utilization! if !agent && System.max_utilization?
20
20
 
21
21
  options = ::JSON.load( request.body.read ) || {}
22
22