【问题标题】:Cache Host config in Azure In-Role caching在 Azure 角色缓存中缓存主机配置
【发布时间】:2014-12-22 20:35:53
【问题描述】:

根据 this MSDN article(在 AppFabric 缓存上,这是运行 Azure 的),我应该能够找到位于 \Windows\System32\AppFabricDistributedCacheService.exe.config 文件,但它在任何实例上都不存在.

当远程进入其中一个实例并搜索配置时,我在E:\plugins\Caching 中找到了几个与缓存相关的配置文件。

CacheService.config.exe 文件看起来很有前途(类似于DistributedCacheService .exe.config),除了dataCacheConfig 没有初始化:

<dataCacheConfig cacheHostName=""> 
  <!-- Comment/uncomment below line to disable/enable file sink logging.
  Also location attribute is not honored. It is just specified since its mandatory. -->
  <!--<log logLevel="3" location="" />-->
  <clusterConfig connectionString="" />
</dataCacheConfig>

为了解决a previous post of mine问题,我需要确认某些数据缓存设置在服务器端配置正确。

我的客户端 web.config 看起来像这样:

<dataCacheClients>
  <dataCacheClient name="DataCache1">
    <autoDiscover isEnabled="true" identifier="MyRoleName" />
    <transportProperties maxBufferPoolSize="6400000" maxBufferSize="256" />
  </dataCacheClient>
  <dataCacheClient name="DataCache2">
    <autoDiscover isEnabled="true" identifier="MyRoleName" />
    <transportProperties maxBufferPoolSize="0" maxBufferSize="10485760" />
  </dataCacheClient>
  <dataCacheClient name="DataCache3">
    <autoDiscover isEnabled="true" identifier="MyRoleName" />
    <transportProperties maxBufferPoolSize="3276800" maxBufferSize="32768" />
  </dataCacheClient>
</dataCacheClients>

在 Azure 角色内缓存(并置)中的哪里可以找到缓存主机配置文件?

【问题讨论】:

    标签: azure appfabric appfabric-cache azure-appfabric azure-in-role-cache


    【解决方案1】:

    您在本地 AppFabric 缓存中配置的主机属性在 InRole 缓存中动态初始化。您可以在 Program Files\Microsoft SDKs\Windows Azure.NET SDK\v2.2\bin\plugins\Caching 中查看 Caching.csplugin 以查看缓存服务器的端点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-12-20
      • 1970-01-01
      • 1970-01-01
      • 2015-02-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多