-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Provide a REST API for Vegeta commands #366
Comments
I’d like that! I’d use it as a cache warmer with a few requests per second. I have something running based on vegeta already. It generates the next requests to run (goes through all paginantes endpoints) but there are issues such as sometimes the attacker sends a nil object in the response channel... |
This is a very good idea, turning I like this feature |
I am just not sure if it should be part of this repo or a separate one. Something like vegeta-server. I am starting to create and Swagger spec for the |
Use the lib ;) |
This is a great idea and something I have played around with before, but didn't have the time to pursue further. I think this should be part of vegeta, but a separate sub-command like |
@tsenart I have started working on this. IMO it might be better suited for a separate repository, that uses the I am creating a So the separate repository can be used for the WDYT? |
To make it clear to everyone in the future about this decision, can we elaborate in writing about the pro / cons of each approach? |
BTW, just found this on Docker hub. Might be worth contacting the author to share learnings: https://hub.docker.com/r/endianogino/vegeta-server |
Pros: Cons: |
Can you elaborate a bit more on what would make it easier?
This is a non-issue in my view. |
Can you elaborate a bit more on what would make it easier? This was a more generic statement. A separate entity is always going to be easier to maintain rather than a large project. But with that said my main concern with the keeping everything in this repo is having the CLI code in the root directory. I completely understand the choice since it is the sole utilizer of the |
It's perfectly reasonable to create the server code in |
Cool. Let me see if I can figure out how to get |
I added my comment to #336 regarding creating distributed tests. I think creating a server that starts tests isn't required and will make this tool overly complicated. How would you manage resources if multiple clients try to run tests at the same time? Better to do one thing well and use other tools for orchestration. |
I have created a project that implements the REST API for vegeta - https://github.com/nitishm/vegeta-server |
Has anyone considered creating REST endpoints for all the Vegeta commands, that would allow you to run a master server that a client can connect to, to initiate load tests.
This could also help with a more robust distributed test framework capable of being deployed on kubernetes, #336
The text was updated successfully, but these errors were encountered: