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

运行命令后,会在无状态服务中创建如上的两个服务,其中
master是一个图形化界面,负责收集信息、展示。worker节点可以根据机器性能运行若干个,负责实际运行压测脚本。
为了访问图形化界面,需要为locust配置一个ingress(路由),端口为8090。
有任何问题,欢迎留言!
版权声明:本文为w_monster原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。