附录 A. 使​​​​​​​用​​​​​​​带​​​​​​​ Red Hat 的​​​​​​​ LVS 群​​​​​​​集​​​​​​​


您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​带​​​​​​​ Red Hat LVS 路​​​​​​​由​​​​​​​器​​​​​​​的​​​​​​​群​​​​​​​集​​​​​​​来​​​​​​​部​​​​​​​署​​​​​​​高​​​​​​​度​​​​​​​可​​​​​​​用​​​​​​​的​​​​​​​商​​​​​​​业​​​​​​​网​​​​​​​站​​​​​​​,以​​​​​​​提​​​​​​​供​​​​​​​负​​​​​​​载​​​​​​​平​​​​​​​衡​​​​​​​、​​​​​​​数​​​​​​​据​​​​​​​完​​​​​​​整​​​​​​​性​​​​​​​和​​​​​​​源​​​​​​​程​​​​​​​序​​​​​​​的​​​​​​​可​​​​​​​用​​​​​​​性​​​​​​​。​​​​​​​
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.
进​​​​​​​行​​​​​​​三​​​​​​​层​​​​​​​配​​​​​​​置​​​​​​​可​​​​​​​提​​​​​​​供​​​​​​​动​​​​​​​态​​​​​​​内​​​​​​​容​​​​​​​。​​​​​​​如​​​​​​​果​​​​​​​网​​​​​​​页​​​​​​​服​​​​​​​务​​​​​​​器​​​​​​​只​​​​​​​提​​​​​​​供​​​​​​​静​​​​​​​态​​​​​​​网​​​​​​​页​​​​​​​内​​​​​​​容​​​​​​​(包​​​​​​​括​​​​​​​少​​​​​​​数​​​​​​​不​​​​​​​经​​​​​​​常​​​​​​​修​​​​​​​改​​​​​​​的​​​​​​​数​​​​​​​据​​​​​​​),那​​​​​​​么​​​​​​​两​​​​​​​层​​​​​​​ LVS 配​​​​​​​置​​​​​​​就​​​​​​​可​​​​​​​以​​​​​​​了​​​​​​​,但​​​​​​​如​​​​​​​果​​​​​​​需​​​​​​​要​​​​​​​提​​​​​​​供​​​​​​​动​​​​​​​态​​​​​​​网​​​​​​​页​​​​​​​内​​​​​​​容​​​​​​​,两​​​​​​​层​​​​​​​配​​​​​​​置​​​​​​​就​​​​​​​不​​​​​​​行​​​​​​​了​​​​​​​。​​​​​​​动​​​​​​​态​​​​​​​内​​​​​​​容​​​​​​​可​​​​​​​包​​​​​​​括​​​​​​​产​​​​​​​品​​​​​​​目​​​​​​​录​​​​​​​、​​​​​​​购​​​​​​​买​​​​​​​订​​​​​​​单​​​​​​​或​​​​​​​者​​​​​​​客​​​​​​​户​​​​​​​数​​​​​​​据​​​​​​​库​​​​​​​,这​​​​​​​些​​​​​​​内​​​​​​​容​​​​​​​必​​​​​​​须​​​​​​​在​​​​​​​所​​​​​​​有​​​​​​​网​​​​​​​页​​​​​​​服​​​​​​​务​​​​​​​器​​​​​​​中​​​​​​​都​​​​​​​是​​​​​​​一​​​​​​​致​​​​​​​的​​​​​​​,以​​​​​​​确​​​​​​​保​​​​​​​客​​​​​​​户​​​​​​​可​​​​​​​以​​​​​​​访​​​​​​​问​​​​​​​最​​​​​​​新​​​​​​​的​​​​​​​准​​​​​​​确​​​​​​​信​​​​​​​息​​​​​​​。​​​​​​​
每​​​​​​​层​​​​​​​可​​​​​​​提​​​​​​​供​​​​​​​以​​​​​​​下​​​​​​​功​​​​​​​能​​​​​​​:
  • 第​​​​​​​一​​​​​​​层​​​​​​​ — LVS 路​​​​​​​由​​​​​​​器​​​​​​​执​​​​​​​行​​​​​​​负​​​​​​​载​​​​​​​平​​​​​​​衡​​​​​​​来​​​​​​​分​​​​​​​配​​​​​​​网​​​​​​​页​​​​​​​请​​​​​​​求​​​​​​​。​​​​​​​
  • 第​​​​​​​二​​​​​​​层​​​​​​​ — 为​​​​​​​请​​​​​​​求​​​​​​​提​​​​​​​供​​​​​​​服​​​​​​​务​​​​​​​的​​​​​​​一​​​​​​​组​​​​​​​网​​​​​​​页​​​​​​​服​​​​​​​务​​​​​​​器​​​​​​​。​​​​​​​
  • 第​​​​​​​三​​​​​​​层​​​​​​​ — 为​​​​​​​网​​​​​​​页​​​​​​​服​​​​​​​务​​​​​​​器​​​​​​​提​​​​​​​供​​​​​​​数​​​​​​​据​​​​​​​的​​​​​​​ 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.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.