|
|
@@ -8,14 +8,9 @@ opts = {
|
|
|
}
|
|
|
|
|
|
# Determine threading/thread pool size and timeout
|
|
|
-if defined?(Puma) && (threads = Puma.cli_config.options.fetch(:max_threads)) > 1
|
|
|
- opts[:pool] = threads
|
|
|
- opts[:checkout_timeout] = 10
|
|
|
-else
|
|
|
- # TODO: ActiveRecord doesn't have a single-threaded mode?
|
|
|
- opts[:pool] = 1
|
|
|
- opts[:checkout_timeout] = 0
|
|
|
-end
|
|
|
+# TODO: ActiveRecord doesn't have a single-threaded mode?
|
|
|
+opts[:pool] = 512
|
|
|
+opts[:checkout_timeout] = 5
|
|
|
|
|
|
|
|
|
# Setup our logger
|