不明确的 Google Analytics API 配额限制
我最近一直在修复我的应用程序,该应用程序显然已达到一些 GA 配额 限制,我发现了一些不清楚的事情 我:
- 每个应用程序是否有 4 个并发请求 限制? 每个网络资产或其他什么?
- 如果我们在任何给定的 1 秒时间内中断 10 个请求 或 4 并发请求限制,GA停止需要多长时间 响应 503 ServiceUnavailable 错误?
- 每个应用程序的配额是否指应用程序名称字符串 仅有的?我们正在使用不同的 GA 运行两个不同的 Web 应用程序 应用程序字符串。两个应用程序都从同一 IP 地址连接 GA API。 我们可以预期每个申请的配额是针对每个计算的吗? 在这种情况下单独应用程序字符串?
- 状态代码是否与 503 ServiceUnavailable 响应一起发送 记录在任何地方?我们能否确定 rateLimitExceeded 指的是 每秒 10 个请求的限制?我怎样才能找出原因 503 响应?
顺便说一句,配额限制是否可能比记录的更严格 有时可能会生效?
例如,GA是否有可能回复503 ServiceUnavailable 在 6 个快速但后续请求后立即响应或仅仅因为任何 未包含的客户端应用程序的其他不良行为 在文档中?
问候,
帕维尔
I've been recently fixing my application that apparently reached some GA quota
limitations and I've found a couple of things that were not clear to
me:
- Does the 4 concurrent requests limitation apply per application,
per web property or anything else? - If we break the 10 requests in any given 1-second period or 4
concurrent requests limitation, how long does it take before GA stops
responding with 503 ServiceUnavailable error? - Does quota per application refer to the application name string
only? We are running two different web application using different GA
application string. Both apps connect GA API from the same IP address.
Can we expect the quota per application is calculated for each
application string separately in this case? - Are the status codes sent with 503 ServiceUnavailable response
documented anywhere? Can we be sure that rateLimitExceeded refers to
the 10 requests per second limitation? How can I found out the cause
of an 503 response?
Btw is it possible that a stronger quota restrictions than documented
may take effect sometimes?
For example, is it possible that GA replies with 503 ServiceUnavailable
response just after 6 fast but subsequent requests or just because of any
other undesired behavior of a client application that's not included
in the documentation?
Regards,
Pavel
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
刚刚已答复 由 GA Google 群组中的 Nick 撰写。
要点:每个IP的10个qps和4个并行请求限制计数,即使是在同一网络中的不同机器上运行的应用程序也可能被计数。
我已针对 GData 问题提交了文档错误报告追踪器。
It's just been answered by Nick in the GA Google Group.
Main points: the 10 qps and 4 parallel requests limitation count per IP, even an application running on a different machine in the same network may be counted.
I've submitted a documentation bugreport to the GData issue tracker.