Improve high load resiliency
This commit is contained in:
parent
e73c8094ca
commit
f492672693
|
@ -3,6 +3,7 @@ using LinqToDB.Data;
|
|||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using RTMPDash.DataModels;
|
||||
using System.Threading;
|
||||
|
||||
namespace RTMPDash {
|
||||
public class Program {
|
||||
|
@ -18,6 +19,7 @@ namespace RTMPDash {
|
|||
|
||||
public static void Main(string[] args) {
|
||||
DataConnection.DefaultSettings = new AppDb.Settings();
|
||||
ThreadPool.SetMinThreads(100,100);
|
||||
CreateHostBuilder(args).Build().Run();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue