v0.48.6 32-32-32
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								.gossamer_forums.rb.swp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								.gossamer_forums.rb.swp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							@@ -36,9 +36,9 @@ class GossamerForumsImporter < ImportScripts::Base
 | 
			
		||||
          adapter: 'postgresql',
 | 
			
		||||
          database: 'slowtwitch',
 | 
			
		||||
          username: 'admin',
 | 
			
		||||
          password: "yxnh93Ybbz2Nm8#mp28zCVv",
 | 
			
		||||
          host: 'slowtwitch.northend.network',
 | 
			
		||||
          pool: 40, # Adjust based on concurrency needs
 | 
			
		||||
          password: "x0YGLA9252iiTFQuqaM0ROX8FmQzZuUu",
 | 
			
		||||
          host: '172.99.0.10',
 | 
			
		||||
          pool: 32, # Adjust based on concurrency needs
 | 
			
		||||
          timeout: 5000
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
@@ -1127,11 +1127,11 @@ class GossamerForumsImporter < ImportScripts::Base
 | 
			
		||||
    # Use CachedThreadPool for dynamic thread management
 | 
			
		||||
####    pool = Concurrent::CachedThreadPool.new
 | 
			
		||||
######    pool = Concurrent::FixedThreadPool.new(7)
 | 
			
		||||
    pool = Concurrent::FixedThreadPool.new(40)
 | 
			
		||||
    pool = Concurrent::FixedThreadPool.new(32)
 | 
			
		||||
 | 
			
		||||
    # Define the connection pool inside the method
 | 
			
		||||
######    mariadb_pool = ConnectionPool.new(size: 14, timeout: 100) do
 | 
			
		||||
    mariadb_pool = ConnectionPool.new(size: 40, timeout: 100) do
 | 
			
		||||
    mariadb_pool = ConnectionPool.new(size: 32, timeout: 100) do
 | 
			
		||||
#        host: "slowtwitch.northend.network",
 | 
			
		||||
#        username: "admin",
 | 
			
		||||
#        password: "yxnh93Ybbz2Nm8#mp28zCVv",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user