0

根據this MSDN article(在運行Azure的AppFabric緩存上),我應該能夠找到位於\Windows\System32\AppFabricDistributedCacheService.exe.config文件,但它不存在於任何的實例。Azure在角色緩存中的緩存主機配置

當遠程登錄到其中一個實例並搜索配置時,我在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中角色內緩存(同一地點)?

回答

0

您在本地AppFabric緩存中配置的主機屬性在InRole緩存中動態初始化。您可以在Program Files \ Microsoft SDKs \ Windows Azure.NET SDK \ v2.2 \ bin \ plugins \ Caching中檢查Caching.csplugin以查看緩存服務器的端點。