Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gRPC load test example #1755

Merged
merged 2 commits into from
May 5, 2021
Merged

Commits on May 4, 2021

  1. Call the User instance method stop()

    This allows to use an overridden `stop()` method when the Locust
    runner stops the user, which allows for more flexibility without
    introducing additional complexity.
    
    One of the use cases is being able to close a gRPC channel before
    killing the user greenlet.
    MIC3LHN committed May 4, 2021
    Configuration menu
    Copy the full SHA
    7c2b283 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2021

  1. Add gRPC load test example

    Due to two main reason: (1) grpcio needs to be "patched" to use `gevent`
    and (2) the existing patch has a bug (see
    (grpc#15880)[grpc/grpc#15880]) implementing
    gRPC load tests using Locust is not immediately obvious.
    
    This example showcases how to implement a simple load test against
    a gPRC server making sure that the requests are asynchronous.
    MIC3LHN committed May 5, 2021
    Configuration menu
    Copy the full SHA
    9b30cc4 View commit details
    Browse the repository at this point in the history