mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-21 13:54:36 +00:00
Revert, unset pool configuration changes
This commit is contained in:
parent
e62a89d0a0
commit
fbd7305818
2 changed files with 2 additions and 8 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue