问题描述
我正在> https://recycler-mvdcj7favq-uc.a上运行Flask应用.run.app/在Google Cloud Run上运行,偶尔我无法获得503服务器,而刷新几次似乎加载了该页面.此外,有时会丢失一些静态文件.关于静态文件,可能是因为我要让Flask检索静态文件,但是我对为何不断使服务器不可用感到困惑.
I am running a Flask app at https://recycler-mvdcj7favq-uc.a.run.app/ on Google Cloud Run and occasionally I get 503 server unavailable while refreshing a few times seems to load the page. Also, sometimes a few static files are missing. Regarding the static files, it might be because I am getting Flask to retrieve the static files but I am confused on why I am constantly getting server unavailable.
推荐答案
我认为我发现了问题,我关闭了负载平衡功能,现在它不会使服务器不可用.
I think I found the issue, I turned off load balancing and it now doesn't return server unavailable.
这篇关于Google Cloud Run有时无法返回服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!