locust进阶,搭建生产级locust集群

本教程基于k8s集群搭建,使用helm作为包管理工具

通过helm安装locust👇两个命令

helm repo add deliveryhero https://charts.deliveryhero.io/
helm install [起个服务名] deliveryhero/locust

地址为:https://github.com/deliveryhero/helm-charts/tree/master/stable/locust

image-20220105114919573

运行命令后,会在无状态服务中创建如上的两个服务,其中

  • master是一个图形化界面,负责收集信息、展示。

  • worker节点可以根据机器性能运行若干个,负责实际运行压测脚本。

为了访问图形化界面,需要为locust配置一个ingress(路由),端口为8090。

有任何问题,欢迎留言!

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐