v0.48.6 40-40-40
This commit is contained in:
parent
9d6e1a0b7c
commit
915961cf51
@ -31,13 +31,14 @@ class GossamerForumsImporter < ImportScripts::Base
|
|||||||
begin
|
begin
|
||||||
|
|
||||||
# Database configuration for ActiveRecord
|
# Database configuration for ActiveRecord
|
||||||
|
# This is not used, except for pool size... issue with our Bitnami Discourse?
|
||||||
ActiveRecord::Base.establish_connection(
|
ActiveRecord::Base.establish_connection(
|
||||||
adapter: 'postgresql',
|
adapter: 'postgresql',
|
||||||
database: 'slowtwitch',
|
database: 'discourse',
|
||||||
username: 'admin',
|
username: 'discourse',
|
||||||
password: "yxnh93Ybbz2Nm8#mp28zCVv",
|
password: 'nhB5FWhQkjdvaD2ViRNO63dQagDnzaTn',
|
||||||
host: 'slowtwitch.northend.network',
|
host: '10.0.0.2',
|
||||||
pool: 48, # Adjust based on concurrency needs
|
pool: 40, # Adjust based on concurrency needs
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1126,11 +1127,11 @@ class GossamerForumsImporter < ImportScripts::Base
|
|||||||
# Use CachedThreadPool for dynamic thread management
|
# Use CachedThreadPool for dynamic thread management
|
||||||
#### pool = Concurrent::CachedThreadPool.new
|
#### pool = Concurrent::CachedThreadPool.new
|
||||||
###### pool = Concurrent::FixedThreadPool.new(7)
|
###### pool = Concurrent::FixedThreadPool.new(7)
|
||||||
pool = Concurrent::FixedThreadPool.new(48)
|
pool = Concurrent::FixedThreadPool.new(40)
|
||||||
|
|
||||||
# Define the connection pool inside the method
|
# Define the connection pool inside the method
|
||||||
###### mariadb_pool = ConnectionPool.new(size: 14, timeout: 100) do
|
###### mariadb_pool = ConnectionPool.new(size: 14, timeout: 100) do
|
||||||
mariadb_pool = ConnectionPool.new(size: 48, timeout: 100) do
|
mariadb_pool = ConnectionPool.new(size: 40, timeout: 100) do
|
||||||
Mysql2::Client.new(
|
Mysql2::Client.new(
|
||||||
host: "slowtwitch.northend.network",
|
host: "slowtwitch.northend.network",
|
||||||
username: "admin",
|
username: "admin",
|
||||||
|
Loading…
Reference in New Issue
Block a user