教程 - 使用每秒请求自动扩展

根据每秒请求设置 microscaling

IMPORTANT: Tutorials are intended to give you hands-on experience working with a limited set of DC/OS features with no implied or explicit warranty of any kind. None of the information provided—including sample scripts, commands, or applications—is officially supported by Mesosphere. You should not use this information in a production environment without independent testing and validation.

您可以使用 marathon-lb-autoscale 应用程序通过 Marathon 实施基于速率的自动扩展。marathon-lb-autoscale 应用程序与使用 TCP 流量的任何应用程序一起工作,并可通过 HAProxy 进行路由。

marathon-lb-autoscale 从所有 HAProxy 实例收集数据,以确定应用程序当前的 RPS(每秒请求)。自动扩展控制器随后尝试维护每个服务实例每秒定义的目标请求数。 marathon-lb-autoscale 对 Marathon 进行 API 调用 以扩展应用程序。

有关更多信息,请参阅 Marathon-LB Reference