如何在Spring Boot应用程序中删除Web服务器并继续通过健康检查部署到ECS中

发布于 2025-01-20 18:42:52 字数 240 浏览 0 评论 0原文

我有一个 Spring Boot 服务,仅从 kafka 主题发送和接收消息, 我想删除网络服务器(tomcat),因为不需要它。 问题是服务当前部署在 ECS 上,端点 /actuator/health 用于检查服务的运行状况,这意味着如果我删除 Web 服务器,管道中的部署将不会成功,因为运行状况检查会失败,

我尝试将 ALB 设置为内部,但 Kafka 服务不在同一个 VPC 中,并且服务无法连接

是否有任何解决方案来隔离服务?

I have a spring boot service that send and receive messages only from a kafka topic,
I want to remove the web server (tomcat) since there is no need for it.
The problem is the service is currently deployed on ECS and the end point /actuator/health is used to check the health of the service, which means if I remove the web server the deployment in the pipeline won't be successful since the health checks will fail,

I tried making the ALB internal but the Kafka service is not in the same VPC and the service couldn’t connect

Is there any solutions to isolate the service ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文