Upgrade to Pro — share decks privately, control downloads, hide ads and more …

OCI技術資料 : ロード・バランサー 概要 / Load Balancer 100

OCI技術資料 : ロード・バランサー 概要 / Load Balancer 100

Oracle Cloud Infrastructure (OCI) の技術説明資料、ロード・バランサーの概要編 (Level 100) です。

VCN内に構成することで、様々なサービスの冗長性やスケーリングをサポートする OCI ロード・バランサー・サービスについて、その機能概要、構成コンポーネントの内容、OCIコンソールを利用した構成方法などについて解説しています。

More Decks by Oracle Cloud Infrastructure ソリューション・エンジニア

Other Decks in Technology

Transcript

  1. ロード・バランサ 概要
    Load Balancer Level 100
    Oracle Cloud Infrastructure
    2022 9

    View full-size slide

  2. • OCI 頃


    Copyright © 2022, Oracle and/or its affiliates
    2

    View full-size slide

  3. Copyright © 2022, Oracle and/or its affiliates
    3
    ロード・バランサの基本
    Load Balancer Basics

    View full-size slide

  4. 1 : ( )
    1
    2 : ( )
    New
    Server
    Server01 Server02 Server01 Server02 Server03

    Copyright © 2022, Oracle and/or its affiliates
    4

    View full-size slide

  5. • LB
    • 1 IP ( or IP)
    • (FLB)

    • 4 7
    • Cookie URI HTTP HTTP
    7
    • SSL SSL
    • OKE DNS

    OCI
    Copyright © 2022, Oracle and/or its affiliates
    5

    View full-size slide

  6. IP
    • or IP



    • /
    • IP FQDN

    OK
    OCI
    ORACLE CLOUD INFRASTRUCTURE ( )
    1
    LB
    2
    Web
    アクティブ アクティブ
    Webサーバー Webサーバー Webサーバー Webサーバー
    IP
    Copyright © 2022, Oracle and/or its affiliates
    6
    ※ 2022 8 Active-Standby Active
    Updated

    View full-size slide

  7. (FLB)
    • OCI


    • TCP
    TCP
    • :
    • (Always Free )
    (NLB)
    • 2021 3

    • TCP UDP IP
    • :

    2 - FLB NLB
    Copyright © 2022, Oracle and/or its affiliates
    7
    (FLB)
    (NLB)

    View full-size slide

  8. FLB NLB
    Copyright © 2022, Oracle and/or its affiliates
    8
    (FLB) (NLB)
    TCP / HTTP / HTTPS TCP / UDP / ICMP
    3/4
    7
    • Cookie

    • URI
    • HTTP
    • HTTP
    ( GW DRG
    )
    16 50
    IP (X-Forwarded-For ) ( )
    SSL
    SSL (TCP ) (SSL )
    Cookie (HTTP/HTTPS )
    IP (TCP )
    IP
    Web Application Firewall ( )
    HTTP

    View full-size slide

  9. NLB FLB !

    Copyright © 2022, Oracle and/or its affiliates
    9
    HTTP or HTTPS
    TCP
    IP
    ?
    UDP / ICMP
    Y
    Y
    N*
    N
    7
    ?
    N
    SSL ?
    Y
    * http (X-Forwarded-For) OK
    • Cookie

    • URI
    • HTTP
    • HTTP
    • Web Application Firewall
    • HTTP ( )
    N
    ?
    Y

    View full-size slide




  10. • SLO


    (Mbps)
    • FLB

    • ( )
    ( )

    ( )
    • NLB

    Copyright © 2022, Oracle and/or its affiliates
    10

    View full-size slide

  11. • 10Mbps ~ 8,000 Mbps


    ( ) *
    • /

    • LB (lb-flexible-count)
    • (lb-flexible-bandwidth-sum)
    FLB (2020 12 ~)
    Copyright © 2022, Oracle and/or its affiliates
    11
    *

    View full-size slide

  12. • 4
    • 10Mbps(Always Free)
    • 100Mbps / 400Mbps / 8000Mbps ( )



    • 2020 12

    ( ) →

    FLB ( )
    Copyright © 2022, Oracle and/or its affiliates
    12

    View full-size slide

  13. ロード・バランサの作成⼿順
    Copyright © 2022, Oracle and/or its affiliates
    13

    View full-size slide

  14. 1. VCN Web
    Availability Domain 1 Availability Domain 2
    SUBNET A,
    10.0.1.0/24
    Default SL (+ port 80)
    Default Route Table
    Dest CIDR Route Target
    0.0.0.0/0 IGW OCID
    VCN, 10.0.0.0/16
    Internet
    Gateway
    Copyright © 2022, Oracle and/or its affiliates
    14

    View full-size slide

  15. 2.
    Availability Domain 1 Availability Domain 2
    SUBNET A,
    10.0.1.0/24
    LB Route Table
    LB SL (empty)
    VCN, 10.0.0.0/16
    Internet
    Gateway
    Dest CIDR Route Target
    0.0.0.0/0 IGW OCID
    Copyright © 2022, Oracle and/or its affiliates
    15

    View full-size slide

  16. 3.
    Availability Domain 1 Availability Domain 2
    SUBNET A,
    10.0.1.0/24
    SUBNET B,
    10.0.2.0/24
    VCN, 10.0.0.0/16
    Internet
    Gateway
    Dest CIDR Route Target
    0.0.0.0/0 IGW OCID
    Copyright © 2022, Oracle and/or its affiliates
    16

    View full-size slide

  17. 4-1.
    Availability Domain 1 Availability Domain 2
    SUBNET A,
    10.0.1.0/24
    SUBNET B,
    10.0.2.0/24
    LB
    (Active
    )
    VCN, 10.0.0.0/16
    Internet
    Gateway
    Dest CIDR Route Target
    0.0.0.0/0 IGW OCID
    Copyright © 2022, Oracle and/or its affiliates
    17

    View full-size slide

  18. 4-2.
    Availability Domain 1 Availability Domain 2
    SUBNET A,
    10.0.1.0/24
    SUBNET B,
    10.0.2.0/24
    LB
    (Active
    )
    VCN, 10.0.0.0/16
    Internet
    Gateway

    – Name
    – Policy
    – SSL
    – Health Check

    – Instance
    – Port
    – Weight
    LB
    Copyright © 2022, Oracle and/or its affiliates
    18

    View full-size slide

  19. 4-3. LB
    Availability Domain 1 Availability Domain 2
    SUBNET A,
    10.0.1.0/24
    SUBNET B,
    10.0.2.0/24
    LB
    (Active
    )
    VCN, 10.0.0.0/16
    Internet
    Gateway
    Type CIDR Protocol Source
    Port
    Dest
    Port
    Egress 10.0.1.0/24 TCP All 80
    Type CIDR Protocol Source
    Port
    Dest
    Port
    Ingress 10.0.2.0/24 TCP All 80
    Egress 0.0.0.0/0 All All
    Copyright © 2022, Oracle and/or its affiliates
    19

    View full-size slide

  20. 4-4.
    Availability Domain 1 Availability Domain 2
    SUBNET A,
    10.0.1.0/24
    SUBNET B,
    10.0.2.0/24
    LB
    (Active
    )
    VCN, 10.0.0.0/16
    Internet
    Gateway
    Listener
    Name
    Protocol, Port, SSL
    Backend Set
    Copyright © 2022, Oracle and/or its affiliates
    20

    View full-size slide

  21. 5.
    Availability Domain 1 Availability Domain 2
    SUBNET A,
    10.0.1.0/24
    SUBNET B,
    10.0.2.0/24
    LB
    (Active
    )
    VCN, 10.0.0.0/16
    Internet
    Gateway
    Listener
    Type CIDR Protocol Source
    Port
    Dest
    Port
    Ingress 0.0.0.0/0 TCP All 80
    Egress 0.0.0.0/0 TCP All
    Egress 10.0.1.0/24 TCP All 80
    Copyright © 2022, Oracle and/or its affiliates
    21

    View full-size slide

  22. Copyright © 2022, Oracle and/or its affiliates
    22
    ロード・バランサの構成要素
    Load Balancer Components

    View full-size slide

  23. (FLB)
    (Weighted
    Round Robin)


    (Least Connections)

    IP (IP Hash)
    • IP
    • IP
    :
    1 2 3
    4
    1 2 3
    4
    2 1 + 1 2
    Proxy
    1.1.1.1 2.2.2.2 3.3.3.3
    Copyright © 2022, Oracle and/or its affiliates
    23

    View full-size slide

  24. (NLB)
    2
    • IP IP

    3
    • IP IP
    5
    • IP IP

    :
    1.1.1.1
    tcp
    2.2.2.2
    tcp
    2.2.2.2
    udp
    5.5.5.5
    1.1.1.1
    tcp/20001
    2.2.2.2
    tcp/20002
    2.2.2.2
    udp/25001
    5.5.5.5
    tcp/443
    udp/443
    1.1.1.1 2.2.2.2 3.3.3.3
    5.5.5.5
    Copyright © 2022, Oracle and/or its affiliates
    24
    ← IP
    ← IP
    ← IP

    ← IP
    ← IP

    ← IP

    View full-size slide


  25. • VCN
    OK


    :
    Copyright © 2022, Oracle and/or its affiliates
    25
    Load
    Balancer
    Web01 Web02 Web03

    • Sorry



    View full-size slide

  26. :
    Copyright © 2022, Oracle and/or its affiliates
    26







    • TCP, UDP(NLB ) :
    • HTTP(S) : URI HTTP

    View full-size slide

  27. :
    Copyright © 2022, Oracle and/or its affiliates
    27
    • 1
    • 1 : HTTP HTTPS 2
    • 2 : tcp/8000 udp/8000 2
    • HTTP HTTPS TCP UDP ICMP
    • HTTP/HTTPS 7
    TCP/UDP/ICMP 3/4
    • HTTP/HTTPS
    7
    • 1
    • : DNS
    • 1 SSL
    FLB NLB
    1
    HTTPS/443
    2
    TCP/22
    (IP : xxx.xxx.xxx.xxx)
    1 2

    View full-size slide

  28. • OCI 1 VCN
    • OCI
    • – TCP, HTTP/1.0, HTTP/1.1, HTTP/2, WebSocket
    • SSL SSL SSL


    • ( IP )

    • TCP ( 4) HTTP ( 7)
    Copyright © 2022, Oracle and/or its affiliates
    28

    View full-size slide


  29. • https://docs.oracle.com/ja-jp/iaas/Content/Balance/Concepts/balanceoverview.htm

    • https://docs.oracle.com/ja-jp/iaas/Content/NetworkLoadBalancer/overview.htm
    – Web
    • https://oracle-japan.github.io/ocitutorials/intermediates/using-load-balancer/
    Copyright © 2022, Oracle and/or its affiliates
    29

    View full-size slide

  30. Oracle Cloud Infrastructure
    • https://docs.oracle.com/ja-jp/iaas/Content/home.htm - ( )
    • https://docs.cloud.oracle.com/iaas/api/ - API
    • https://docs.oracle.com/ja-jp/iaas/Content/General/Reference/aqswhitepapers.htm -
    • https://docs.cloud.oracle.com/iaas/releasenotes/ -
    • https://docs.oracle.com/ja-jp/iaas/Content/knownissues.htm - (Known Issues)
    • https://docs.oracle.com/ja-jp/iaas/Content/General/Reference/graphicsfordiagrams.htm - OCI
    (PPT SVG Visio )
    Oracle Cloud Infrastructure
    Copyright © 2022, Oracle and/or its affiliates
    30

    View full-size slide

  31. Oracle Cloud Infrastructure
    • https://oracle-japan.github.io/ocidocs/
    - Oracle Cloud Infrastructure
    • https://oracle-japan.github.io/ocitutorials/
    Oracle
    • https://www.oracle.com/search/events/
    ( Filter Locations -> Asia Pacific -> Japan )
    Oracle Cloud Infrastructure – General Forum ( )
    • https://cloudcustomerconnect.oracle.com/resources/9c8fa8f96f/summary
    Oracle Cloud Infrastructure
    Copyright © 2022, Oracle and/or its affiliates
    31

    View full-size slide

  32. Thank You
    Copyright © 2022, Oracle and/or its affiliates
    32

    View full-size slide