Keepalived & HA-Proxy as an
alternative to commercial loadbalancer
Wer bist du?
● Dein Name
● Was machst du mit Linux
● Warum bist du heute hier (optional)
Das Problem
The World
Server
Datacenter
Router
CPU
IPTables Cluster (ipt-cluster)
The World
Server
Datacenter
Router
Server
Server
Mehr Möglichkeiten
The World
Datacenter
Router
Loadbalancer
Server
Server
Server
Single Point of Failure
The World
Server
Datacenter
Router
Server
Loadbalancer
Server
Doppelherz
The World
Server
Datacenter
Router
Server
Loadbalancer
Server
Loadbalancer
http://de.wikipedia.org/wiki/Datei:D...
Wenn einer nicht mehr mag...
The World
Server
Datacenter
Router
Server
Loadbalancer
Server
Loadbalancer
Übernimmt der Andere
The World
Server
Datacenter
Router
Server
Loadbalancer
Server
Loadbalancer
Router
Floating IP
5.9.87.3
Router
Floating IP
5.9.87.3
Router
Keepalived
5.9.87.3
Direct Routing
The World
Server
Datacenter
Router
Server
Keepalived
Server
Keepalived
5.9.78.3
5.9.78.35.9.78.35.9.78.3
NAT
The World
Server
Datacenter
Router
Server
Keepalived
Server
Keepalived
5.9.78.3
10.1.1.510.1.1.410.1.1.3
10.1.1.2
HA-Proxy
The World
Server
Datacenter
Router
Server
Keepalived
Server
Keepalived
5.9.78.3
HA-ProxyHA-Proxy
10.1.1.510.1.1.4...
HA-Proxy / HTTP
Server
Datacenter
Router
ServerKeepalived
Server
5.9.78.3
HA-Proxy
10.1.1.510.1.1.410.1.1.3
GET / HTTP/1.0...
HA-Proxy / HTTP
Server
Datacenter
Router
ServerKeepalived
Server
5.9.78.3
HA-Proxy
10.1.1.510.1.1.410.1.1.3
GET / HTTP/1.0...
HA-Proxy / Transparent Proxy
Server
Datacenter
Router
ServerKeepalived
Server
5.9.78.3
HA-Proxy
10.1.1.510.1.1.410.1.1.3
1...
Was haben wir soweit?
The World
Server
Datacenter
Router
Server
Keepalived
Server
Keepalived
5.9.78.3
HA-ProxyHA-Proxy
10....
Fragen?
The World
Server
DatacenterRouter
Server
Keepalived
Server
Keepalived
5.9.78.3
HA-ProxyHA-Proxy
10.1.1.510.1.1.410...
Vielen Dank für Eure Aufmerksamkeit!
Kontakt
Jan Gehring
Systems Architecture
inovex GmbH
Office Pforzheim
Karlsruhe Straß...
Upcoming SlideShare
Loading in …5
×

Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014

1,464 views

Published on

The speaker Jan Gehring is the initiator of the Rex Project, which he has developed in his free time since 2010. Jan works for inovex GmbH as a senior linux system architect and designs, optimises and deploys highly scalable, automated linux environments for customers. For 13 years he has been professionally with Linux and open source and could through numerous projects gained extensive practical experience. His duties include the design, construction and operation of systems. His focus is here in the Data Center Automation, highly available and highly scalable web architectures, and Java-based application servers.

Published in: Software
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,464
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
23
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Keepalived & HA-Proxy as an alternative to commercial loadbalancer - August 2014

  1. 1. Keepalived & HA-Proxy as an alternative to commercial loadbalancer
  2. 2. Wer bist du? ● Dein Name ● Was machst du mit Linux ● Warum bist du heute hier (optional)
  3. 3. Das Problem The World Server Datacenter Router CPU
  4. 4. IPTables Cluster (ipt-cluster) The World Server Datacenter Router Server Server
  5. 5. Mehr Möglichkeiten The World Datacenter Router Loadbalancer Server Server Server
  6. 6. Single Point of Failure The World Server Datacenter Router Server Loadbalancer Server
  7. 7. Doppelherz The World Server Datacenter Router Server Loadbalancer Server Loadbalancer http://de.wikipedia.org/wiki/Datei:Doppelherz_logo.svg
  8. 8. Wenn einer nicht mehr mag... The World Server Datacenter Router Server Loadbalancer Server Loadbalancer
  9. 9. Übernimmt der Andere The World Server Datacenter Router Server Loadbalancer Server Loadbalancer
  10. 10. Router Floating IP 5.9.87.3
  11. 11. Router Floating IP 5.9.87.3
  12. 12. Router Keepalived 5.9.87.3
  13. 13. Direct Routing The World Server Datacenter Router Server Keepalived Server Keepalived 5.9.78.3 5.9.78.35.9.78.35.9.78.3
  14. 14. NAT The World Server Datacenter Router Server Keepalived Server Keepalived 5.9.78.3 10.1.1.510.1.1.410.1.1.3 10.1.1.2
  15. 15. HA-Proxy The World Server Datacenter Router Server Keepalived Server Keepalived 5.9.78.3 HA-ProxyHA-Proxy 10.1.1.510.1.1.410.1.1.3 10.1.1.2
  16. 16. HA-Proxy / HTTP Server Datacenter Router ServerKeepalived Server 5.9.78.3 HA-Proxy 10.1.1.510.1.1.410.1.1.3 GET / HTTP/1.0 Host: www.foo.org GET / HTTP/1.0 Host: www.foo.org X-Forwarded-For: 19.4.1.124 10.1.1.2
  17. 17. HA-Proxy / HTTP Server Datacenter Router ServerKeepalived Server 5.9.78.3 HA-Proxy 10.1.1.510.1.1.410.1.1.3 GET / HTTP/1.0 Host: www.foo.org GET / HTTP/1.0 Host: www.foo.org X-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
  18. 18. HA-Proxy / Transparent Proxy Server Datacenter Router ServerKeepalived Server 5.9.78.3 HA-Proxy 10.1.1.510.1.1.410.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 3a74 0000010 722f 6f6f 3a74 622f 6e69 622f 7361 0a68 0000020 6164 6d65 6e6f 783a 313a 313a 643a 6561 0000030 6f6d 3a6e 752f 7273 732f 6962 3a6e 752f 0000040 7273 732f 6962 2f6e 6f6e 6f6c 6967 0a6e
  19. 19. Was haben wir soweit? The World Server Datacenter Router Server Keepalived Server Keepalived 5.9.78.3 HA-ProxyHA-Proxy 10.1.1.510.1.1.410.1.1.3 10.1.1.2
  20. 20. Fragen? The World Server DatacenterRouter Server Keepalived Server Keepalived 5.9.78.3 HA-ProxyHA-Proxy 10.1.1.510.1.1.410.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
  21. 21. Vielen Dank für Eure Aufmerksamkeit! Kontakt Jan Gehring Systems Architecture inovex GmbH Office Pforzheim Karlsruhe Straße 71 75179 Pforzheim +49 (0)173 3181 133 jan.gehring@inovex.de

×