How to increase JRuby Trinidad pool size?

232 Views Asked by At

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?

2

There are 2 best solutions below

0
Jahan Zinedine On BEST ANSWER

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.

0
kares On

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