【问题标题】:Scaling for spring boot application using spring cloud使用 Spring Cloud 扩展 Spring Boot 应用程序
【发布时间】:2022-02-08 13:28:09
【问题描述】:
我正在使用带有 Kubernetes 和 Eventhub 的 Spring Boot。要连接 Azure Eventhub,我使用 spring cloud stream。假设使用 apache tomcat 的非反应式 Spring Boot 应用程序,确定 pod 数量的数学是什么?
编辑 1:重新构建我的问题,在扩展 pod 时如何考虑 spring boot 性能、请求率、用户数等?
【问题讨论】:
标签:
spring-boot
kubernetes
microservices
【解决方案1】:
通常可以通过 Kubernetes 中的部署来管理 pod 的数量。有关更多信息,您可以在此处查看kubernetes.io。在 Deployment 中,你告诉 Kubernetes 你想要多少个 Replica,这意味着应该运行多少个 Pod。我不知道您对带有 apache tomcat 的非反应式 Spring Boot 应用程序是什么意思。我也不知道春云流。