keepalived & ha-proxy as an alternative to commercial loadbalancer - august 2014

21
Keepalived & HA-Proxy as an alternative to commercial loadbalancer

Upload: inovex-gmbh

Post on 12-Jul-2015

628 views

Category:

Software


4 download

TRANSCRIPT

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

Keepalived & HA-Proxy as an alternative to commercial loadbalancer

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

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

Das Problem

The World

Server

Datacenter

Router

CPU

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

IPTables Cluster (ipt-cluster)

The World

Server

Datacenter

Router

Server

Server

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

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

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

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

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

Ü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

Router

Floating IP

5.9.87.3

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

Router

Floating IP

5.9.87.3

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

Router

Keepalived

5.9.87.3

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

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

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

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

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

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

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

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

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

Vielen Dank für Eure Aufmerksamkeit!

Kontakt

Jan GehringSystems Architecture

inovex GmbHOffice PforzheimKarlsruhe Straße 7175179 Pforzheim

+49 (0)173 3181 [email protected]