Revert, unset pool configuration changes

This commit is contained in:
Noi 2022-11-21 20:38:06 -08:00
parent e62a89d0a0
commit fbd7305818
2 changed files with 2 additions and 8 deletions

View file

@ -14,13 +14,7 @@ public class BotDatabaseContext : DbContext {
Database = conf.SqlDatabase,
Username = conf.SqlUsername,
Password = conf.SqlPassword,
ApplicationName = conf.SqlApplicationName,
// Let's see if this works?
ConnectionIdleLifetime = 60,
MaxPoolSize = Math.Max(
(int)Math.Ceiling(conf.ShardAmount * 2 * 0.75),
(int)Math.Ceiling(ShardManager.MaxConcurrentOperations * 2.5))
ApplicationName = conf.SqlApplicationName
}.ToString();
}

View file

@ -24,7 +24,7 @@ class ShardManager : IDisposable {
/// Number of concurrent shard startups to happen on each check.
/// This value also determines the maximum amount of concurrent background database operations.
/// </summary>
public const int MaxConcurrentOperations = 3;
public const int MaxConcurrentOperations = 4;
/// <summary>
/// Amount of time without a completed background service run before a shard instance