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

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

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

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

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

Transcript

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

    8
  2. • OCI • • Copyright © 2021, Oracle and/or its

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

    Balancer Basics
  4. 1 : ( ) 1 2 : ( ) New

    Web Web01 Web02 Web01 Web02 Web03 ✖ Copyright © 2021, Oracle and/or its affiliates 4
  5. • LB • 1 IP ( or IP) VIP •

    (FLB) • • 4 7 • Cookie URI HTTP 7 • SSL SSL • OKE DNS • OCI Copyright © 2021, Oracle and/or its affiliates 5
  6. IP • or IP • • • • / •

    IP FQDN • OK OCI ORACLE CLOUD INFRASTRUCTURE ( ) 1 LB 2 Web アクティブ スタンバイ Webサーバー Webサーバー Webサーバー Webサーバー IP Copyright © 2021, Oracle and/or its affiliates 6
  7. (FLB) • OCI • • • TCP TCP • :

    • (Always Free ) (NLB) • 2021 3 • • TCP UDP IP • : • 2 - FLB NLB Copyright © 2021, Oracle and/or its affiliates 7 (FLB) (NLB)
  8. (FLB) (NLB) TCP / HTTPS / TCP 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 FLB NLB Copyright © 2021, Oracle and/or its affiliates 8
  9. NLB FLB ! – Copyright © 2021, 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 N ? Y
  10. • • • • SLO • • (Mbps) • FLB

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

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

    8000Mbps ( ) • • • • 2020 12 • ( ) → • FLB ( ) Copyright © 2021, Oracle and/or its affiliates 12
  13. ロード・バランサの作成⼿順 Copyright © 2021, Oracle and/or its affiliates 13

  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 © 2021, Oracle and/or its affiliates 14
  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 © 2021, Oracle and/or its affiliates 15
  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 © 2021, Oracle and/or its affiliates 16
  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 © 2021, Oracle and/or its affiliates 17
  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 © 2021, Oracle and/or its affiliates 18
  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 © 2021, Oracle and/or its affiliates 19
  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 © 2021, Oracle and/or its affiliates 20
  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 © 2021, Oracle and/or its affiliates 21
  22. Copyright © 2021, Oracle and/or its affiliates 22 ロード・バランサの構成要素 Load

    Balancer Components
  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 © 2021, Oracle and/or its affiliates 23
  24. (NLB) 2 • IP IP • - 3 • IP

    IP 5 • IP IP : 1.1.1.1 :20001 2.2.2.2 :20002 2.2.2.2 :25001 5.5.5.5 :443 1.1.1.1 tcp/20001 2.2.2.2 tcp/20002 2.2.2.2 ucp/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 © 2021, Oracle and/or its affiliates 24
  25. • • VCN OK • • : Copyright © 2021,

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

    • • • • • • • TCP, UDP(NLB ) : TCP/UDP • HTTP(S) : URI HTTP
  27. : Copyright © 2021, 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 SSL FLB NLB 1 HTTPS/443 2 TCP/22 (IP : xxx.xxx.xxx.xxx) 1 2
  28. • OCI 1 VCN • OCI • – TCP, HTTP/1.0,

    HTTP/1.1, WebSocket • SSL SSL SSL • • • ( IP ) • • TCP ( 4) HTTP ( 7) Copyright © 2021, Oracle and/or its affiliates 28
  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 © 2021, Oracle and/or its affiliates 29
  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 © 2021, Oracle and/or its affiliates 30
  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 © 2021, Oracle and/or its affiliates 31
  32. Thank You Copyright © 2021, Oracle and/or its affiliates 32

  33. None