Saji N. Hameed | 22 Sep 04:54

Thinking of using AP4R

Dear Shino and all,

I am considering on the use of AP4R for our project named "CLIK" for the
time being. CLIK is essentially a Rails front-end to a data crunching
job that ultimately creates a climate prediction. Some of these jobs
only takes a few seconds to finish, some a few minutes, and intensive
calculations 30 minutes or more. Obviously we need to put many of these
jobs in the background and get the output after the job is done.
Actually we use a separate data processing server on a remote machine
using DRb.

I explored a few solutions by googling and found projects like
"Background Job", "rudeQ", "Workling" etc, which provide queing and
background processing. My question is how "AP4R" compares to or is 
different from these others? 

Anyway I am going to explore how to use AP4R in this project by looking
at the HelloWorld example as a guide. FYI, I am only a climatologist and do
not know much about queues, Ruby or Rails and I hoping for good advice
from this list if anything goes wrong.

Yoroshiku,

saji
--

--

-- 
Saji N. Hameed

APEC Climate Center          				+82 51 668 7470
(Continue reading)

Pranav Railkar | 18 Aug 08:50
Favicon

UUID problem while using AP4R in rails application


Hello,

I have explored AP4R and have "Hello World" sample up and running.
I followed instructions at-- http://ap4r.rubyforge.org/wiki/wiki.pl?GettingStarted
Now, I am trying to use AP4R in my rail application.
I am trying to setup AP4R such that my rails application would handle asynchronous requests put in the queues created.
I copied all the vendor/plugins from the "Hello World" sample to my application and all the installations are properly done.
I am facing the following error when I run my application with AP4R
       
/usr/lib64/ruby/gems/1.8/gems/uuidtools-1.0.1/lib/uuidtools.rb:105: UUID is not a class (TypeError)
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
        from /usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
        from /usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in `new_constants_in'
        from /usr/lib64/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'
        from /usr/lib64/ruby/gems/1.8/gems/activerdf_rdflite-1.4/lib/activerdf_rdflite/rdflite.rb:8
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
         ... 52 levels...
        from /usr/lib64/ruby/gems/1.8/gems/rails-1.2.5/lib/commands/server.rb:39
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from script/server:3

Could anyone please suggest any solution to this problem??
Also could anyone direct me to any sample/tutorial  to create rails applications using AP4R.
=====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
_______________________________________________
ap4r-user mailing list
ap4r-user <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/ap4r-user
Marcin Zduniak | 21 Jul 10:46
Picon

Example, getting started

Hi All,

  We are looking for more detailed description on how to start working
with AP4R than is provided here:
http://ap4r.rubyforge.org/wiki/wiki.pl?GettingStarted Could anybody
point me to the right direction ? Especially we are interested in
"development" part -- I mean how to write my own job and how exactly
to enqueue it.

  Thank you for your help.

   Best regards,
    Marcin
dave farkas | 21 Mar 16:35

log level settings

Is there a way to change the log level for the queue processes through 
the config file or command line? I'd like to change it to either INFO or 
ERROR, since the debug statements are logging too much information.

Thanks,
Dave
kato.kiwamu | 7 Feb 03:10
Picon
Favicon

[ANN] AP4R 0.3.6 Released

Hi all,

ap4r version 0.3.6 has been released.

= What is AP4R ?
AP4R, Asynchronous Processing for Ruby, is the implementation of reliable asynchronous message
processing. It provides message queuing, and message dispatching.
Using asynchronous processing, we can cut down turn-around-time of web applications by queuing, or can
utilize more machine power by load-balancing.
Also AP4R nicely ties with your Ruby on Rails applications. See Hello World sample application from rubyforge.

For more information, please step in AP4R homepage!
http://ap4r.rubyforge.org/wiki/wiki.pl

= Changelog
* Added: configuration to set HTTP timeout.
Based on a patch from Artem Vasiliev <abublic at gmail.com>
* Added: provisional support Rails2.0.
* Changed: the location of message_builder.rb from rails plugin to ap4r core (ap4r/lib directory).
* Fixed: bug (tracker #17206) that uninitialized constant error occurs when :active_record_store is
used as session store. 

Thanks,
kiwamu
_______________________________________________
ap4r-user mailing list
ap4r-user <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/ap4r-user
Julien Genestoux | 6 Feb 07:08
Picon
Gravatar

Bug in AP4R?

Hi guys,

I have been using for AP4R for weeks, and today, I've done a clean  
install with a new Ruby and a new Rails... and here is what I get when  
I start AP4R :

message retention history (collect) #<TypeError: can't convert  
ActiveSupport::Duration into time interval>
/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/retention_history.rb:32:in  
`sleep'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/retention_history.rb:32:in  
`start'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/retention_history.rb:30:in  
`loop'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/retention_history.rb:30:in  
`start'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/retention_history.rb:29:in  
`start'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/queue_manager_ext.rb: 
125:in `start'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/queue_manager_ext.rb: 
125:in `each'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/queue_manager_ext.rb: 
125:in `start'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/queue_manager_ext.rb: 
115:in `synchronize'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/queue_manager_ext.rb: 
115:in `start'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/mongrel.rb:66:in  
`initialize'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/mongrel_ap4r.rb:118:in `new'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/mongrel_ap4r.rb:118:in  
`cloaker_'
	/var/lib/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb: 
149:in `call'
	/var/lib/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb: 
149:in `listener'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/mongrel_ap4r.rb:116:in  
`cloaker_'
	/var/lib/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb: 
50:in `call'
	/var/lib/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb: 
50:in `initialize'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/mongrel_ap4r.rb:107:in `new'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/mongrel_ap4r.rb:107:in `run'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/mongrel_ap4r.rb:246:in  
`main'
	/var/lib/gems/1.8/gems/ap4r-0.3.5/lib/ap4r/mongrel_ap4r.rb:256
	/var/lib/gems/1.8/gems/activesupport-2.0.1/lib/active_support/ 
dependencies.rb:489:in `load'
	/var/lib/gems/1.8/gems/activesupport-2.0.1/lib/active_support/ 
dependencies.rb:489:in `load'
	/var/lib/gems/1.8/gems/activesupport-2.0.1/lib/active_support/ 
dependencies.rb:342:in `new_constants_in'
	/var/lib/gems/1.8/gems/activesupport-2.0.1/lib/active_support/ 
dependencies.rb:489:in `load'
	/mnt/ap4r_flowtomatic/current/script/mongrel_ap4r:4

My configuration :
ruby 1.8.6 (2007-06-07 patchlevel 36) [i486-linux]
Rails 2.0.1

I would assume that there is a type problem in the plugin, can you  
confirm that and fix?

Thanks!

Best,

Julien

--
Julien Genestoux
julien.genestoux <at> gmail.com
http://www.ouvre-boite.com
+1 (415) 254 7340
+33 (0)8 70 44 76 29
Alex Graul | 11 Dec 11:55
Picon

Re: update

Woah sorry about that all, replied to the wrong window there.



On Tue Dec 11 02:24 , Alex Graul sent:
<at> mossi.co.uk>

Hello,
Took a few days out to finish my dissertation draft, 8000 words on Modernist typography later I got round to making the required modifications and it all seems to be working perfectly. I'm going to have another play tonight then I'll send you a version to give it a whirl. How goes trading?

Cheers,
Alex


On Mon Dec 10 20:52 , Julien Genestoux sent:
.genestoux <at> gmail.com>
Sorry for the double mail... but I've got a second question!

What about the database and tables, is there anyway to deploy create
at the same time with capistrano?

Thanks,



--
Julien Genestoux
julien.genestoux <at> gmail.com
*Possibly malicious HTML tag removed* http://www.ouvre-boite.com
+1 (415) 254 7340
+33 (0)8 70 44 76 29



Le 6 d
> a

> Hi Julien,
>
> AP4R has its own Capistrano recipe in lib/ap4r/recipe.rb from ver.
> 0.3.4.
> It can handle just one AP4R process per server now,
> and defines deploy, (re)start, start, update and some more tasks in
> namespace :ap4r .
> The recipe is probably applicable to versions >= 0.3.2.
>
> It will (may?) goes well as
> 1. Run "capify ." in your AP4R's working directory (which has
> config, script, and some directories)
> 2. Sample deploy.rb file is as follows:
> ===== BEGIN =====
> require 'ap4r/recipes'
>
> set :application, "trunk_test"
> set :repository, "SET_YOUR_REPO_PATH/#{application}"
> set :deploy_to, "/SOMEWHERE_YOU_WANT/#{application}"
> set :ap4r_conf, "#{current_path}/config/queues_your_config.cfg"
>
> role :ap4r, "10.18.0.25"
> ===== END ======
>
> I'm sorry that I don't explain exactly. I don't have much time now :-<
> Please let me know any comments or feedbacks!
>
> P.S.
> Handling more than one AP4R processes is in my TODO list.
> So some configuration parameter may be changed in future release.
>
> Regards,
> shino
>
>> -----Original Message-----
>>>> As most of you, I am using Capistrano to deploy my app.
>>>> Everything is
>>>> going smoothly for my app itself, but I would really love to
>>>> automate
>>>> the deployment of AP4R at the same time, whether it's on the same
>>>> server or on another one. Anyone has some tips? or has ever done
>>>> this?
> _______________________________________________
> ap4r-user mailing list
> ap4r-user <at> rubyforge.org
*Possibly malicious HTML tag removed* http://rubyforge.org/mailman/listinfo/ap4r-user

_______________________________________________
ap4r-user mailing list
ap4r-user <at> rubyforge.org
*Possibly malicious HTML tag removed* http://rubyforge.org/mailman/listinfo/ap4r-user



_______________________________________________
ap4r-user mailing list
ap4r-user <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/ap4r-user
dave farkas | 6 Dec 19:01

temporarily disable dispatchers

Hi,

Is there a way to temporarily disable dispatchers? I have a queue set up 
to dispatch to a system that goes down regularly for maintenance. It 
would be nice to shut down the dispatchers since they will fail anyway 
and turn them back on when the system is back up.

Thanks,
Dave
Julien Genestoux | 5 Dec 22:03
Picon
Gravatar

AP4R and Capistrano

Hello AP4R users,

I am building an application that makes great use of AP4R and I am at  
the point where I am looking how to deploy my application and AP4R at  
the same time!

As most of you, I am using Capistrano to deploy my app. Everything is  
going smoothly for my app itself, but I would really love to automate  
the deployment of AP4R at the same time, whether it's on the same  
server or on another one. Anyone has some tips? or has ever done this?

Thanks for your help!

Best

--
Julien Genestoux
julien.genestoux <at> gmail.com
http://www.ouvre-boite.com
+1 (415) 254 7340
+33 (0)8 70 44 76 29
Julien Genestoux | 25 Nov 02:33
Picon
Gravatar

Sessions exploding?

Hi!

I am new to AP4R, using it for barely one month. It's a very powerful  
tool that suits my need and I would love to go further with it. I have  
however a little problem using it : my /tmp/sessions directory is  
exploding... and affecting my app's performances.

How do you manage them?

Any clue would be greatly appreciated!

Thanks,

--
Julien Genestoux
julien.genestoux <at> gmail.com
http://www.ouvre-boite.com
+1 (415) 254 7340
+33 (0)8 70 44 76 29
shinohara.shunichi | 20 Nov 03:38
Picon
Favicon

Thank you for enquete answers, and we uploaded the slides at RubyConf07

Dear AP4R users,

Thank you very much for answers to collect AP4R's real examples.
With them, the AP4R team made a presentation at RubyConf07.
http://rubyconf.org/agenda.html

Kiwamu has uploaded the slides to rubyforge and slideshare.
# both are the same.
rubyforge: https://rubyforge.org/docman/view.php/1765/2806/AP4R_on_RubyConf2007.pdf
slideshare: http://www.slideshare.net/kiwamu/ap4r-on-rubyconf2007/

I'm sorry that I could not list all the received examples. Please forgive me.
I want to collect every answer (which can be open to public) at AP4R's wiki.
Please lend me at that time!

P.S.
There are some photos of RubyConf07 at flicker (tagged by rubyconf07).
You can look at us: http://www.flickr.com/photos/dwortlehock/1831727419/ .
(Right is Kiwamu and left is me).
Kiwamu is clearer and laughing at: http://www.flickr.com/photos/dwortlehock/1832555890/ .

Best regards,
shino

_______________________________________________
ap4r-user mailing list
ap4r-user <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/ap4r-user

Gmane