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. 1 : ( ) 1 2 : ( ) New

    Server Server01 Server02 Server01 Server02 Server03 ✖ Copyright © 2022, Oracle and/or its affiliates 4
  2. • 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
  3. 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
  4. (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)
  5. 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
  6. 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
  7. • • • • SLO • • (Mbps) • FLB

    • • ( ) ( ) • ( ) • NLB • Copyright © 2022, Oracle and/or its affiliates 10
  8. • 10Mbps ~ 8,000 Mbps • • ( ) *

    • / • • LB (lb-flexible-count) • (lb-flexible-bandwidth-sum) FLB (2020 12 ~) Copyright © 2022, Oracle and/or its affiliates 11 *
  9. • 4 • 10Mbps(Always Free) • 100Mbps / 400Mbps /

    8000Mbps ( ) • • • • 2020 12 • ( ) → • FLB ( ) Copyright © 2022, Oracle and/or its affiliates 12
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. (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
  19. (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
  20. • • VCN OK • • : Copyright © 2022,

    Oracle and/or its affiliates 25 Load Balancer Web01 Web02 Web03 • • Sorry • • •
  21. : Copyright © 2022, Oracle and/or its affiliates 26 •

    • • • • • • • TCP, UDP(NLB ) : • HTTP(S) : URI HTTP
  22. : 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
  23. • 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
  24. 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
  25. 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