如何让 Redmine 在 Linux (CentOS) 上快速启动?
我上周都升级了:最新的Redmine、Ruby、Passenger等……
我尝试了在 Redmine 论坛和其他帖子中可以找到的所有内容,以使其更快地加速,即:在空闲几个小时后请求 Redmine 网站时,它开始很慢,但随后速度很快。
我正在将 Apache Web 服务器与Passenger 一起使用。在我当前的 apache 配置下方,请提供一些建议,因为我没有想法:
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.19/buildout/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.19
PassengerDefaultRuby /usr/local/rvm/wrappers/ruby-1.9.3-p448/ruby
# Refs:
# http://stackoverflow.com/questions/8235309/redmine-perfomance-inconsistency
# http://www.redmine.org/boards/2/topics/31783
# This option should be 0, but has an issue: https://code.google.com/p/phusion-passenger/issues/detail?id=904
PassengerPoolIdleTime 999999
PassengerMinInstances 2
PassengerHighPerformance on
PassengerPreStart https://myhost/redmine
PassengerMaxPoolSize 5
PassengerMaxInstancesPerApp 4
PassengerStatThrottleRate 10
RailsAppSpawnerIdleTime 0
PassengerMaxPreloaderIdleTime 0
RailsBaseURI /redmine
RailsEnv production