问题:当spring准备好处理流量时,在spring或它的嵌入式servlet容器中有打开端口的选项吗?
情况:在当前的设置中,我使用一个在google运行中运行的spring引导应用程序。
Circumstances:
问题:对未准备好的应用程序的流量将导致大量http 429状态代码。
这影响到:
我的愿望:
- Using [native-image](https://github.com/spring-projects-experimental/spring-native) is not an option as it is considered experimental and consumes more RAM at compile time than our deployment pipeline agents allow to allocate (max 8GB vs needed 13GB)- another answer i found: [readiness check for google cloud run - how?](https://stackoverflow.com/questions/56348839/readiness-check-for-google-cloud-run-how) which i don't see how it could satisfy my needs, since spring-boot startup time is still slow. That's why my initial idea was to delay opening ports我没有时间测试以下内容,但我偶然发现的一件事是
发布于 2021-08-30 09:10:29
正如您非常清楚的那样,“Cloud目前还没有准备就绪/活性检查以避免向未准备好的应用程序发送请求”,我要说的是,在Cloud Run的一侧除了:
这个问题似乎更直接地针对Spring,我发现了一个具有类似需求的文章。但是,如果您绝对需要该应用程序随时准备服务时,请求进来,我们有另一个替代云运行,Google Kubernetes Engine (GKE),它利用准备状态/活性探测。
https://stackoverflow.com/questions/68678300
复制相似问题