boomer_locust

command module
v0.0.0-...-0606ef5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 10 Imported by: 0

README

Boomer_locust

Distributed pressure measurement for docker & k8s. Using Boomer locust with prometheues and grafana.

View testerhome for more details: https://testerhome.com/topics/24828

Contact me on QQ group: 552643038

Usage

HTTP/HTTPS

To run http/https examples:

# get code
git clone git@github.com:ShaoNianyr/boomer_locust.git
cd boomer_locust

# run server with docker-compose
docker-compose up -d

# view your urls
locust http://localhost:8089

Success:

httpSucc

Set slave targetUrl:

locust-slave1:
    image: shaonian/locust-slave:latest
    command:
      - ./target
      - --master-host=locust-master
      - --master-port=5557
      - --url=http://flask-demo:5000

You can set the targetUrl by using '--url'.

TargetUrl in docker is combined by image_name and port.

TargetUrl in k8s is combined by svc_name.namspace and port.

gRPC

To run grpc examples:

# get code
git clone git@github.com:ShaoNianyr/boomer_locust.git
cd boomer_locust/grpc

# run server with docker-compose
docker-compose up -d

# view your urls
locust http://localhost:8089

Success:

grpcSucc

Set slave targetUrl and targetData:

locust-slave1:
    image: shaonian/locust-slave-rpc:latest
    command:
      - ./helloworld.pb
      - --master-host=locust-master
      - --master-port=5557
      - --url=grpc-demo:50051
      - --data={"name":"world"}

You can set the targetUrl and targetData by using '--url' and '--data'.

TargetUrl in docker is combined by image_name and port.

TargetUrl in k8s is combined by svc_name.namspace and port.

Grafana

If you need grafana,please uncomment the following codes in your docker-compose.yml.

  # prometheus:
  #   image: prom/prometheus
  #   volumes:
  #     - ./prometheus.yml:/etc/prometheus/prometheus.yml
  #     - ./prometheus/data:/root/prometheus/prometheus-data
  #   links:
  #     - locust-master
  #   ports:
  #     - "9090:9090"

  # grafana:
  #   image: grafana/grafana
  #   volumes:
  #     - ./grafana/data:/var/lib/grafana
  #   links:
  #     - prometheus
  #   ports:
  #     - "3000:3000"

Grafana Dashboard:

newGrafana

Detail

For more detail, view testerhome: https://testerhome.com/topics/24828

Contributing

locust

boomer

License

Open source licensed under the MIT license (see LICENSE file for details).

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cli
tcp
udp
grpc
greeter_client
Package main implements a client for Greeter service.
Package main implements a client for Greeter service.
greeter_server
Package main implements a server for Greeter service.
Package main implements a server for Greeter service.
http

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL