https://github.com/elefthei/slob-poc
Sticky Load Balancer using DynDNS proof-of-concept
https://github.com/elefthei/slob-poc
Last synced: 5 months ago
JSON representation
Sticky Load Balancer using DynDNS proof-of-concept
- Host: GitHub
- URL: https://github.com/elefthei/slob-poc
- Owner: elefthei
- License: mit
- Created: 2017-04-16T07:15:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-31T04:58:23.000Z (almost 9 years ago)
- Last Synced: 2025-04-11T21:19:45.110Z (about 1 year ago)
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# slob-poc
Sticky Load Balancer using DynDNS proof-of-concept.
# Running
Building:
```
docker-compose build
```
Running:
```
docker-compose up
```
Usage:
1. Requests to http://localhost/register will be forwarded to the registration container.
2. A small flask application that is the registration server will register a DNS redirect from all future requests to
http:// to http://. permanently.
3. This is a sticky load-balancer proof-of-concept, useful if you want a user/device to always be load-balanced to the same server.
Examples:
```
$ curl -H "id: foobar" http://localhost/hello
Request served by a8c328d3193f
HTTP/1.0 GET /foobar/hello
Host: echo
Id: foobar
Connection: close
User-Agent: curl/7.51.0
Accept: */*
```
```
$ curl -H "id: foobar" http://localhost/register
Request served by 20d00536e37a
HTTP/1.0 GET /register
Host: register
Accept: */*
Id: foobar
Connection: close
User-Agent: curl/7.51.0
```