Appengine LogService has an undocumented quota - up to 1000000 reads per day, know a way to workaround?

被刻印的时光 ゝ 提交于 2019-12-07 11:28:31

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/8989690/appengine-logservice-has-an-undocumented-quota-up-to-1000000-reads-per-day-kn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!