本文介绍了Appengine LogService有一个未公开的配额 - 每天最多读取1000000次读取,知道一种解决方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Appengine LogService有一个未公开的配额:
您每天最多可以从它读取1,000,000次读取数据,然后您将收到以下错误:

  Traceback(最近一次调用最后一次):
文件/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py,行701,在__call__
handler.get(* groups)
文件/base/data/home/apps/xxx/3.356325783019142341/xxx.py,第355行,获取
for request_log在logservice.fetch中(start_time = start_time,end_time = end_time,version_ids = [3]):
文件/base/python_runtime/python_lib/versions/1/google/appengine/api/logservice/logservice.py ,第414行,在__iter__
self._advance()
文件/base/python_runtime/python_lib/versions/1/google/appengine/api/logservice/logservice.py,第427行,in _advance
响应)
文件/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py,行94,在MakeSyncCall
返回s tubmap.MakeSyncCall(服务,呼叫,请求,响应)
档 /base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py,线路308,在MakeSyncCall
RPC .CheckSuccess()
档 /base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_rpc.py,线路133,在CheckSuccess
加薪self.exception
OverQuotaError :API调用logservice.Read()需要比可用配额更多的配额。

此外,当您达到此配额时,您将开始在信息中心看到以下信息(AFAIK you以前没有看到这一行):



在这一点上,它根本没有记录,它似乎也不是可计费的。



另请参阅:



希望它能为您节省一些时间。



让我知道您是否可以考虑解决方法...(只是为了解决问题;)) 解决方案

您可以请求获得限制增加:


Appengine LogService has an undocumented quota:You can make up to a 1,000,000 reads from it per day, and then you'll receive the following error:

Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 701, in __call__
    handler.get(*groups)
  File "/base/data/home/apps/xxx/3.356325783019142341/xxx.py", line 355, in get
    for request_log in logservice.fetch(start_time=start_time, end_time=end_time, version_ids=["3"]):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/logservice/logservice.py", line 414, in __iter__
    self._advance()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/logservice/logservice.py", line 427, in _advance
    response)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 94, in MakeSyncCall
    return stubmap.MakeSyncCall(service, call, request, response)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 308, in MakeSyncCall
    rpc.CheckSuccess()
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_rpc.py", line 133, in CheckSuccess
    raise self.exception
OverQuotaError: The API call logservice.Read() required more quota than is available.

Also, when you reach this quota, you'll start see the following on your dashboard (AFAIK you don't see this line there before):

At that point it's not documented at all, and it seems it isn't billable too.

See this too: http://groups.google.com/group/google-appengine/browse_thread/thread/61fac55e1a2d521

Hope it'll save you some time.

Let me know if you can think on a workaround... (just to make it a question ;) )

解决方案

You can request to have your limits increased: http://support.google.com/code/bin/request.py?&contact_type=AppEngineCPURequest

这篇关于Appengine LogService有一个未公开的配额 - 每天最多读取1000000次读取,知道一种解决方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 11:45