当我第一次通过“jruby -S trinidad”启动特立尼达时,我得到了消息:
added application to pool, size now = 1
如何在我的 config/trinidad.yml 中增加这个池的大小?
当我第一次通过“jruby -S trinidad”启动特立尼达时,我得到了消息:
added application to pool, size now = 1
如何在我的 config/trinidad.yml 中增加这个池的大小?
看看https://github.com/trinidad/trinidad/blob/master/lib/trinidad/configuration.rb
我认为jruby.min.runtimes
(and jruby.max.runtimes
) 是您正在寻找的。
使用trinidad.yml时,它看起来像这样:
---
address: localhost # set '*' to bind to all interfaces
port: 3000 # port where Trinidad is going to be runnin
#environment: production # specify with `trinidad -e production`
jruby_min_runtimes: 10 # min number of JRuby runtimes to use
jruby_max_runtimes: 10 # max number of JRuby runtimes to use
#threadsafe: true # implies min runtimes == max runtimes == 1