Appengine Python memcache容量缩小 [英] Appengine Python memcache capacity shrunk

查看:146
本文介绍了Appengine Python memcache容量缩小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在上传应用程序新版本appengine后, memcache 尺寸减小。当我记录 memcache统计信息(memcache.get_stats())`时,我发现old_item_age小于1分钟,缓存大小不超过3 meg。在旧版本的应用程序中,old_item 3600秒,缓存大小约为30 meg。
我在后端工作,当我阻止他们时,问题消失。
也使用django-nonrel
谢谢

Uri

解决方案

我不知道后端实际上是否会影响memcache容量,但我知道它是可变的并随时间而变化。它也可能是某种共享池,也可能因请求碰巧发生的实例而异。这可能也是因为你刚推出了一个新版本。



我通常不用担心检查容量。为了减少服务器负载,GAE团队最有兴趣将最佳优化,分配和驱逐策略应用到您的memcache。


After uploading a app new version appengine, memcache reduced in size. When I log the memcache statistics(memcache.get_stats())`, I see that the oldest_item_age is less the a minute old and the cache size is not more then 3 meg. In the older version of the app, the oldest_item 3600 second old and the cache size was ~30 meg. I work with backends and when I stop them the problem disappear. also I use django-nonrel Thanks

Uri

解决方案

I don't know if the backends actually affect memcache capacity, but I do know that it's variable and changes over time. It might also be a shared pool of some sort, and might also vary depending on which of your instances the request happens to hit. It could have also been because you'd just pushed a new version.

I usually don't worry about check the capacity. To reduce server load, it's in the GAE team's own best interests to apply the best optimization, allocation and eviction policies to your memcache.

这篇关于Appengine Python memcache容量缩小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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