Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

mindcandy/split-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Split proxy

Simple node.js script to split incoming requests and send them to test-target, ignoring all responses from this target and to live-target, which responses are actually getting passed back to client.

Used to split live traffic to stress test X (where X is a new webapp node(s), new DB server or whatever else you need).

Use

Edit split-proxy.js file and set live_target, test_target and port to desired values, eg.

  var live_target = "123.123.123.123";
  var test_target = "192.168.1.1";
  var port = 8080;

And then run it:

  node ./split-proxy.js

Self-healing

To enable super-dooper self-healing mode run split proxy as following:

  while [ 1 ]; do node ./split-proxy.js; done

Notice

It prints 4 lines every request to stdout; if you are getting a lot of traffic it may be quite chatty.

About

Split proxy written in node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published