mhausenblas / right-size-guide Goto Github PK
View Code? Open in Web Editor NEWA CLI tool providing memory & CPU recommendations for containerized apps
Home Page: https://mhausenblas.info/right-size-guide/
License: Apache License 2.0
A CLI tool providing memory & CPU recommendations for containerized apps
Home Page: https://mhausenblas.info/right-size-guide/
License: Apache License 2.0
Hi, I'd like to try your tool to estimate an appropriate pod limit and request but i don't get how to use it.
especially I do not understand what to input for the target.
what do you mean of $BINARY and $HTTP_URL_PATH here?
rsg --target $BINARY
[--api-path $HTTP_URL_PATH --api-port $HTTP_PORT --peak-delay $TIME_MS --sampletime-idle $TIME_SEC --sampletime-peak $TIME_SEC --export-findings $FILE --output json|openmetrics]
Example usage:
rsg --target test/test --api-path /ping --api-port 8080 2>/dev/null
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
We wanted to test the usage of APIs hosted in Kubernetes. I came to know that the feature is not available and the tool can be used to test locally hosted APIs. So I am trying to run a Docker image in my developer machine and test the API using localhost. But it is not working as expected. The steps performed is given below
docker run -p 8090:8080 djangoimage:1.0
Watching for file changes with StartReloader
curl -i http://127.0.0.1:8090/
Hello World. You are at the index page
rsg --target test/test --api-path / --api-port 8090
Launching test/test for idle state resource usage assessment
Found idle state resource usage. Memory 0 kb CPU: 0 ms
Can you please look into the issue ? Can we use the tool to test Rest API created using Docker containers ?
Thanks
Raju Sreenivasan
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.