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 Slide

  2. • OCI 頃


    Copyright © 2022, Oracle and/or its affiliates
    2

    View Slide

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

    View Slide

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

    Copyright © 2022, Oracle and/or its affiliates
    4

    View 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 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 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 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 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 Slide




  10. • SLO


    (Mbps)
    • FLB

    • ( )
    ( )

    ( )
    • NLB

    Copyright © 2022, Oracle and/or its affiliates
    10

    View 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 Slide

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



    • 2020 12

    ( ) →

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

    View Slide

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

    View 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 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 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 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 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 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 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 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 Slide

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

    View 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 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 Slide


  25. • VCN
    OK


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

    • Sorry



    View Slide

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







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

    View 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 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 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 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 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 Slide

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

    View Slide

  33. View Slide