在Azure中缓存主机配置角色内缓存 [英] Cache Host config in Azure In-Role caching

查看:284
本文介绍了在Azure中缓存主机配置角色内缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此​​,以这个MSDN文章 (上AppFabric缓存,这是Azure是上运行),我应该能够找到位于 \\ Windows中的 DistributedCacheService.exe.config 文件\\ SYSTEM32 \\ AppFabric的,但它不会对任何实例的存在。

Accordingly to this MSDN article (on AppFabric Caching, which is what Azure is run on), I should be able to find a DistributedCacheService.exe.config file located at \Windows\System32\AppFabric, but it doesn't exist on any of the instances.

当远程访问到其中一个实例和搜索CONFIGS,我发现在电子数高速缓存​​相关的配置文件:\\插件\\缓存

When remoting into one of the instances and searching for configs, I find several cache-related config files in E:\plugins\Caching.

CacheService.config.exe 文件看起来非常有前途(类似于 DistributedCacheService .exe.config ),除该 dataCacheConfig 未初始化:

The CacheService.config.exe file looks very promising (similar to DistributedCacheService .exe.config), except that the dataCacheConfig is not initialized:

<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>

我需要确认某些数据缓存设置正在为解决<一个服务器端的正确配置href=\"http://stackoverflow.com/questions/26413752/multiple-datacacheclients-strange-configuration-behaviour\">a previous矿后的

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

My client-side web.config looks something like this:

<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角色内缓存(同一地点)?

推荐答案

您在premise AppFabric的缓存配置主机属性在InRole缓存动态初始化。您可以在程序Files \\ Microsoft的SDK \\的Windows Azure.NET SDK \\ 2.2 \\ BIN \\插件\\缓存检查Caching.csplugin看到端点缓存服务器。

The host property that you configure in on premise AppFabric cache is dynamically initialized in InRole Cache. You can check Caching.csplugin at Program Files\Microsoft SDKs\Windows Azure.NET SDK\v2.2\bin\plugins\Caching to see the endpoints for the cache server.

这篇关于在Azure中缓存主机配置角色内缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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