Red Hat Training

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

Appendice A. Utilizzo di LVS con il Red Hat Cluster

È possibile utilizzare i router LVS con Red Hat Cluster per implementare un sito high-availability e-commerce in grado di fornire un bilanciamento del carico, una integrità dei dati ed una disponibilità delle applicazioni.
The configuration in Figura 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

Figura A.1. LVS with a Red Hat Cluster

Serving dynamic Web content with LVS requires a three-tier configuration (as shown in Figura 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.
Per fornire un contenuto dinamico è necessario avere una configurazione a tre livelli. Anche se la configurazione a due livelli è idonea se i web server servono solo contenuti web statici (i quali consistono in una quantità piccola di dati non frequentemente modificati), essa non è idonea se i web server servono un contenuto dinamico. Tale contenuto include un inventario dei prodotti, ordinazioni, o database dei clienti, i quali devono essere aggiornati e conformi su tutti i web server, in modo da assicurare ai clienti stessi un accesso a informazioni accurate e costantemente aggiornate.
Ogni livello fornisce le seguenti funzioni:
  • Primo livello — i router LVS eseguono un bilanciamento del carico per distribuire le richieste web.
  • Secondo livello — Un set di web server per servire le richieste.
  • Terzo livello — Un Red Hat Cluster per servire i dati ai Web server.
In an LVS configuration like the one in Figura 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.