简体   繁体   English

如何增加HttpSys将处理的并发请求数?

[英]How do I increase number of concurrent requests HttpSys will process?

We have a bunch of services which run with selfhosted http-listener using HttpSys. 我们有一堆服务,它们使用HttpSys与自托管的http-listener一起运行。

From what we can see, the HttpSys will only start 28 concurrent requests (at least on our developer workstations with 4 cores). 从我们可以看到,HttpSys将仅启动28个并发请求(至少在我们的具有4个内核的开发人员工作站上)。 How do we increase that? 我们如何增加呢?

We tried adjusting MaxAccepts, but it does not appear to have any effect 我们尝试调整MaxAccepts,但似乎没有任何效果

_host = new WebHostBuilder()
    .UseHttpSys(options =>
    {
        options.Authentication.Schemes = AuthenticationSchemes.NTLM | AuthenticationSchemes.Negotiate;
        options.Authentication.AllowAnonymous = true;
        options.MaxConnections = -1;
        options.MaxAccepts = 200;
    })

Microsoft has answered me on this one. 微软已经回答了我这一件事。 There are no limits on concurrent requests. 并发请求没有限制。 At least no other limit than the .net ThreadPool. .net ThreadPool至少没有其他限制。

MaxAccepts is how many threads are pulling work of the request-queue, and seding the requests to the Threadpool for processing MaxAccepts是多少线程正在拉动请求队列的工作,并将请求分流到Threadpool进行处理

Microsofts full response here 微软在这里的完整回应

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM