Giter VIP home page Giter VIP logo

Comments (2)

ferd avatar ferd commented on July 22, 2024 4

@jlouis use a simple thing like a dumb web server:

$ while true ; do  echo -e "HTTP/1.1 200 OK\r\nConnection:close\r\nContent-Length: ${#$(date)}\r\n\r\n$(date)" | nc -l -p 8081 ; done

(I use that to test dumb proxying/load-balancing modes here).

Put HTTP calls to localhost:8081 behind a fuse, and have fun taking the server up and down by killing the process. The fuse should tell you when it's entirely down to stop connecting.

For the fun of it, boot a second server on 8082, and have them output their name or something. Consider this to be switching from 'primary to replica' or from 'geographically close to in another datacenter" as a failover. Trigger the switch on failure, or by putting sleep time in the first server to simulate overload (and long time to respond).

from fuse.

jlouis avatar jlouis commented on July 22, 2024

Yes it would. Do you have a small example in mind which is rather self-contained and still useful? I was thinking about something where you had a database connection, but it easily ends up being large and contrived for an example.

So I am all for it, but I do think we should figure out what a good example would comprise.

from fuse.

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.