【问题标题】: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 应用程序是什么意思。我也不知道春云流。

    【讨论】:

      猜你喜欢
      • 2018-06-16
      • 2016-12-31
      • 1970-01-01
      • 1970-01-01
      • 2021-05-02
      • 2015-12-26
      • 2021-12-03
      • 2019-01-19
      • 2018-08-18
      相关资源
      最近更新 更多