Red Hat APPLICATION SERVER - JONAS Guida di Installazione

Navigare online o scaricare Guida di Installazione per Server Red Hat APPLICATION SERVER - JONAS. Red Hat APPLICATION SERVER - JONAS Installation guide Manuale Utente

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa

Sommario

Pagina 1 - Linux 5.1

Linux Virtual Server Administration5.1Linux Virtual Server (LVS)for Red Hat EnterpriseLinux 5.1ISBN: N/APublication date:

Pagina 2

rh-lvs(EN)-5.1 (2007-10-30T17:36)By mentioning this manual's identifier, we know exactly which version of the guide you have.If you have a sugges

Pagina 3

Linux Virtual Server OverviewLinux Virtual Server (LVS) is a set of integrated software components for balancing the IP loadacross a set of real serve

Pagina 4

Figure 1.1. A Basic LVS ConfigurationService requests arriving at the LVS routers are addressed to a virtual IP address, or VIP. Thisis a publicly-rou

Pagina 5

The active router also dynamically monitors the overall health of the specific services on the realservers through simple send/expect scripts. To aid

Pagina 6

Each of the real servers then accesses a shared data source over the network.Figure 1.2. A Three-Tier LVS ConfigurationThis configuration is ideal for

Pagina 7 - Introduction

available database for transactions. Additionally, using an active-active configuration with RedHat Cluster Manager, administrators can configure one

Pagina 8 - 1. Document Conventions

Weighted Round-Robin SchedulingDistributes each request sequentially around the pool of real servers but gives more jobs toservers with greater capaci

Pagina 9 - 2. Feedback

Distributes requests to the pool of real servers by looking up the source IP in a static hashtable. This algorithm is designed for LVS routers with mu

Pagina 10

Figure 1.3. LVS Implemented with NAT RoutingIn the example, there are two NICs in the active LVS router. The NIC for the Internet has a realIP address

Pagina 11 - Linux Virtual Server Overview

which uses network address translation to replace the address of the real server in the packetswith the LVS routers public VIP address. This process i

Pagina 12

Building a Linux Virtual Server (LVS) system offers highly-available and scalable solution forproduction services using specialized routing and load-b

Pagina 13

Figure 1.4. LVS Implemented with Direct RoutingIn the typical direct routing LVS setup, the LVS router receives incoming server requeststhrough the vi

Pagina 14

While there are many advantages to using direct routing in LVS, there are limitations as well.The most common issue with LVS via direct routing is wit

Pagina 15 - 3. LVS Scheduling Overview

it is handled according to the scheduling rules in place.Persistence also allows the administrator to specify a subnet mask to apply to the client IPa

Pagina 16

Figure 1.5. LVS ComponentsThe pulse daemon runs on both the active and passive LVS routers. On the backup router,pulse sends a heartbeat to the public

Pagina 17 - 4. Routing Methods

6.1. LVS ComponentsSection 6.1.1, “pulse” shows a detailed list of each software component in an LVS router.6.1.1. pulseThis is the controlling proces

Pagina 18

Chapter 2, Initial LVS Configuration reviews important post-installation configuration steps youshould take before configuring Red Hat Enterprise Linu

Pagina 20

Initial LVS ConfigurationAfter installing Red Hat Enterprise Linux, you must take some basic steps to set up both theLVS routers and the real servers.

Pagina 21 - 5.1. Persistence

/sbin/chkconfig --level 35 daemon onIn the above command, replace daemon with the name of the service you are activating. To geta list of services on

Pagina 22 - 6. LVS — A Block Diagram

following command as root:/sbin/service piranha-gui startor/sbin/service piranha-gui restartIssuing this command starts a private session of the Apach

Pagina 23 - Figure 1.5. LVS Components

Linux Virtual Server Administration: Linux Virtual Server(LVS) for Red Hat Enterprise Linux 5.1Copyright © You need to override this in your local ent

Pagina 24 - 6.1. LVS Components

Now that the Piranha Configuration Tool is running, you may wish to consider limiting whohas access to the tool over the network. The next section rev

Pagina 25 - LVS Components

configuration pages in the /etc/sysconfig/ha/web/secure/ directory but notto the login and the help pages in /etc/sysconfig/ha/web/. To limit access t

Pagina 27 - Initial LVS Configuration

Setting Up LVSLVS consists of two basic groups: the LVS routers and the real servers. To prevent a singlepoint of failure, each groups should contain

Pagina 28

which link to the real servers (eth1) will be on the 10.11.12/24 network.So on the active or primary LVS router node, the public interface's netw

Pagina 29

1.2. Routing on the Real ServersThe most important thing to remember when configuring the real servers network interfaces in aNAT topology is to set t

Pagina 30

firewall marks, see Section 4, “Multi-port Services and LVS”.Once forwarding is enabled on the LVS routers and the real servers are set up and have th

Pagina 31

topologies. While the LVS router needs to be running Red Hat Enterprise Linux to processthe incoming requests and perform load-balancing for the real

Pagina 32

they contain the real IP of the server instead. The only node that should respond to ARPrequests for any of the VIPs is the current active LVS node.2.

Pagina 33 - Setting Up LVS

two separate Apache HTTP Server services bound to port 80, because both must bind toINADDR_ANY instead of the virtual IP addresses.To configure direct

Pagina 34 - Important

Linux Virtual Server Administration

Pagina 35

Configuration Tool.3.1. General LVS Networking TipsConfigure the real IP addresses for both the public and private networks on the LVS routersbefore a

Pagina 36 - 2. LVS via Direct Routing

occur within the length of time specified by the persistence parameter. For more on assigningpersistence to a virtual server, see Section 6.1, “The VI

Pagina 37

HTTP and HTTPS virtual servers. These commands have the net effect of assigning any trafficaddressed to the VIP on the appropriate ports a firewall ma

Pagina 38

effectively cluster FTP, you must configure the LVS routers to handle both activeand passive connections.The FTP client/server relationship can potent

Pagina 39

WarningIf you are limiting the port range for passive connections, you must also configurethe VSFTP server to use a matching port range. This can be a

Pagina 40

runlevels. For more on this, refer to Section 1, “Configuring Services on the LVS Routers”.6. Saving Network Packet Filter SettingsAfter configuring t

Pagina 42 - 5. Configuring FTP

Configuring the LVS Routers withPiranha Configuration ToolThe Piranha Configuration Tool provides a structured approach to creating the necessaryconfi

Pagina 43

Figure 4.1. The Welcome PanelClick on the Login button and enter piranha for the Username and the administrativepassword you created in the Password f

Pagina 44

Figure 4.2. The CONTROL/MONITORING PanelAuto updateThe status display on this page can be updated automatically at a user configurableinterval. To ena

Pagina 45

Introduction ... vii1. Document Conventions

Pagina 46

CHANGE PASSWORDClicking this button takes you to a help screen with information on how to change theadministrative password for the Piranha Configurat

Pagina 47 - Piranha Configuration Tool

Primary server private IPEnter the real IP address for an alternative network interface on the primary LVS node. Thisaddress is used solely as an alte

Pagina 48 - 3. CONTROL/MONITORING

TipYou should alias the NAT floating IP address to the Ethernet interface connectedto the private network. In this example, the private network is on

Pagina 49

Figure 4.4. The REDUNDANCY PanelRedundant server public IPEnter the public real IP address for the backup LVS router node.Redundant server private IPE

Pagina 50 - 4. GLOBAL SETTINGS

Assume dead after (seconds)If the primary LVS node does not respond after this number of seconds, then the backupLVS router node will initiate failove

Pagina 51

Figure 4.5. The VIRTUAL SERVERS PanelEach server displayed in the VIRTUAL SERVERS panel can be configured on subsequentscreens or subsections.To add a

Pagina 52 - 5. REDUNDANCY

any of the subsections related to this virtual server, complete this page and click on theACCEPT button.Figure 4.6. The VIRTUAL SERVERS SubsectionName

Pagina 53

Enter the virtual server's floating IP address in this text field.Virtual IP Network MaskSet the netmask for this virtual server with the drop-do

Pagina 54 - 6. VIRTUAL SERVERS

Load monitoring toolThe LVS router can monitor the load on the various real servers by using either rup orruptime. If you select rup from the drop-dow

Pagina 55

WarningRemember to click the ACCEPT button after making any changes in this panel.To make sure you do not lose changes when selecting a new panel.6.2.

Pagina 56

3. CONTROL/MONITORING ...384. GLOBAL SETTINGS ...

Pagina 57

Figure 4.8. The REAL SERVER Configuration PanelThis panel consists of three entry fields:NameA descriptive name for the real server.TipThis name is no

Pagina 58

WeightAn integer value indicating this host's capacity relative to that of other hosts in the pool. Thevalue can be arbitrary, but treat it as a

Pagina 59 - 6.2. REAL SERVER Subsection

Figure 4.9. The EDIT MONITORING SCRIPTS SubsectionSending ProgramFor more advanced service verification, you can use this field to specify the path to

Pagina 60

Only one send sequence is allowed in this field, and it can only contain printable, ASCIIcharacters as well as the following escape characters:• \n fo

Pagina 61

• /etc/sysconfig/iptables — If you are using firewall marks, you should synchronize one ofthese files based on which network packet filter you are usi

Pagina 62

ImportantIf you are not sure whether or not packet forwarding is enabled in the kernel, seeSection 5, “Turning on Packet Forwarding” for instructions

Pagina 63

requests to LVS at this point, you should start the backup LVS router before putting LVS intoservice. To do this, simply repeat the process described

Pagina 64 - 7.2. Synchronizing sysctl

Appendix A. Using LVS with Red HatClusterYou can use LVS routers with a Red Hat Cluster to deploy a high-availability e-commerce sitethat provides loa

Pagina 65 - 8. Starting LVS

Figure A.1. LVS with a Red Hat ClusterServing dynamic Web content with LVS requires a three-tier configuration (as shown inFigure A.1, “LVS with a Red

Pagina 66

configuration is suitable if the Web servers serve only static Web content (consisting of smallamounts of infrequently changing data), a two-tier conf

Pagina 67

IntroductionThis document provides information about installing, configuring, and managing Red Hat VirtualLinux Server (LVS) components. LVS provides

Pagina 69

IndexSymbols/etc/sysconfig/ha/lvs.cf file, 14Aarptables_jf, 27Cchkconfig, 17clusterusing LVS with Red Hat Cluster, 57componentsof LVS, 14Ddirect routi

Pagina 70

network address translation (see NAT)Ppacket forwarding, 21(see also LVS)Piranha Configuration Tool, 14CONTROL/MONITORING, 38EDIT MONITORING SCRIPTS S

Pagina 71

• Using Device-Mapper Multipath — Provides information about using the Device-MapperMultipath feature of Red Hat Enterprise Linux 5.• Using GNBD with

Pagina 72

Additionally, the manual uses different strategies to draw your attention to pieces of information.In order of how critical the information is to you,

Commenti su questo manuale

Nessun commento