Giter Club home page Giter Club logo

jupyterhub-loadtest's Introduction

jupyterhub-loadtest

Load Testing helper scripts for JupyterHubs

Usage

We use helm to spawn the tests!

  1. Make sure you have helm installed and configured.

  2. Prepare a configuration file. We use YAML, and you can find all the possible options in loadtest/values.yaml. At a minimum, you require:

    hub:
      url: <full-url-to-your-hub>
  3. Install the chart:

    helm upgrade --install --wait --namespace=<test-run-name> <test-run-name> loadtest -f config.yaml

    Where <test-run-name> is just a unique name you can use to identify this particular run. Make sure you use a unique namespace and release name for each run!

  4. You can look at the events being generated in many ways:

    a. Tailing the logs of the individual load test pods with kubectl logs. This is just the stderr and stdout of the process, which is mingled JSON events + logs. b. Tail the logs of the collector, which is aggregating just events. This is in the format of fluent-bit's out_file. Some logging is also co-mingled here. c. Copy the aggregated logs out of the collector pod. You can do this with a kubectl cp command, like:

    kubectl --namespace=<test-run-name> cp  $(kubectl --namespace=<test-run-name> get pod -l component=collector -o name | sed 's:pods/::'):/srv/events.log events.log

    This should copy just the events into events.log in your current directory. They're in the same out_file format, from which JSON can be easily extracted. There should be no other logs co-mingled here, so this is the best method for further analysis.

Cleaning up

You can delete the helm release easily with:

helm delete --purge <test-run-name>

Make sure to delete all the pods spawned by the hub before starting another test!

jupyterhub-loadtest's People

Contributors

cmoscardi avatar yuvipanda avatar

Watchers

 avatar

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.