这是我的第一篇文章Stack Overflow,所以请道歉,如果有任何不符合。MaxBufferPoolSize和MaxBufferSize?
问题
我已经开发了一个基于Windows Azure的网站(类似于EBAY)和托管它Azure平台。我已经在启用Azure缓存的情况下部署了多个Web角色实例。直到上周一切都很顺利,但突然产品搜索页面从db加载数据时开始冻结。它仅针对返回大量数据的特定类别而挂起。
我在某处读到我们应该启用localCache和transportProperties,如果我们期待大消息。因此,我修改了我的web.config中的datacache项,如下所示,但没有运气。该页面仍然挂起这些类别!
请问有人能告诉我下面有什么错,并给我一些指示?
<dataCacheClient name="default" channelOpenTimeout="20000" maxConnectionsToServer="4" requestTimeout="30000"> <localCache isEnabled="true" sync="TimeoutBased" ttlValue="300" objectCount="10000"/> <clientNotification pollInterval="300" maxQueueLength="10000"/> <transportProperties connectionBufferSize="64000" maxBufferPoolSize="5242880" maxBufferSize="1242880" maxOutputDelay="2" channelInitializationTimeout="60000" receiveTimeout="600000"/> <hosts> <host name="<<AZURE CACHE URL>>" cachePort="22233" /> </hosts> <securityProperties mode="Message"> <messageSecurity authorizationInfo="<<KEY>>"> </messageSecurity> </securityProperties> </dataCacheClient> <dataCacheClient name="SslEndpoint" channelOpenTimeout="20000" maxConnectionsToServer="4" requestTimeout="30000"> <localCache isEnabled="true" sync="TimeoutBased" ttlValue="300" objectCount="10000"/> <clientNotification pollInterval="300" maxQueueLength="10000"/> <transportProperties connectionBufferSize="64000" maxBufferPoolSize="15242880" maxBufferSize="5242880" maxOutputDelay="2" channelInitializationTimeout="60000" receiveTimeout="600000"/> <hosts> <host name="<<AZURE CACHE URL>>" cachePort="22243" /> </hosts> <securityProperties mode="Message" sslEnabled="true"> <messageSecurity authorizationInfo="<<KEY>>"> </messageSecurity> </securityProperties> </dataCacheClient>
我的dev的包膜, Azure的SDK 1.8(10月12日),SQL Server 2008 R2中,ASP.Net MVC 3
UPDATE
今天,我部署了一个关于CustomerErrors的构建,以查看它是否抛出任何异常,这就是我所得到的。
在此先感谢
ND
感谢lgorek回复。问题肯定与缓存。在我之间尝试通过部署没有缓存的构建,它已经工作了! – 2013-03-12 07:09:46
为了澄清,我的应用程序运行在两个具有1GB(专用)Azure缓存的中型实例上 - 我发现很难相信这些配置对于几乎没有任何流量的网站(最多2个并发用户)是不够的!我们正在向MS购买上述配置,这就是我们正在获得的! – 2013-03-12 09:30:45