load balancing webserver

Upload: rachmad-tsalaatsa

Post on 05-Apr-2018

245 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Load Balancing Webserver

    1/16

    LOAD BALANCING

    WEB SERVER

    Rachmad Tsalaatsa

    System Administrator Univ Brawijaya

    KOLAM Komunitas Linux Arek Malang

    [email protected]

  • 7/31/2019 Load Balancing Webserver

    2/16

    [email protected]

    LOAD BALANCING

    DNS- Roundrobin- GSLB (Global Server Load Balancing)

    Layer 3 atau 4- Piranha- UltraMonkey

    Layer 7- Generic : HAProxy, UltraMonkey-L7- HTTP(S): Nginx, PD, Pen, Apache- Mysql : SQLRelay, MysqlProxy

  • 7/31/2019 Load Balancing Webserver

    3/16

    [email protected]

    LOAD BALANCING

    Proses dan teknologi yang mendistribusikan beban kedalam beberapa server

    Mengurangi beban kerja setiap server sehingga tidakada server yang overload

  • 7/31/2019 Load Balancing Webserver

    4/16

    [email protected]

    LOAD BALANCING

  • 7/31/2019 Load Balancing Webserver

    5/16

    [email protected]

    LOAD BALANCING

    Load balancer diletakkan di antara client dan server

    Load balancer menampung trafik yang datang danmembaginya ke dalam request-request individualkemudian menentukan server mana yang menerimarequest tersebut

  • 7/31/2019 Load Balancing Webserver

    6/16

    [email protected]

    LOAD BALANCING

    Keuntungan

    1.Scalability

    2.HighAvailability

    3.Manageability

    4.Security

  • 7/31/2019 Load Balancing Webserver

    7/16

    [email protected]

    LINUX VIRTUAL SERVER (LVS)

    Teknologi pada OS Linux yang dapat membangunserver yang memiliki kinerja dan ketersediaan tinggimenggunakan sekumpulan server.

    IP VirtualLDirectorReal Server

  • 7/31/2019 Load Balancing Webserver

    8/16

    [email protected]

    LINUX VIRTUAL SERVER (LVS)

    Teknik untuk mendistribusikan paket-paket IP kemasing-masing node atau server

    1.NAT

    2.Direct Routing3.IP Tunneling

  • 7/31/2019 Load Balancing Webserver

    9/16

    [email protected]

    LINUX VIRTUAL SERVER (LVS)

    NAT

  • 7/31/2019 Load Balancing Webserver

    10/16

    [email protected]

    LINUX VIRTUAL SERVER (LVS)

    DIRECT

  • 7/31/2019 Load Balancing Webserver

    11/16

    [email protected]

    LINUX VIRTUAL SERVER (LVS)

    Algoritma

    1.Round Robin

    2.Weighted Round-Robin

    3.Least-connections

    4.Weight Least-connections

    5.Locality Based Least Connection

    6.Destination Hashing

    7.Source Hashing

  • 7/31/2019 Load Balancing Webserver

    12/16

    [email protected]

    LINUX VIRTUAL SERVER (LVS)

    Aplikasi

    1.Piranha

    2.Httpd

    3.Ipvsadm

    4.Pulse

  • 7/31/2019 Load Balancing Webserver

    13/16

    [email protected]

    LINUX VIRTUAL SERVER (LVS)

    LABS

    1.VirtualBox

    2.OS Linux CentOS

    3.Virtual OS :1 LDirector2 RealServer

    4.IP Virtual

    IP LDirectorIP Real Server 1IP Real Server 2

  • 7/31/2019 Load Balancing Webserver

    14/16

    [email protected]

    LINUX VIRTUAL SERVER (LVS)

    LDIRECTOR

    1. #yum install piranha

    2. #piranha-passwd

    3. #/etc/init.d/httpd start

    4. #/etc/init.d/piranha-gui start

    5. net.ipv4.ip_forward = 1

    6. #/etc/init.d/pulse start

  • 7/31/2019 Load Balancing Webserver

    15/16

    [email protected]

    LINUX VIRTUAL SERVER (LVS)

    RealServer

    1. #yum install httpd

    2. #ip a a ip_virtual dev eth0 label eth0:0

    Akses

    1. http://ip_address:3636

    2. username: piranhapassword: piranha-passwd

    http://ip_address:3636/http://ip_address:3636/
  • 7/31/2019 Load Balancing Webserver

    16/16

    [email protected]

    TERIMAKASIH

    Rachmad TsalaatsaSystem Administrator Univ Brawijaya

    KOLAM Komunitas Linux Arek Malang