An open API service indexing awesome lists of open source software.

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

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
```