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

rsg for Kubernetes API #1

Closed
rajusreenivasan opened this issue Mar 25, 2020 · 5 comments
Closed

rsg for Kubernetes API #1

rajusreenivasan opened this issue Mar 25, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@rajusreenivasan
Copy link

Team,
We are trying to use rsg cli to test resource allocation of API hosted in Kubernetes. The ingress URL is https://k8s-api.mycompany.com

command used
rsg --target test/test --api-path /k8s-api.mycompany.com --api-port 443

The output is
Get http://127.0.0.1:443/k8s-api.mycompany.com dial tcp 127.0.0.1:443 connect: connection refused

Can you please let us know if the tool can be used to analyze the K8S API ingress URL ?

Thanks
Raju Sreenivasan

@mhausenblas
Copy link
Owner

Thanks a lot @rajusreenivasan and this is an excellent suggestion, happy to extend the tool into this direction!

Now, the output you see is expected (in its current implementation) as the target is launched in-process and the HTTP API call also is in-process. Technically, there are two Go routines running with one being the target binary that is assumed to expose a HTTP API and one that carries out the load testing.

It should be straight-forward to add a, say --base-url parameter that defaults to http://127.0.0.1 and that you can use to point it to an external API.

Does this make sense?

@mhausenblas mhausenblas self-assigned this Mar 25, 2020
@mhausenblas mhausenblas added the enhancement New feature or request label Mar 25, 2020
mhausenblas added a commit that referenced this issue Mar 26, 2020
addressing #1

Signed-off-by: Michael Hausenblas <hausenbl@amazon.com>
@mhausenblas
Copy link
Owner

Added support for the base URL in v0.96. I do note, however, that the results might not be what you'd expect in a real-world setup (since the load is now in the external service rather than in the process itself, which was the intention of the stress test in the first place). Let me know what you think, please.

@rajusreenivasan
Copy link
Author

rajusreenivasan commented Mar 27, 2020 via email

@mhausenblas
Copy link
Owner

The tool measures the resource usage of --target.

@rajusreenivasan
Copy link
Author

"It should be straight-forward to add a, say --base-url parameter that defaults to http://127.0.0.1 and that you can use to point it to an external API. Does this make sense?"
Definitely, this solution should solve our problem. Thanks for considering our requirement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants