Guest User

Untitled

a guest
Jul 21st, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. [13:14] <bobmcw> morning!
  2. [13:16] <bobmcw> jc3: getting rid of app/tasks/*_task.rb ?
  3. <jc3> if possible
  4. <bobmcw> just app/tasks/**.rb?
  5. <jc3> or lib/ or models/ or wherever
  6. <bobmcw> how do we know what classes to set up queues for?
  7. <bobmcw> at deploy time
  8. <bobmcw> and MessageListeners, etc?
  9. [13:17] <bobmcw> messaging.yml is sufficient?
  10. <jc3> handle_asynchronously would do that at runtime.
  11. <jc3> no messaging.yml is required
  12. <bobmcw> I'm confused then
  13. <bobmcw> what runtime is executing to set this stuff up?
  14. [13:18] <bobmcw> something in config/initializers/ ?
  15. *** tcrawley (~tcrawley@adsl-250-176-43.ard.bellsouth.net) has quit:
  16. Remote host closed the connection
  17. <bobmcw> * N Ruby in M pools on Z nodes of a cluster?
  18. <jc3> you could do it in an initializer, or whenever a model class is
  19. loaded. the latter is the DelayedJob use case we're targeting.
  20. [13:19] <bobmcw> so, queues are emphemeral, only popping into existance when
  21. needed?
  22. <jc3> i'm making the assumption that Queue.new().start clusters.
  23. <jc3> bobmcw: correct
  24. <bobmcw> only for tasks, or adjusting MessageProcessors also?
  25. <jc3> only for tasks to start
  26. [13:20] <bobmcw> 'k
  27. <bobmcw> definitely going to want a walk-thru on this once it's wired
  28. up some
  29. [13:21] <jc3> sure. it's kinda all theory in my head "it *should* work" atm
  30. anyway. :)
  31. <bobmcw> I'm just concerned about runtime init of "global"-ish things,
  32. when we have N Rubys running initializers
  33. [13:22] <bobmcw> if it works, glorious
  34. <jc3> i'm too ignorant to share your concern about that. :)
  35. <bobmcw> also, concerns about do we want the Web RuntimePool doing the
  36. same init as the Messaging RuntimePool and the Jobs
  37. RuntimePool
  38. [13:23] <bobmcw> not just the multiplicity perhaps within a single pool
  39. [13:24] <jc3> i need to understand those concerns.
  40. <bobmcw> you know we have a handful of RubyRuntimePools
  41. <bobmcw> each backed by the same RubyRuntimeFactory, which has an impl
  42. of RubyRuntimeInitilizer
  43. [13:25] <bobmcw> which is what deals with config.ru or config/boot.rb, to
  44. bootstrap a bare Ruby into an app-specific environment
  45. <bobmcw> each pool normally gets at least 1 fresh, initialized Ruby
  46. from the Factory
  47. <bobmcw> each one having executeScript("config/boot.rb" )
  48. <bobmcw> thence config/initializers/**.rb
  49. <bobmcw> every Ruby produced by the factory runs that code
  50. <bobmcw> at least one per pool, possibly more, if we have a min/max
  51. pool
  52. [13:26] <bobmcw> if we have a min/max pool, "possibly more" could also be
  53. "possibly much later"
  54. <bobmcw> if it takes us hours to saturate the min of the pool, and
  55. need to fill it up some
  56. <bobmcw> so, config/initializers/delayed_stuff.rb could execute N
  57. times, over a long stretch of time, within a single app
  58. deployment
  59. [13:27] <bobmcw> only once per Ruby, but we have a lot of Ruby
  60. <bobmcw> bbrowning: didja figure out your mvn query?
  61. <jc3> i think Queue.start is idempotent
  62. <bbrowning> bobmcw: yeah mvn's doing what I want
  63. <bbrowning> answer was to add another pom
  64. <bbrowning> surplus is down to +2
  65. <bobmcw> do we ever subsequently stop() the queue?
  66. <jc3> bobmcw: no. :)
  67. <jc3> but i'm ok with that.
  68. <bobmcw> okay, that helps :)
  69. [13:28] <bobmcw> else, we get into ref-counting of start/stop
  70. <jc3> right
  71. <bobmcw> semaphore!
  72. <bobmcw> okay, so those my thoughts
  73. [13:29] <jc3> i say we see what toby comes up with.
  74. <bobmcw> absolutely
  75. *** tcrawley (~tcrawley@adsl-250-176-43.ard.bellsouth.net) has joined
  76. channel #torquebox
  77. [13:30] <bobmcw> jc3: I understand your concerns, but I say we should just let
  78. him work on it.
  79. <bobmcw> jeez
  80. [13:31] <bobmcw> oh, hi tcrawley!
  81. * bobmcw looks casual
  82. <jc3> bobmcw: you're a dork
  83. <bobmcw> I learned it from watching you
Add Comment
Please, Sign In to add comment