Displaying 20 results from an estimated 30000 matches similar to: "Restarting BackgrounDRb Means Restarting Mongrel?"
2008 Jan 25
4
hi, can someone explain to me backgroundrb and mongrel?
hi,
i am trying to grasp some concepts about mongrel, rails, and
backgroundrb on how they all work in terms of threads and such. is there
a book about distributed ruby and processes? i havent seen any on amazon
yet...
from my blog reading, i have some questions....
rails can handle 1 request at a time and can buffer to a certain extent?
when mongrel instances are created, a copy of the rails
2006 Jul 01
9
BackgrounDRb New release.
Howdy Folks-
I''m happy to announce a new release of BackgrounDRb! I have added
quite a few new features and included some nice patches from folks on
the list.
$ script/plugin install svn://rubyforge.org//var/svn/backgroundrb
All of the code now stays within the plugin and the start and stop
scripts are now just stubs. This makes it easier to tweak or figure
out how it works.
2007 Nov 14
7
BackgrounDRb version 1.0RC1 available now
Hi Folks,
BackgrounDRb is a Ruby job server and scheduler. Its main intent is to be
used with Ruby on Rails applications for offloading long-running tasks.
Since a Rails application blocks while serving a request it is best to
move long-running tasks off into a background process that is divorced
from http request/response cycle.
This new release of BackgrounDRb is also modular and can be used
2007 Dec 15
10
1) Error 2) sending request to a specific worker
Hello !
1) I have this error logged by bdrb:
undefined method `send_request'' for nil:NilClass
framework/packet_master.rb:58:in `ask_worker''
backgroundrb/server/master_worker.rb:59:in `process_work''
backgroundrb/server/master_worker.rb:16:in `receive_data''
backgroundrb/framework/bin_parser.rb:29:in `call''
backgroundrb/framework/bin_parser.rb:29:in
2008 Jan 26
4
Connections
I''m checking out backgroundrb for a calculation process I estimate will take
2-3 minutes and be ran on-demand only via Rails. Very easy and slick.
But I have a question.
The connections never close, if I do a netstat they just keep piling up.
Do I need to do some housekeeping somewhere? I noticed the @
connection.close statements are commented out in favor of a # FIXME type
deal.
2007 Dec 25
6
error: no marshal_dump is defined for class Thread
I get this error periodically in backgroundrb.log, but only on my
production box (the one running ruby 1.8.5) - my dev box doesn''t get
this error. As far as I can tell, everything is working ok, despite
the error (I don''t really know how to determine if the jobs are
getting threaded successfully, but they are running, that I am sure
of).
Here''s the dump:
no
2007 Dec 17
11
BackgrounDRb release 1.0 available now
Hi Folks,
I am glad to announce 1.0 release of BackgrounDRb.
This would be a major release since 0.2 release of BackgrounDRb.
Here is a brief summary of changes:
- BackgrounDRb is DRb no longer. It makes use of EventDriven network
programming library packet ( http://packet.googlecode.com ).
- Since we moved to packet, many nasty thread issues, result hash
corruption issues are totally
2007 Mar 04
6
Backgroundrb spiking CPU after first run on Mongrel cluster
I''ve been troubleshooting this problem for several hours now and haven''t
been able to figure out what''s wrong. I have two boxes, dev and prod, both
are identical except that prod uses Ruby 1.8.5 and dev uses 1.8.4. Both are
running Slave 1.2.0, Daemons 1.0.5, and Backroundrb 0.2.1.
The behavior I''m seeing is this. When I first start Backgroundrb, this is
what
2007 Nov 02
10
pre-release version of backgroundrb available now from svn
Hi,
A pre-release version of backgroundrb is available now from svn.
Download it from here:
http://svn.devjavu.com/backgroundrb/branches/version099/
Since this release marks significant migration from existing
practices, i intend to keep trunk untouched for a while.
There are no install scripts, but you should copy "backgroundrb" file
from script directory of plugin to script
2008 Apr 04
5
First call to worker method doesn''t work
I have a worker as follows:
class SampleWorker < BackgrounDRb::MetaWorker
set_worker_name :sample_worker
def create(args = nil)
# this method is called, when worker is loaded for the first time
end
def my_method
# Deliver test e-mail message
Notifications.deliver_message(1, "DM")
end
end
I have a rails controller that calls the following code:
worker =
2006 Jul 24
4
Mongrel + BackgrounDRb + File Column = Upload Progress Bar?
Hi there,
I''ve been digging around trying to find some information (mostly examples)
on how one would handle a progress bar upload using BackgrounDRb and File
Column. I did read http://backgroundrb.rubyforge.org/ and Ezra''s blog of
course, but I still have a few questions.
I made a simple upload form (as a test) that is submitted to the
"upload_song" action.
def
2008 Apr 12
6
Cutting down BackgrounDRb memory issue
Hi Folks,
I have been working to fix BackgrounDRb memory usage as such. Ruby1.8 GC
isn''t fork friendly and it seems to use a lot of memory because when you
fork, it sets a bit in all the objects in global scope which causes OS
to all pages in child process.
A classic solution is to use fork and exec, rather than just fork. Its
working and pretty stable, but you loose ability to pass
2006 Jul 06
5
memory uses
Hi All,
I have this small doubt. Does backgroundrb have anything to do with
dispatch.fcgi?
some dispatch.fcgi are taking memory as much as 186 MB ....
this is monstrous man...
Also, if i put load rails environment with backgroundrb.yml file to be
false.What will happen? i just loses access to db through ActiveRecord
right?
I can still use normal mysql gem to access db and modify the
2007 Dec 17
7
Get "some read error" on calls to worker
I''m running the latest from svn (rev 285). I''ve been having a problem
launching a process repeatedly. What happens is that I get a debug
message "some read error" and then the worker refuses to run again.
I''ve stripped my worker down to just doing a puts and it still happens.
Like the other threads I want to launch my workers as needed, however I
get the
2008 Mar 13
2
Loading an array of MiddleMen
Hi,
I am currently working on a project that requires multiple rails
applications (lets call them consumers, since they will consume
requests) to exposes long running services that will be executed from
a management rails application (the producer of the requests). To do
this BackgrounDrb was installed on all the consumers and the producer.
BackgrounDrb was configured to on each of the consumers
2008 Jan 18
8
Query All Worker
What does the method query_all_workers() do? There is no documentation
on what this method returns (1.0.1 version).
Orion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080118/9f9b8112/attachment.html
2008 Mar 19
2
nil-error
Hi all,
I''ve got the error below in my backgroundrb_debug.log. I''ve tried to
reproduce the error in the development environment, but the only way I
can get the same thing is by calling ask_work with a bogus worker
name. Calling it with the production code causes no error.
Here''s an example of what the code calls:
MiddleMan.ask_work(:worker => :agronomy_worker,
2007 Jan 19
6
Stopping DRb after using BackgrounDRb::MiddleManDRbObject.init
Hi,
I''m having a problem where connections started through
BackgrounDRb::MiddleManDRbObject.init are not stopped, resulting in an
ever growing established connections between my Mongrels and remote
backgroundrbs
I added DRb.stop_service to my code executed after requests that init
MiddleManDRbObjects but that does not help.
Any ideas?
Thanks,
Robert Bjarnason
2007 Dec 13
4
Some fixes and updates
Hi ,
If you are following commits, I have pushed following changes:
1. Now, you can specify :environment option in config file to load
production environment and stuff.
2. Exeptions that were exposed to the user has been changed to
BdrbConnError if rails is not able to connect to bdrb server.
3. loading mechanism has been changed, so remove backgroundrb script
from your backgroundrb directory
2007 Dec 19
6
thread_pooling sleeping
I''m trying to run a single worker that could perform a periodic task
for a given user.
>From a controller, I imagine something like:
def start_job
MiddleMan.ask_work(:worker => :foo_worker, :worker_method => :perform_task,
:data => { :user_id = current_user.id })
end
def check_job
@status = MiddleMan.ask_status(:worker => :foo_worker)[current_user.id]
end