Comments (11)
From honglilai on April 22, 2008 10:14:53
RailsMinPoolSize wouldn't really help, because if Apache serves multiple Rails
applications, then application A's instances cannot be reused for application B.
However, the FrameworkSpawner server can reduce startup time because it preloads the
entire Rails framework (which usually accounts for at least half of the startup
time). Currently the idle timeout for this is a constant and is not configurable. In
the future, a configuration option can be added.
If you want to change the timeout, please edit lib/passenger/spawn_manager.rb,
constant FRAMEWORK_SPAWNER_MAX_IDLE_TIME.
Labels: -Type-Defect Type-Enhancement
from passenger.
From brejoc on April 25, 2008 02:26:34
Thank you for you quick reply, honglilai!
In my case (currently only one simultaniously used version of rails) it worked without any downside.
from passenger.
From cpisto on May 22, 2008 10:47:39
I definitely agree that "RailsMinPoolSize" (per vhost) would be the most intuitive,
and arguably correct, solution
from passenger.
From google%[email protected] on October 04, 2008 07:31:25
I think honglilai is correct, a better solution would be PassengerMinInstancesPerApp
from passenger.
From frankske on December 08, 2008 03:48:16
I agree on the PassengerMinInstancesPerApp. You'd want at least one instance running per app!
from passenger.
From drothlis on January 24, 2009 06:18:34
It would be really useful to have a directive similar to PassengerMaxInstancesPerApp,
but setable individually for each app/virtualhost.
(I run a critical app along with several low-traffic, non-critical apps on the same
server; I would like each of the non-critical apps to have at most one instance
running, leaving several instances available for the critical app.)
from passenger.
From will.bryant on February 27, 2009 17:30:40
I'd really like a PassengerMinInstancesPerApp. I get about 5s startups, which is too poor for me.
To the original commenter though, instances should not take a minute to start under any circumstances. It
shouldn't take noticeably longer than it takes to run up a script/server, so I'd suggest you try that. If the server
is badly overloaded, you need a better server; if the server isn't loaded but startup seems to freeze up, fire up a
debugger and see what it's doing - it may be freezing up trying to get something off the network before timing
out, for example.
from passenger.
From dolzenko on September 17, 2009 23:26:44
Ow, just wasted some time looking through the code and not reading docs throughly before
that, but anyway it seems to be worth adding to the first comment that the configuration
options were added for this: http://www.modrails.com/documentation/Users%20guide %20Apache.html#_railsframeworkspawneridletime_lt_integer_gt http://www.modrails.com/documentation/Users%20guide %20Apache.html#_railsappspawneridletime_lt_integer_gt
from passenger.
From dolzenko on September 17, 2009 23:27:48
Screwed the links, these are to the following sections from the docs:
5.14.5. RailsFrameworkSpawnerIdleTime
5.14.6. RailsAppSpawnerIdleTime
from passenger.
From honglilai on November 17, 2009 11:05:25
PassengerMinInstances has been implemented in a not-yet-published refactoring branch.
Will push when the time is right.
Status: Fixed
Labels: Milestone-3.0.0
from passenger.
From steffen.hiller on November 17, 2009 13:38:05
Interesting!
from passenger.
Related Issues (20)
- Automation: How to communicate a selection via <space> as required for `assenger-config validate-install`
- Passenger Socket IO - Apache Return Error 101 HOT 1
- Debian 12 (bookworm) support HOT 1
- Ruby Permissions Issue HOT 12
- Unknown directive: "passenger_enabled" in nginx.conf server block HOT 6
- Security update fails and Ubuntu APT ignores the APT link HOT 2
- IOError: stream closed in another thread HOT 2
- Would be great to have a 6.0.19 release! HOT 2
- DeprecationWarning in wsgi-loader.py: imp module is deprecated in favor of importlib HOT 1
- Issues with cookies when using latest Passenger and Rack 3 (w/ Ruby on Rails 7.1) HOT 20
- mod_passenger dependency issues HOT 1
- Feature Request - Log crashes to stderr instead of files HOT 2
- Fails to recognise Nestjs app start HOT 2
- Uninitialized constant Rackup::Handler::Rack (NameError) [Rack 3] HOT 1
- Error loading libssl.so.1.1 when starting Phusion Passenger Standalone HOT 1
- Bad Signing Key for Debian Bullseye HOT 3
- Restarting doesn't remove deleted environment variables in rbenv-vars HOT 1
- Hooks not being registered HOT 4
- String conversion while handling native Ruby support lib LoadErrors can cause errors HOT 1
- Feature request: Ability to configure path to error renderer template
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from passenger.