LVS
LVS

• karnel 2.6.18 (rebuild)
 • Virtual Machine
• IPVS 1.2.1
• ipvsadm 1.24
• keepalived 1.1.9
LVS
FW




Web

      LVS



App

      LVS



DB
LVS (FW-Web)
•   Direct Routing(DR)
•   MASTER/BACKUP            LVS

    •
    •
•   Real server   Apache ×

    •       ...
LVS(Web-APP)
•   Direct Routing(DR)
•   MASTER/BACKAP            LVS

    •   Rails

    •   mod_proxy_balancer          V...
keepalived
•
    •
    • configtest
      • BACKUP    reload
       →MASTER        diff
keepalived
•
    •   Real server
        Include

        •
        •                 →reload Real server
                ...
keepalived
•
    •   ipvsadm

        •   reload

    •   inhibit_on_failure

        •                    (weight=0)
    ...
keepalived
•
    •   Weighted round-robin(wrr)

        •   Real server



        •   Weighted least connection(wlc)
    ...
keepalived

•
    •   MISC_CHECK + wget

    •             Real server

    •   HTTP_GET

        •   nb_get_retry
keepalived
•
    • keepalived 1.1.8      MISC_CHECK
                     weight

    • keepalived 1.1.9   rpmspec
        ...
•            LVS ActConn InActConn
    60,000    70,000

    •
    • Connection Hash Table Size
•               munin

    • Packet per sec
    • Byte per sec
    • Connection
    • Weight
•        Real server

‣        arp announce/arp ignore

‣
    iptables
•   keepalived reload

‣                       reload



    •
    •   vrrp

‣              weight    reload
•   Real server

‣           Real server loopback interface



‣           iptables
         iptablse        puppet
•   Real server

‣            Virtual service

    •   DR        Virtual service

‣            Virtual service Real server...
•   mod_proxy_balancer



‣           retry

    •

‣           retry 0

    •   BalancerMember ... retry=0
Upcoming SlideShare
Loading in...5
×

クックパッドのLVSについて

9,721

Published on

0 Comments
13 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
9,721
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
13
Embeds 0
No embeds

No notes for slide


















  • Transcript of "クックパッドのLVSについて"

    1. 1. LVS
    2. 2. LVS • karnel 2.6.18 (rebuild) • Virtual Machine • IPVS 1.2.1 • ipvsadm 1.24 • keepalived 1.1.9
    3. 3. LVS FW Web LVS App LVS DB
    4. 4. LVS (FW-Web) • Direct Routing(DR) • MASTER/BACKUP LVS • • • Real server Apache × • wget
    5. 5. LVS(Web-APP) • Direct Routing(DR) • MASTER/BACKAP LVS • Rails • mod_proxy_balancer Virtual IP • Real server Passenger × • Rails wget • URL
    6. 6. keepalived • • • configtest • BACKUP reload →MASTER diff
    7. 7. keepalived • • Real server Include • • →reload Real server /
    8. 8. keepalived • • ipvsadm • reload • inhibit_on_failure • (weight=0) reload
    9. 9. keepalived • • Weighted round-robin(wrr) • Real server • Weighted least connection(wlc) Real server
    10. 10. keepalived • • MISC_CHECK + wget • Real server • HTTP_GET • nb_get_retry
    11. 11. keepalived • • keepalived 1.1.8 MISC_CHECK weight • keepalived 1.1.9 rpmspec 1.1.8
    12. 12. • LVS ActConn InActConn 60,000 70,000 • • Connection Hash Table Size
    13. 13. • munin • Packet per sec • Byte per sec • Connection • Weight
    14. 14. • Real server ‣ arp announce/arp ignore ‣ iptables
    15. 15. • keepalived reload ‣ reload • • vrrp ‣ weight reload
    16. 16. • Real server ‣ Real server loopback interface ‣ iptables iptablse puppet
    17. 17. • Real server ‣ Virtual service • DR Virtual service ‣ Virtual service Real server • Howto iptables http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS- HOWTO.rewrite_ports.html#re-mapping_ports_with_iptables
    18. 18. • mod_proxy_balancer ‣ retry • ‣ retry 0 • BalancerMember ... retry=0

    ×