Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration Question #4

Closed
conradwt opened this issue Sep 18, 2010 · 3 comments
Closed

Configuration Question #4

conradwt opened this issue Sep 18, 2010 · 3 comments

Comments

@conradwt
Copy link

I'm trying to configure async-rails demo as you indicated on "Pushing the stack on my MBP". Thus, I have the following questions:

  1. Is it necessary to add the following lines to the production.rb?

require 'em-activerecord'
require 'rack/fiber_pool'

Run each request in a Fiber

config.middleware.use Rack::FiberPool

  1. How does one set the fiber pool 250? From the blog on envylabs.com, you had indicated the
    db pool gets replaced by the fiber pool when using the Rack middleware, Rack::FiberPool.

  2. I had to change

gem 'eventmachine' , :git => 'git://github.com/eventmachine/eventmachine.git'

to

gem 'eventmachine'

to get things operational because I was getting the following error message when I ran
'thin -D start':

/Users/conradwt/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:762:in report_activate_error': Could not find RubyGem eventmachine (>= 0.12.6) (Gem::LoadError) from /Users/conradwt/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:219:inactivate'
from /Users/conradwt/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:254:in block in activate' from /Users/conradwt/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:253:ineach'
from /Users/conradwt/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:253:in activate' from /Users/conradwt/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:1065:ingem'
from /Users/conradwt/.rvm/gems/ruby-1.9.2-p0@async-rails/bin/thin:18:in `

'

@igrigorik
Copy link
Owner

Conrad, #1 should be implicit through bundler.. em-activerecord and fiber_pool should already be loaded, ex:

http://github.com/igrigorik/async-rails/blob/72ea38433246cc58cd31e3863f4ed4e0c861ad28/Gemfile#L8

For #2, unfortunately you have to unpack and change the max value within the fiber_pool gem itself at the moment. This should really be provided as an option within the middleware.

#3 seems bizzarre to me.. the git repo definitely has versions > 0.12.6.. Hmm?

@francescoagati
Copy link

i ve try this and function.

gem install eventmachine -v 1.0.0.beta.2 --pre

@igrigorik
Copy link
Owner

Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants