|
@@ -6,7 +6,7 @@ require 'sequel'
|
|
|
|
|
|
# FWBM only... use the puma_auto_tune gem in production!
|
|
# FWBM only... use the puma_auto_tune gem in production!
|
|
num_workers, num_threads = auto_tune
|
|
num_workers, num_threads = auto_tune
|
|
-
|
|
|
|
|
|
+num_threads = [num_threads, 32].min
|
|
|
|
|
|
before_fork do
|
|
before_fork do
|
|
Sequel::DATABASES.each(&:disconnect)
|
|
Sequel::DATABASES.each(&:disconnect)
|