mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 21:17:23 +01:00
revert to defaults worker count
This commit is contained in:
parent
ef70dd5882
commit
ffe24b0e71
1 changed files with 0 additions and 7 deletions
|
|
@ -20,9 +20,6 @@ namespace MareSynchronosServer
|
|||
var hostBuilder = CreateHostBuilder(args);
|
||||
var host = hostBuilder.Build();
|
||||
|
||||
System.Threading.ThreadPool.GetMaxThreads(out int worker, out int io);
|
||||
Console.WriteLine($"Before: Worker threads {worker}, IO threads {io}");
|
||||
|
||||
using (var scope = host.Services.CreateScope())
|
||||
{
|
||||
var services = scope.ServiceProvider;
|
||||
|
|
@ -42,10 +39,6 @@ namespace MareSynchronosServer
|
|||
context.RemoveRange(looseFiles);
|
||||
context.SaveChanges();
|
||||
|
||||
System.Threading.ThreadPool.SetMaxThreads(worker, context.Users.Count() * 5);
|
||||
System.Threading.ThreadPool.GetMaxThreads(out int workerNew, out int ioNew);
|
||||
Console.WriteLine($"After: Worker threads {workerNew}, IO threads {ioNew}");
|
||||
|
||||
MareMetrics.InitializeMetrics(context, services.GetRequiredService<IConfiguration>());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue