Reputation: 22515
When I first boot up Trinidad via "jruby -S trinidad" I get the msg:
added application to pool, size now = 1
How do I increase the size of this pool in my config/trinidad.yml?
Upvotes: 3
Views: 233
Reputation: 14874
Take a look at https://github.com/trinidad/trinidad/blob/master/lib/trinidad/configuration.rb
I think jruby.min.runtimes
(and jruby.max.runtimes
) is what you're looking for.
Upvotes: 4
Reputation: 7166
when using trinidad.yml it looks something like this :
---
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
Upvotes: 2