Azure托管实例 - SQL Server Max并发连接 [英] Azure managed instance - SQL Server Max Concurrent connections

查看:185
本文介绍了Azure托管实例 - SQL Server Max并发连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

azure SQL MI上的最大并发连接数限制是多少?  



我有一个多线程的webjob(最大值为15)我一直看到下面的错误。相同的应用程序运行没有任何问题on-perm SQL服务器。你有人建议吗? 

What is the limit max concurrent connections on azure SQL MI ?  

I have a webjob which is multi-thread (max of 15 ) and I see below error all the time. the same app runs without any issues on-perm SQL server. can you someone suggest ? 



System.InvalidOperationException:超时已过期。  从池中获取连接之前已经过了超时时间。  这可能是因为
所有池化连接都在使用中并且达到了最大池大小

推荐答案

这听起来像是一个应用程序错误而不是SQL。 我见过类似的.NET应用程序,他们需要在连接字符串设置中指定连接池大小,而不是SQL(应用程序级别的默认值为100)。 连接
字符串将具有设置池大小,因此我不认为这是SQL问题。

This sounds like an application error rather than SQL.  I have seen similar for .NET apps where they needed to specify the connection pool size in the connection string settings, rather than SQL (default for the app level is 100).  The connection string will have a set pool size and so I dont think this is an SQL issue.

根据连接字符串,尝试类似下面的内容:

Depending on the connection string, try something like the below:

  "server=localhost;database=mydb;uid=user;pwd=mypw;Max Pool Size=200;";

看看是否有帮助......或者在需要时增加更多。

And see if that helps...or increase it more if needed.

谢谢,

马特


这篇关于Azure托管实例 - SQL Server Max并发连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆