Browse Source

Update connections count

Roman Samoilov 7 months ago
parent
commit
9b0e1c3eac
1 changed files with 1 additions and 3 deletions
  1. 1 3
      frameworks/Ruby/rage-sequel/config/initializers/sequel.rb

+ 1 - 3
frameworks/Ruby/rage-sequel/config/initializers/sequel.rb

@@ -1,13 +1,11 @@
 # frozen_string_literal: true
 
-require "etc"
-
 SEQUEL_NO_ASSOCIATIONS = true
 Sequel.extension :fiber_concurrency
 
 # Determine thread pool size and timeout
 opts = {
-  max_connections: (2 * Math.log(256 / Etc.nprocessors)).floor,
+  max_connections: 512,
   pool_timeout: 10
 }