google-app-engine - 可持续的每秒查询 [QPS],不会产生超时错误

标签 google-app-engine timeout google-cloud-datastore contention

你知道哪个是最安全 Queries Per Second在不引起写入争用的情况下对单个实体进行更新的速率?
正在阅读this关于分片的文档明确指出:

it is important to note that you can only expect to update any single entity or entity group about five times a second. That is an estimate and the actual update rate for an entity is dependent on several attributes of the entity, including how many properties it has, how large it is, and how many indexes need updating.

我有timeout problem即使每秒更新一次并在 this 中发表评论答案让我困惑:

You can still get write contention on individual entities if you're doing more than about 1QPS of modifications to them

我错过了什么吗?
如果我什至无法每秒更新一个实体而不引发超时错误,我的 GAE 应用程序如何扩展?

最佳答案

出现差异的原因是这不是硬性限制。如果您对实体组进行 1 QPS 更新,您可能根本不会注意到超时或延迟有任何显着增加。如果 QPS 为 5,您可能会看到超时率增加,并且延迟明显更高。除此之外,争用问题将会变得更糟。

一般来说,我认为 1 QPS 是围绕 1 QPS 构建的设计目标,以便为峰值提供合理的误差范围。

关于google-app-engine - 可持续的每秒查询 [QPS],不会产生超时错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4758297/

相关文章:

google-app-engine - Google Datastore,获取特定的实体属性

python - 验证多个字段,因为它们是一个?

azure - azure webapp 中 4 分钟长的服务器调用后超时

java - JPA(和/或 Hibernate)- 如何设置连接和/或查询的超时阈值?

google-app-engine - Google App Engine - 将现有的 NDB 属性升级为重复的结构化属性

java - 我可以控制 Objectify 如何序列化嵌入实体吗?

java - Google Bigquery 流数据错误

php - 在 App Engine 运行时 PHP 7.2 上启用 Memcached

google-app-engine - 在 golang 上执行 post 请求以获取 uber 身份验证不起作用

c - Socket : Connect will spend 2 minutes looking for IP before it timesOut. 如何减少该时间?