Comments (3)
Hi @gedw99 and thanks for the suggestion. I have very limited working experience with Nats. If you have a suggested workflow (for example the one described above) I would be very interested in a PR with updated examples in the README
from cassowary.
i think its only slight changes...
https://github.com/rogerwelin/cassowary#distributed-load-testing:
K8 is just the envelope for the cloud infrastructure and nothing to do with if we use NATS of not. Good news.
We can embed the NATS server. Just a bool flag at startup. Makes things easy for people to not have to run another server.
- if the "embedded nats" flag is false, the cli just needs the url: "localhost:4422".
- nats jetstream can run as InMemory mode, so on K8( there is no volume management needed ).
We can store results over time inside NATS the NATS KV and OBJ store.
- works with embedded or non embedded mode.
JOBS
First, the easiest way is to add a NATS file slurp mode. Keep the existing Http one:
./cassowary run -u http://localhost:8000 -c 1 -f urlpath.txt
- client pushes
urlpath.txt
and args to nats handler, which then creates a nats queue for each line in the URL list. - all other clients are sent a job off the queue, do the work and submit those back to the NATS KV.
Starting Load Test with 100 requests using 10 concurrent users
./cassowary run -u http://localhost:8000 -c 10 -n 100 -f urlpath.txt
- same as above, with the NATS job handler ensuring concurrency and affinity.
Prom Metrics
We can store all cassowary metrics as Prom style in NATS too: https://github.com/kmpm/promnats.go
Historgram / boxplots
- same as above except the outputs go back to NATS KV.
- each client can display the plots in real time by subscribing to the nats KV. Or a simple web GUI that shows them in real time.
- at the end of the job run a worker makes the plots, and stores them in NATS OBJ store, so that you can bring up a job later.
SO basically we are adding the scale out and persistence. You can export out easily too. Some people want to put the outputs in git etc.
Just opening this up for comments.
from cassowary.
will close as seems no one into the idea.
from cassowary.
Related Issues (20)
- passing different request Headers per each request from an external file HOT 2
- Question about timing the server processing
- panic running the test HOT 2
- [Package] Homebrew page? HOT 4
- is the Slurp mode gone? HOT 3
- PATCH support is missing HOT 3
- [Chore Feature Request]: Use cassowary_linux_x86_64.zip instead of cassowary_{VERSION}_Linux_x86_64.tar.gz.zip HOT 4
- Enhancement: add plugins HOT 2
- non-positive interval for NewTicker HOT 2
- Add proxy support
- Add histogram visualization HOT 1
- feature request: more percentiles HOT 1
- Build failure on WSL2 HOT 3
- Enhancement: add support for macports HOT 3
- Bug - use of Host header not working
- Fails and exits with context deadline exceeded (Client.Timeout exceeded while awaiting headers) HOT 3
- 0.14.0 checksum changed HOT 2
- Feature request: export raw data HOT 3
- Is there a way to disable tls verification? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cassowary.