Code Monkey home page Code Monkey logo

Comments (2)

tarekziade avatar tarekziade commented on August 16, 2024

Ah sorry, I just answered by e-mail :)

I like the idea a lot - I think the hardest part is to make sure we can express the failures scenarios in a simple way in the configuration, because what you're describing is starting to get quite complex.

If you can propose an implementation in a PR, I guess it's a good step forward to see how it can look

Thanks a lot !

from vaurien.

mfschwartz avatar mfschwartz commented on August 16, 2024

Hi Tarek,

I realized more work will be needed beyond what I described above:

Right now vaurien only supports perturbing the transmission between the client and a single backend service -- e.g., the command:

./vauenv/bin/python vauenv/lib/python2.7/site-packages/vaurien/run.py --protocol http --proxy localhost:8000 --backend www.googleapis.com:443 --behavior 10:error

will cause requests sent to localhost:8000 to return 5xx errors for 10% of the traffic, and pass the rest through to www.googleapis.com:443. But gsutil needs to send requests to *.googleapis.com (for storage) as well as to accounts.google.com (for authentication), so this simple setup won't work. Instead I think we'd need to make vaurien understand real HTTP proxying, with the client sending absolute-form (http://tools.ietf.org/html/rfc7230#section-5.3.2) requests and the proxy doing the needed DNS lookup, rewriting the request and sending it on to the downstream server, and similarly passing responses back from the server.

So, now I'm wondering whether it makes more sense to add such proxy functionality to vaurien vs to start with a proxy (Squid) and add programmable behavioral controls.

Your thoughts/comments welcome.

Thanks,

Mike

from vaurien.

Related Issues (20)

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.