Comments (2)
@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.
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)
- Add release 16 and 17 support HOT 2
- tags not synced HOT 2
- Is sasl needed in the application? HOT 2
- update readme - users HOT 4
- Progress reports are output to console HOT 2
- Model failure: when resetting a fuse the timer reference is not reset HOT 1
- Model failure: Unexpected cancel timer HOT 3
- Reinstall failures.
- Some invariants which is needed to move forward: HOT 1
- What is a circuit breaker..? HOT 1
- Fault Injection Fuses lead to errors HOT 3
- gulp build issue with html files HOT 1
- Relax the circuit name? HOT 3
- SASL started by default HOT 8
- Bump version and update hex.pm package HOT 6
- Move from Travis CI to GitHub Actions? HOT 1
- Broken spec for the name of a fuse
- telemetry implementation of fuse_stats_plugin? HOT 1
- Generalized support for statistics export to monitoring systems. HOT 6
- Control the service restart after blown HOT 35
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fuse.