Skip to content
This repository was archived by the owner on May 4, 2021. It is now read-only.

Latest commit

 

History

History
18 lines (9 loc) · 606 Bytes

File metadata and controls

18 lines (9 loc) · 606 Bytes

http-tap

Pauses and resumes HTTP connections to allow zero downtime deployments with schema migrations. Inspired by How Balanced does Database Migrations with Zero-Downtime.

Usage

docker run -d --name tap -e FRONTEND_BIND="0.0.0.0:80" -e BACKEND_SERVER="127.0.0.1:8000" --net host tutum/http-tap

Will listen in http://0.0.0.0:80 and forward requests to http://127.0.0.1:8000

To pause all connections:

docker exec tap pause

To resume all paused connections:

docker exec tap resume