High Availability High Performance How to sleep without the - - PowerPoint PPT Presentation

high availability high performance
SMART_READER_LITE
LIVE PREVIEW

High Availability High Performance How to sleep without the - - PowerPoint PPT Presentation

High Availability High Performance How to sleep without the server-crash-fear Michael Schmid michael@amazeelabs.com @schnitzel High Availability no Single Point of Failure Redundancy High Performance Response times


slide-1
SLIDE 1

High Availability High Performance

How to sleep without the server-crash-fear

Michael Schmid michael@amazeelabs.com @schnitzel

slide-2
SLIDE 2

High Availability

  • no „Single Point of Failure“
  • Redundancy
slide-3
SLIDE 3

High Performance

  • Response times
  • Caching
  • HTML
  • Data (serialized)
  • Scalable
  • adding easy and fast more

servers

slide-4
SLIDE 4

Scalable & Redundancy Server System

slide-5
SLIDE 5

starting position

slide-6
SLIDE 6

Goal

slide-7
SLIDE 7

starting position

slide-8
SLIDE 8

Two Webserver

slide-9
SLIDE 9

Apache

  • APC
  • precompiled
  • keeps files in memory
slide-10
SLIDE 10

nginx

  • lightweight Webserver
  • Reverse Proxy
  • Loadbalander
  • can be faster
  • more knowledge needed
slide-11
SLIDE 11

Two Webserver

MySQL?

slide-12
SLIDE 12

starting position

slide-13
SLIDE 13

dedicated MySQL

slide-14
SLIDE 14

second Webserver

slide-15
SLIDE 15

How to Access?

?

slide-16
SLIDE 16

Loadbalancer

slide-17
SLIDE 17

Loadbalancer

  • passes through requests
  • „Man in the middle“
slide-18
SLIDE 18

Loadbalancer

slide-19
SLIDE 19

second Loadbalancer

slide-20
SLIDE 20

second Loadbalancer

files?

slide-21
SLIDE 21

NFS

NFS

slide-22
SLIDE 22

NFS

fallback?

NFS

slide-23
SLIDE 23

GlusterFS

slide-24
SLIDE 24

GlusterFS

  • Distributed Filesystem
  • multiple Server/Clients
  • auto-heal
  • split-brain
  • Not soo fast
slide-25
SLIDE 25

GlusterFS

slide-26
SLIDE 26

second GlusterFS

slide-27
SLIDE 27

MySQL

fallback?

slide-28
SLIDE 28

MySQL Master/Slave

  • Master
  • WRITE
  • Slave
  • READ
  • Hot Spare
  • Slave become Master
slide-29
SLIDE 29

MySQL

slide-30
SLIDE 30

MySQL

slide-31
SLIDE 31

Memcache

memcache?

slide-32
SLIDE 32

Memcache

  • Replaces “_chache“ tables
  • Key / Value Store
  • Fast
  • Memory only
  • own Server
slide-33
SLIDE 33

Memcache

slide-34
SLIDE 34

Memcache

slide-35
SLIDE 35

Varnish

Varnish Varnish

slide-36
SLIDE 36

Varnish

  • Reverse Proxy
  • Caches full HTML Pages
  • Hates Cookies/Sessions
  • No SSL
  • Drupal 6
  • Pressflow
  • Drupal 7 & 8
  • in Core
slide-37
SLIDE 37
slide-38
SLIDE 38

ESI (Edge Side Includes)

slide-39
SLIDE 39
slide-40
SLIDE 40
slide-41
SLIDE 41
slide-42
SLIDE 42

ttl=1h pass

slide-43
SLIDE 43

ESI

<esi:include src="http://www.osec.ch/userblock" />

  • Cache whole page, load only

small parts

  • Varnish / Squid / Nginx (SSI)
  • Drupal Module
  • blocks, panel panes, context

module

slide-44
SLIDE 44

Questions?

Michael Schmid michael@amazeelabs.com @schnitzel