Giter VIP home page Giter VIP logo

right-size-guide's Introduction

right-size-guide's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

right-size-guide's Issues

rsg for testing Docker API

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

  1. Created Docker image with Python Django image to expose Rest API
  2. Started the container in the developer machine

docker run -p 8090:8080 djangoimage:1.0
Watching for file changes with StartReloader

  1. Started duplicate session and verified the API

curl -i http://127.0.0.1:8090/
Hello World. You are at the index page

  1. Executed below rsg command

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

  1. The docker is also throwing below error message in the first session
    ConnectionResetError: [Error 104] Connection reset by peer

Can you please look into the issue ? Can we use the tool to test Rest API created using Docker containers ?

Thanks
Raju Sreenivasan

rsg for Kubernetes API

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

How to use your tool

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.