正式压力测试:locust进阶,超简单搭建生产级locust集群
locust进阶,搭建生产级locust集群。基于K8S集群的压力测试环境!
·
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。
有任何问题,欢迎留言!
更多推荐
已为社区贡献5条内容
所有评论(0)