keepalived & ha-proxy as an alternative to commercial loadbalancer - august 2014
TRANSCRIPT
![Page 1: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/1.jpg)
Keepalived & HA-Proxy as an alternative to commercial loadbalancer
![Page 2: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/2.jpg)
Wer bist du?
● Dein Name
● Was machst du mit Linux
● Warum bist du heute hier (optional)
![Page 3: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/3.jpg)
Das Problem
The World
Server
Datacenter
Router
CPU
![Page 4: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/4.jpg)
IPTables Cluster (ipt-cluster)
The World
Server
Datacenter
Router
Server
Server
![Page 5: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/5.jpg)
Mehr Möglichkeiten
The World
Datacenter
Router
Loadba lancer
Server
Server
Server
![Page 6: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/6.jpg)
Single Point of Failure
The World
Server
Datacenter
Router
ServerLoadba lancer
Server
![Page 7: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/7.jpg)
Doppelherz
The World
Server
Datacenter
Router
Server
Loadba lancer
Server
Loadba lancer
http://de.wikipedia.org/wiki/Datei:Doppelherz_logo.svg
![Page 8: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/8.jpg)
Wenn einer nicht mehr mag...
The World
Server
Datacenter
Router
Server
Loadba lancer
Server
Loadba lancer
![Page 9: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/9.jpg)
Übernimmt der Andere
The World
Server
Datacenter
Router
Server
Loadba lancer
Server
Loadba lancer
![Page 10: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/10.jpg)
Router
Floating IP
5.9.87.3
![Page 11: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/11.jpg)
Router
Floating IP
5.9.87.3
![Page 12: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/12.jpg)
Router
Keepalived
5.9.87.3
![Page 13: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/13.jpg)
Direct Routing
The World
Server
Datacenter
Router
Server
Keepali ved
Server
Keepali ved
5.9.78.3
5.9.78.35.9.78.3
5.9.78.3
![Page 14: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/14.jpg)
NAT
The World
Server
Datacenter
Router
Server
Keepali ved
Server
Keepali ved
5.9.78.3
10.1.1.510.1.1.4
10.1.1.3
10.1.1.2
![Page 15: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/15.jpg)
HA-Proxy
The World
Server
Datacenter
Router
Server
Keepali ved
Server
Keepali ved
5.9.78.3
HA
-Pro xy
HA
-Pro xy
10.1.1.510.1.1.4
10.1.1.3
10.1.1.2
![Page 16: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/16.jpg)
HA-Proxy / HTTP
Server
Datacenter
Router
Server
Keepali ved
Server
5.9.78.3
HA
-Pro xy
10.1.1.510.1.1.4
10.1.1.3
GET / HTTP/1.0Host: www.foo.org
GET / HTTP/1.0Host: www.foo.orgX-Forwarded-For: 19.4.1.124
10.1.1.2
![Page 17: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/17.jpg)
HA-Proxy / HTTP
Server
Datacenter
Router
Server
Keepali ved
Server
5.9.78.3
HA
-Pro xy
10.1.1.510.1.1.4
10.1.1.3
GET / HTTP/1.0Host: www.foo.org
GET / HTTP/1.0Host: www.foo.orgX-Forwarded-For: 19.4.1.124
10.1.1.2
src dst
19.4.1.124 5.9.78.3
src dst
10.1.1.2 10.1.1.4
![Page 18: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/18.jpg)
HA-Proxy / Transparent Proxy
Server
Datacenter
Router
Server
Keepali ved
Server
5.9.78.3
HA
-Pro xy
10.1.1.510.1.1.4
10.1.1.3
10.1.1.2
src dst
19.4.1.124 5.9.78.3
src dst
19.4.1.124 10.1.1.4
0000000 6f72 746f 783a 303a 303a 723a 6f6f 3a740000010 722f 6f6f 3a74 622f 6e69 622f 7361 0a680000020 6164 6d65 6e6f 783a 313a 313a 643a 65610000030 6f6d 3a6e 752f 7273 732f 6962 3a6e 752f0000040 7273 732f 6962 2f6e 6f6e 6f6c 6967 0a6e
![Page 19: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/19.jpg)
Was haben wir soweit?
The World
Server
Datacenter
Router
Server
Keepali ved
Server
Keepali ved
5.9.78.3
HA
-Pro xy
HA
-Pro xy
10.1.1.510.1.1.4
10.1.1.3
10.1.1.2
![Page 20: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/20.jpg)
Fragen?
The World
Server
Datacenter
Router
Server
Keepalive d
Server
Keepalive d
5.9.78.3
HA
-Proxy
HA
-Proxy
10.1.1.510.1.1.4
10.1.1.3
10.1.1.2
● Keepalived: http://www.keepalived.org/
● HAProxy: http://www.haproxy.org/
● Beispiel mit Rex: https://github.com/RexOps/service-loadbalancer
![Page 21: Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014](https://reader033.vdocument.in/reader033/viewer/2022051617/55a1e06c1a28ab21778b47a2/html5/thumbnails/21.jpg)
Vielen Dank für Eure Aufmerksamkeit!
Kontakt
Jan GehringSystems Architecture
inovex GmbHOffice PforzheimKarlsruhe Straße 7175179 Pforzheim
+49 (0)173 3181 [email protected]