java - In GAE Java Standard environment how to scale based on memory consumption?
问题描述
I developed an application, that makes some calculations, and those calculations consumes memory, the user need to use same machine recursivelly then after 15 minutes without use the memory is cleared, but if I got many users acessing the instance I got memory out problems, its normal, because the algorithm was created to consume memory, the point is I can tell the autoscaling to scale if processing goes above 80%, but I can't scale if memory goes above 80%, anyone know or have an idea about how to scale GAE Standard based on memory consumption?
TIA
解决方案
The only possible automatic scaling settings that can be configured for the App Engine standard environment are:
- target_cpu_utilization
- target_throughput_utilization
- max_concurrent_requests
Find the documentation here and these are the corresponding parameters that you'll need to configure on your app.yaml file.
Notice that if you could somehow correlate the RAM used for your specific application with the concurrent requests, throughput utilization or the CPU utilization you could change the respective parameter(s) on your app.yaml file in order for your application to scale accordingly, but there is currently not a way to be able to enable automatic scaling on App Engine applications in the Standard environment based precisely on memory usage.
推荐阅读
- java - Vaadin flow - 在不同的包中拥有视图
- markdown - 在 Markdown、VS Code 中插入嵌入的 YouTube 视频
- javascript - 如何将 Google Drive 子文件夹 URL 导入到 Google Sheet
- sql - 无法在具有多个连接的烧瓶 ORM 中复制查询
- javascript - 使用 ES6 风格的导入构造一个数组
- python - 使用 Python 代码获取 Linux 服务信息(性能)
- xml - 如何在颤动中将XML字符串写入文件
- selenium - 如何捕获网络(XHR)?(硒 4)
- javascript - 如何对 html 表格进行排序,优先考虑数字并忽略字符串
- python - SP500 的 Pandas 数据框加入关闭