Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

付録A Red Hat クラスタで LVS を使用

Red Hat クラスタのある LVS router を使用して、ロードバランシング、データ統合性、アプリケーション 可用性を提供するハイアベイラビリティ e-commerce サイトを導入することができます。
The configuration in 図A.1「LVS with a Red Hat Cluster」 represents an e-commerce site used for online merchandise ordering through a URL. Client requests to the URL pass through the firewall to the active LVS load-balancing router, which then forwards the requests to one of the Web servers. The Red Hat Cluster nodes serve dynamic data to the Web servers, which forward the data to the requesting client.
LVS with a Red Hat Cluster

図A.1 LVS with a Red Hat Cluster

Serving dynamic Web content with LVS requires a three-tier configuration (as shown in 図A.1「LVS with a Red Hat Cluster」). This combination of LVS and Red Hat Cluster allows for the configuration of a high-integrity, no-single-point-of-failure e-commerce site. The Red Hat Cluster can run a high-availability instance of a database or a set of databases that are network-accessible to the Web servers.
three-tier 設定は動的コンテンツを提供する為の必要事項となります。Web サーバーが 静的コンテンツ(あまり変化のない少量のデータからなるもの)のみをサービスする場合は、 two-tier LVS 設定が適切なものとなりますが、Web サーバーが動的コンテンツをサービスする 場合は、two-tier 設定は不適切です。動的コンテンツは製品在庫表、購入注文、あるいは顧客データベース 等を含むことがあり、これは顧客が最新で正確な情報にアクセスする為に確実に全ての Web サーバー上で 均一でなければなりません。
各 tier (層)では、以下の機能を提供します:
  • 一番目の tier — Web 要求を分配する為にロードバランシングを実行する LVS router
  • 二番目の tier — 要求に応える Web サーバーのセット
  • 三番目の tier — データを Web サーバーにサービスする Red Hat クラスタ
In an LVS configuration like the one in 図A.1「LVS with a Red Hat Cluster」, client systems issue requests on the World Wide Web. For security reasons, these requests enter a Web site through a firewall, which can be a Linux system serving in that capacity or a dedicated firewall device. For redundancy, you can configure firewall devices in a failover configuration. Behind the firewall are LVS load-balancing routers, which can be configured in an active-standby mode. The active load-balancing router forwards the requests to the set of Web servers.
Each Web server can independently process an HTTP request from a client and send the response back to the client. LVS enables you to expand a Web site's capacity by adding Web servers behind the LVS routers; the LVS routers perform load balancing across a wider set of Web servers. In addition, if a Web server fails, it can be removed; LVS continues to perform load balancing across a smaller set of Web servers.