Giter Site home page Giter Site logo

parsec-client-test's People

Contributors

hug-dev avatar ionut-arm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

parsec-client-test's Issues

Implement a stress test client

Stress tests are needed to ensure thatt he parsec service is resilient to heavy loads. A stress client would be a good addition to the test client family.

Stress Client Design Proposal

The StressTestClient will be more like a thread pool manager, spinning up a configurable number of threads that each act as a parsec client. The tasks in each thread will be executed by a StressWorker. One last thread will act as a ServiceChecker.

StressWorkers will generate a fixed number of random requests with a configurable delay between them. Not relevant at the moment, but for the future the workers can be expanded to randomly choose between providers as well.
Each worker generates an identity for itself at creation and then preserves that identity throughout the test.

The response status for the requests is relevant only as far as ensuring that the request was processed by the provider. An example would be signature verification, where the validity of the data provided as signature is irrelevant.

The ServiceChecker's job is to assess the status of the service periodically. It will go through a sign and verify test every time, making sure that the response is valid.

In the future, the checker could be expanded to keep track of response time. It could also actively collect statistics about the service process - e.g. CPU and memory usage.

The StressTestClient will not be immediately integrated in a CI test, but rather kept for testing on real hardware.

Wait for the service to be ready

The client should wait that the socket is created (with a timeout) before doing any operation. This will prevent having to put sleep in the CI test script.

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.