parallaxsecond / parsec-client-test Goto Github PK
View Code? Open in Web Editor NEWParsec client test
License: Apache License 2.0
Parsec client test
License: Apache License 2.0
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
.
StressWorker
s 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.
After the updates to the protobuf contracts and the subsequent changes to the interface, the test client should be updated to use the new available API.
A Rust client is going to be created parallaxsecond/parsec#127, this repository should be based on it and only contain the specific methods that are only useful for testing.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.