简体   繁体   English

Windows Azure缓存(预览)非常慢

[英]Windows Azure Caching (Preview) Very Slow

I setup Windows Azure Caching because I wanted a high performance way to share real time data between multiple web roles. 我设置Windows Azure缓存是因为我想要一种高性能的方式来在多个Web角色之间共享实时数据。 I've read that with the old shared caching anything over 10ms for access times typically indicates a problem and the new Windows Azure Caching Preview is supposed to be much faster. 我已经读到,使用旧的共享缓存将访问时间超过10ms的任何内容通常都表示存在问题,而新的Windows Azure缓存预览应该要快得多。 However, it is taking over a second just to read and write a single value from the cache. 但是,从缓存中读取和写入单个值仅花费一秒钟的时间。 I thought it might be my setup so I ran the azure latency test project and I am getting these times which are not as bad but still very slow: 我认为这可能是我的设置,所以我运行了天蓝色延迟测试项目,我得到的这些时间并没有那么糟糕,但仍然很慢:

1000 Add Operations
    Average cache latency/key: 104.318ms
1000 Get Operations
    Average cache latency/key: 96.881ms
1000 Put Operations
    Average cache latency/key: 105.48ms
BulkGet of 1000 Keys from Local Cache
    Average cache latency/key: 4.641ms
1000 Remove Operations
    Average cache latency/key: 254.14ms

Here is the link to the code rather than trying to post all of it which is quite large: http://code.msdn.microsoft.com/windowsazure/Windows-Azure-Cache-c3e80a1f 这是代码的链接,而不是尝试发布所有非常大的代码: http : //code.msdn.microsoft.com/windowsazure/Windows-Azure-Cache-c3e80a1f

Here is my web.config settings: 这是我的web.config设置:

  <dataCacheClients>
    <dataCacheClient name="default">

      <autoDiscover isEnabled="true" identifier="X" />

      <localCache isEnabled="true" sync="TimeoutBased" objectCount="100000" ttlValue="300" />


      <securityProperties mode="Message" sslEnabled="false">
        <messageSecurity authorizationInfo="X" />
      </securityProperties>
    </dataCacheClient>
  </dataCacheClients>

Am I missing something or these are the kind of dismal times I can expect? 我错过了什么,或者这些是我可以期待的那种惨淡的时刻?

If I've read the sample correctly it is expected that you'll deploy this to Azure before running the tests. 如果我已正确读取示例,则应在运行测试之前将其部署到Azure。

The cache service is not designed to be used outside of the data centre that it's deployed in because then its performance will be constrained by the relatively high latency network connections. 缓存服务不是为在其部署的数据中心之外使用而设计的,因为它的性能将受到相对高延迟的网络连接的限制。 That average time of 100ms is likely the network latency between you and the cache service. 100ms的平均时间可能是您与缓存服务之间的网络延迟。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM