[Backgroundrb-devel] Cannot connect when spawning new workers on demand

hemant gethemant at gmail.com
Thu Jan 24 06:32:38 EST 2008


Hi Ger,

On Jan 24, 2008 4:17 PM, Ger Apeldoorn <gapeldoorn at wehkamp.nl> wrote:
> Hi,
>
> Here's output from the debug log:
> Btw; There were a lot of control characters in there which I've removed.
>
> -------------------%<--------------------
>
> {:type=>:start_worker, :worker=>:remote_command_worker, :job_key=>"server06"}
> 000000123{
> :       type:do_work:worker:remote_command_worker:
> data{:command"magiccommand:svr"server06:worker_method;:job_key@
> {:type=>:do_work, :worker_method=>:do_work, :data=>{:svr=>"server06", :command=>"magiccommand"}, :worker=>:remote_command_worker, :job_key=>"server06"}
> 000000075{:
> type:^Qstart_worker:worker:remote_command_worker:job_key"server06
> {:type=>:start_worker, :worker=>:remote_command_worker, :job_key=>"server06"}
> 000000123{
> :       type:do_work:worker:remote_command_worker:
> data{:command"magiccommand:svr"server06:worker_method;:job_key@
> {:type=>:do_work, :worker_method=>:do_work, :data=>{:svr=>"server06", :command=>"magiccommand"}, :worker=>:remote_command_worker, :job_key=>"server06"}
> 000000073{:
> type:^Qstart_worker:worker:remote_command_worker:job_key"server08
> {:type=>:start_worker, :worker=>:remote_command_worker, :job_key=>"server08"}
> 000000121{
> :       type:do_work:worker:remote_command_worker:
> data{:command"magiccommand:svr"server08:worker_method;:job_key@
> {:type=>:do_work, :worker_method=>:do_work, :data=>{:svr=>"server08", :command=>"magiccommand"}, :worker=>:remote_command_worker, :job_key=>"server08"}
> 000000074{:
> type:^Qstart_worker:worker:remote_command_worker:job_key"server06
> {:type=>:start_worker, :worker=>:remote_command_worker, :job_key=>"server06"}
> 000000122{
> :       type:do_work:worker:remote_command_worker:
> data{:command"magiccommand:svr"server06:worker_method;:job_key@
> {:type=>:do_work, :worker_method=>:do_work, :data=>{:svr=>"server06", :command=>"magiccommand"}, :worker=>:remote_command_worker, :job_key=>"server06"}
> 000000074{:
> type:^Qstart_worker:worker:remote_command_worker:job_key"server04
> {:type=>:start_worker, :worker=>:remote_command_worker, :job_key=>"server04"}
> 000000122{
> :       type:do_work:worker:remote_command_worker:
> data{:command"magiccommand:svr"server04:worker_method;:job_key@
> {:type=>:do_work, :worker_method=>:do_work, :data=>{:svr=>"server04", :command=>"magiccommand"}, :worker=>:remote_command_worker, :job_key=>"server04"}
> 000000073{:
> type:^Qstart_worker:worker:remote_command_worker:job_key"server04
> {:type=>:start_worker, :worker=>:remote_command_worker, :job_key=>"server04"}
> 000000121{
> :       type:do_work:worker:remote_command_worker:
> data{:command"magiccommand:svr"server04:worker_method;:job_key@
> {:type=>:do_work, :worker_method=>:do_work, :data=>{:svr=>"server04", :command=>"magiccommand"}, :worker=>:remote_command_worker, :job_key=>"server04"}
> 000000074{:
> type:^Qstart_worker:worker:remote_command_worker:job_key"server07
> {:type=>:start_worker, :worker=>:remote_command_worker, :job_key=>"server07"}
> 000000122{
> :       type:do_work:worker:remote_command_worker:
> data{:command"magiccommand:svr"server07:worker_method;:job_key@
> {:type=>:do_work, :worker_method=>:do_work, :data=>{:svr=>"server07", :command=>"magiccommand"}, :worker=>:remote_command_worker, :job_key=>"server07"}
> 000000073{:
> type:^Qstart_worker:worker:remote_command_worker:job_key"server07
> {:type=>:start_worker, :worker=>:remote_command_worker, :job_key=>"server07"}
> 000000121{
> :       type:do_work:worker:remote_command_worker:
> data{:command"magiccommand:svr"server07:worker_method;:job_key@
> {:type=>:do_work, :worker_method=>:do_work, :data=>{:svr=>"server07", :command=>"magiccommand"}, :worker=>:remote_command_worker, :job_key=>"server07"}
> 000000075{:
> type:^Qstart_worker:worker:remote_command_worker:job_key"server05
> {:type=>:start_worker, :worker=>:remote_command_worker, :job_key=>"server05"}
> 000000123{
> :       type:do_work:worker:remote_command_worker:
> data{:command"magiccommand:svr"server05:worker_method;:job_key@
> {:type=>:do_work, :worker_method=>:do_work, :data=>{:svr=>"server05", :command=>"magiccommand"}, :worker=>:remote_command_worker, :job_key=>"server05"}
> 000000075{:
> type:^Qstart_worker:worker:remote_command_worker:job_key"server07
> {:type=>:start_worker, :worker=>:remote_command_worker, :job_key=>"server07"}
> 000000123{
> :       type:do_work:worker:remote_command_worker:
> data{:command"magiccommand:svr"server07:worker_method;:job_key@
> {:type=>:do_work, :worker_method=>:do_work, :data=>{:svr=>"server07", :command=>"magiccommand"}, :worker=>:remote_command_worker, :job_key=>"server07"}
>
> --------------------%<--------------------
>

I am looking for some exceptions, when the master process dies! I
can't see any so far, in your log output.
Thats the reason, I have been asking you to run bdrb in foreground mode using:

:log: foreground

option and start backgroundrb with:

./script/backgroundrb

This way, when master crashed message will be logged to console.


-- 
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.

http://gnufied.org


More information about the Backgroundrb-devel mailing list