您还需要增加服务器端的缓冲区大小:
如果使用XML配置,请添加以下内容:
<advancedProperties>
<transportProperties maxBufferSize="8388608" />
</advancedProperties>
Run Code Online (Sandbox Code Playgroud)
如果使用SQL配置,则需要将其导出到文件:
Export-CacheClusterConfig -File [yourfilepath]
Run Code Online (Sandbox Code Playgroud)
更改上面列出的文件,然后重新导入:
Stop-CacheCluster
Import-CacheClusterConfig -File [yourfilepath]
Start-CacheCluster
Run Code Online (Sandbox Code Playgroud)
但是,不建议在AppFabric Cache中存储大文件.
客户端它是DataCacheClient配置部分中传输元素的maxBufferSize.
<transportProperties ..whatever else you have.. maxBufferSize="8388608" />
Run Code Online (Sandbox Code Playgroud)
编辑:
来自MSDN的DataCacheClient部分的示例
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<!--configSections must be the FIRST element -->
<configSections>
<!-- required to read the <dataCacheClient> element -->
<section name="dataCacheClient"
type="Microsoft.ApplicationServer.Caching.DataCacheClientSection,
Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"
allowLocation="true"
allowDefinition="Everywhere"/>
</configSections>
<dataCacheClient requestTimeout="15000" channelOpenTimeout="3000" maxConnectionsToServer="1">
<localCache isEnabled="true" sync="TimeoutBased" ttlValue="300" objectCount="10000"/>
<clientNotification pollInterval="300" maxQueueLength="10000"/>
<hosts>
<host name="CacheServer1" cachePort="22233"/>
<host name="CacheServer2" cachePort="22233"/>
</hosts>
<securityProperties mode="Transport" protectionLevel="EncryptAndSign" />
<transportProperties connectionBufferSize="131072" maxBufferPoolSize="268435456"
maxBufferSize="8388608" maxOutputDelay="2" channelInitializationTimeout="60000"
receiveTimeout="600000"/>
</dataCacheClient>
</configuration>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6553 次 |
| 最近记录: |