问题描述
我尝试在GC AppEngine上部署应用程序.在部署过程中没有错误,但应用程序不起作用(仅显示加载页面).日志中唯一奇怪的原始文件
I try to deploy application on the GC AppEngine. There are no errors during deploy process but application doesn't work (Just show loading page).The only one strange raw in logs
OpenBLAS WARNING - could not determine the L2 cache size on this system
顺便说一句-它在我的本地计算机上运行良好.
这是基于Dash框架的python网络应用
By the way - it works well on my local machine.
This is python web app based on Dash framework
我的app.yaml:
My app.yaml:
runtime: python37
service: service-name
instance_class: F2
entrypoint: gunicorn -b :$PORT main:app.server
Requirements.txt:
Requirements.txt:
Flask==1.0.2
dash==0.34.0
dash-html-components==0.13.4
dash-core-components==0.41.0
dash-table==3.1.11
gunicorn==19.9.0
google-cloud-pubsub==0.37.2
requests==2.21.0
pandas==0.23.4
推荐答案
我对熊猫和Dash遇到了同样的问题,但发现了您的问题(希望它可以给我带来一些启发).卡了几个小时后,我找到了答案,然后回去分享:-)
I just had your same problem with pandas and Dash and found your question (hoping it would give me some light). After being stuck for several hours, I found the answer, and came back to share :-)
如果您看到的唯一错误是OpenBLAS警告,则很可能该应用程序运行良好.在调试了这个问题几个小时之后,我发现由于Dash和Pandas占用大量内存,F2实例无法正确处理Web应用程序,并且由于缺少RAM内存而失败.请尝试在您的YAML/JSON配置文件中将实例更改为具有更多RAM内存的最高自动单元,然后它可能会起作用:
If the only error that you're seeing is the OpenBLAS warning, most likely the app is working well. After debugging this problem for several hours, I found that as Dash and Pandas consume a lot of memory, the F2 instance is not able to handle the web app properly and fails due to lack of RAM memory. Please try changing in your YAML/JSON configuration file your instance to the highest possible automatic unit with more RAM memory, and then it will probably work:
instance_class: F4_HIGHMEM
Google App Engine现在支持更多实例类型.检查实例类型的文档:标准实例
Google App Engine now supports more instance types. Check the docs of instance types: standard instances
此外,请记住,第一次运行此Web应用程序将花费更多时间.如果您查看日志,将显示以下几种提示.稍等一会儿
In addition, please keep in mind that the first time you run this web app, it will take considerably more time to execute. If you check the logs you'll have several prompts like the one below. Just wait a little bit more
这篇关于AppEngine警告-OpenBLAS警告-无法确定此系统上的L2缓存大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!