Giter Club home page Giter Club logo

boomer_locust's Introduction

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 [email protected]: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 [email protected]: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).

boomer_locust's People

Contributors

shaonianyr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

boomer_locust's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.