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)
- HTTP3/QUIC breaks passenger Python apps ( Nginx + HTTP3 + Passenger ) HOT 2
- Cannot build passenger nginx dynamic module HOT 1
- Out of memory leads to passenger shutdown and ensuing 502 error on nginx HOT 3
- Out of memory leads to passenger shutdown and ensuing 502 error on nginx HOT 1
- Cannot upgrade to 1.24.0-1: unmet dependencies HOT 2
- Cannot find nginx module on Amazon Linux 2023 HOT 1
- Cannot install passenger-6.0.20-1.el9.x86_64.rpm on CentOS 9 Stream with Ruby 3.3 HOT 2
- Requests intermittently result in 500, directory in /tmp not found HOT 2
- Better cooperation with Kubernetes zero-downtime restarts
- Error with Rack prevents editing rails production credentials
- params are empty upon proper form submission HOT 1
- Packaging of unmaintained dependency: http-parser HOT 2
- The passenger spawns more processes than are allocated to it
- SecurityUpdateCheck fails when using builtin engine HOT 1
- Lacking rubyext-ruby-3.2.2-x86_64-linux.tar.gz from Release 6.0.20. HOT 1
- no Phusion Passenger(R) log file configured, discarding log output HOT 5
- Unable to locate package libnginx-mod-http-passenger | bullseye HOT 1
- Unable the fetch the repo for mod_passenger HOT 12
- passenger v6.0.21, ruby 3.3.1 with apache crashing. HOT 11
- passenger 6.0.21 will not install on AlmaLinux 9 / RHEL 9 HOT 8
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.