File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
src/clj/puppetlabs/services/jruby_pool_manager Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 184
184
[config :- jruby-schemas/JRubyConfig]
185
185
(let [multithreaded (:multithreaded config)
186
186
size (:max-active-instances config)
187
- creation-concurrency (get config :instance-creation-concurrency 4 )
187
+ creation-concurrency (:instance-creation-concurrency config )
188
188
creation-service (Executors/newFixedThreadPool creation-concurrency)]
189
189
(if multithreaded
190
190
{:pool (instantiate-reference-pool size)
Original file line number Diff line number Diff line change 174
174
(update-in [:environment-vars ] #(or % {}))
175
175
(update-in [:lifecycle ] initialize-lifecycle-fns)
176
176
(update-in [:multithreaded ] #(if (nil? %) false %))
177
+ (update-in [:instance-creation-concurrency ] #(if (nil? %) 3 %))
177
178
jruby-internal/initialize-gem-path))
178
179
179
180
(schema/defn register-event-handler
Original file line number Diff line number Diff line change 95
95
:profiling-mode SupportedJRubyProfilingModes
96
96
:profiler-output-file schema/Str
97
97
:multithreaded schema/Bool
98
- ( schema/optional-key :instance-creation-concurrency ) schema/Int})
98
+ :instance-creation-concurrency schema/Int})
99
99
100
100
(def JRubyPoolAgent
101
101
" An agent configured for use in managing JRuby pools"
You can’t perform that action at this time.
0 commit comments