Red Hat JBoss Web Server 2.1 HTTP Connectors Load Balancing Guide
|
|
|
- Cornelia Powers
- 10 years ago
- Views:
Transcription
1 Red Hat JBoss Web Server 2.1 HTTP Connectors Load Balancing Guide HTTP load balancing for JBoss Enterprise Application Platform and Red Hat JBoss Web Server Misha Husnain Ali Mandar Joshi Gemma Sheldon
2
3 Red Hat JBoss Web Server 2.1 HTTP Connectors Load Balancing Guide HTTP load balancing for JBoss Enterprise Application Platform and Red Hat JBoss Web Server Misha Husnain Ali Red Hat Engineering Co ntent Services m Mandar Joshi Red Hat Engineering Co ntent Services majo m Gemma Sheldo n Red Hat Engineering Co ntent Services gsheldo [email protected] m
4 Legal Notice Copyright 2015 RedHat, Inc. This do cument is licensed by Red Hat under the Creative Co mmo ns Attributio n- ShareAlike 3.0 Unported License. If you distribute this document, or a modified version of it, you must provide attribution to Red Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be remo ved. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other co untries. Linux is the registered trademark of Linus Torvalds in the United States and other countries. Java is a registered trademark o f Oracle and/o r its affiliates. XFS is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/o r o ther co untries. MySQL is a registered trademark of MySQL AB in the United States, the European Union and o ther co untries. Node.js is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. The OpenStack Wo rd Mark and OpenStack Lo go are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endo rsed o r spo nso red by the OpenStack Fo undatio n, o r the OpenStack co mmunity. All o ther trademarks are the pro perty o f their respective o wners. Abstract Read this guide to install and configure JBoss Enterprise Application Platform and Red Hat JBo ss Web Server HTTP co nnecto rs: mo d_jk, mo d_cluster, ISAPI, and NSAPI. This guide also discusses clustering and lo ad- balancing using these co nnecto rs.
5 T able of Cont ent s Table of Contents. Preface Do cument Co nventio ns Typ o g rap hic Co nventio ns Pull-q uo te Co nventio ns No tes and Warning s 5 2. G etting Help and G iving Feed b ack Do Yo u Need Help? We Need Feed b ack! 6. Part.... I.. Apache T.. omcat Connect or Chapt..... er O.. verview O verview Do wnlo ad and Install 8. Chapt..... er Configure Load..... Balancing Using..... Apache and.... mod_jk Co nfig ure Lo ad Balancing Using Ap ache and mo d _jk Co nfig uring Wo rker No d es in mo d _jk Co nfig uring Wo rker No d es in mo d _jk Co nfig uring Ap ache To mcat to Wo rk with mo d _jk 12. Chapt..... er WebSocket on... T. omcat Ab o ut Web So cket Imp lementing Web So cket o n To mcat 13. Part.... II... JBoss HT.. T.. P. Connect or Chapt..... er O.. verview O verview Key Features Co mp o nents Limitatio ns 19. Chapt..... er Proxy Server Component s Ap ache Mo d ules Ap ache Mo d ules mo d _manag er.so mo d _p ro xy_cluster.so mo d _ad vertise.so mo d _p ro xy.so mo d _p ro xy_ajp.so mo d _slo tmem.so Pro xy Server Co mp o nents Installatio n and Default Co nfig uratio n Pro xy Server Co mp o nents Installatio n and Default Co nfig uratio n 24. Chapt..... er Configure Basic Proxy..... Server Basic Pro xy Co nfig uratio n O verview Co nfig ure a Lo ad -b alancing Pro xy Using the HTTP Co nnecto r 25. Chapt..... er Inst.... all.. Node..... wit... h.. Basic..... Configurat ion Wo rker No d e Req uirements Install and Co nfig ure a Wo rker No d e Co nfig ure a To mcat Wo rker No d e 27. Chapt..... er Advanced Configurat ion
6 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide. Chapt..... er Advanced Configurat ion Static Pro xy Co nfig uratio n 30. Chapt..... er Configuring ht.. t. pd... for... SSL.... connect ions Co nfig uring http d fo r SSL co nnectio ns 31. Part.... III... O.. nline..... Cert... ificat..... e. St.. at.. us... Prot.... ocol Chapt..... er O.. nline..... Cert... ificat..... e. St.. at.. us... Prot.... ocol Ab o ut O nline Certificate Status Pro to co l Using O nline Certificate Status Pro to co l fo r http d Co nfig ure http d to valid ate O CSP certificates Verify the co nfig uratio n 34. Part.... IV... Using Jsvc.... wit... h.. JBoss Ent... erprise Web.... Server Chapt..... er Jsvc Ab o ut Jsvc Use Jsvc with To mcat 6 and Run Jsvc with To mcat 6 and Co nfig ure Jsvc with To mcat 6 and Chapt..... er Working Examples Co mp lete Wo rking Examp le mo d _auth_kerb Examp le Ab o ut the mo d _auth_kerb Examp le mo d _auth_kerb Examp le Prereq uisites Co nfig ure the Kerb ero s Client Co nfig ure mo d _auth_kerb Test the Kerb ero s Authenticatio n 43. Reference A.1. wo rkers.p ro p erties 45. Java.... Propert ies... Reference B.1. Pro xy Co nfig uratio n 48 B.2. mo d _cluster Pro xy and Pro xy Disco very Co nfig uratio n Attrib utes 49 B.3. Lo ad Co nfig uratio n 50. Revision Hist... ory
7 Preface Preface 1. Document Convent ions This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information T ypographic Convent ions Four typographic conventions are used to call attention to specific words and phrases. These conventions, and the circumstances they apply to, are as follows. Mo no -spaced Bo l d Used to highlight system input, including shell commands, file names and paths. Also used to highlight keys and key combinations. For example: To see the contents of the file my_next_bestsel l i ng _no vel in your current working directory, enter the cat my_next_bestsel l i ng _no vel command at the shell prompt and press Enter to execute the command. The above includes a file name, a shell command and a key, all presented in mono-spaced bold and all distinguishable thanks to context. Key combinations can be distinguished from an individual key by the plus sign that connects each part of a key combination. For example: Press Enter to execute the command. Press C trl +Al t+f2 to switch to a virtual terminal. The first example highlights a particular key to press. The second example highlights a key combination: a set of three keys pressed simultaneously. If source code is discussed, class names, methods, functions, variable names and returned values mentioned within a paragraph will be presented as above, in mo no -spaced bo l d. For example: File-related classes include fi l esystem for file systems, fi l e for files, and d i r for directories. Each class has its own associated set of permissions. Proportional Bold This denotes words or phrases encountered on a system, including application names; dialog-box text; labeled buttons; check-box and radio-button labels; menu titles and submenu titles. For example: Choose System Preferences Mouse from the main menu bar to launch Mouse Preferences. In the Butto ns tab, select the Left-hand ed mo use check box and click C l o se to switch the primary mouse button from the left to the right (making the mouse suitable for use in the left hand). To insert a special character into a gedit file, choose Applications Accessories Character Map from the main menu bar. Next, choose Search Find from the Character Map menu bar, type the name of the character in the Search field and click Next. The character you sought will be highlighted in the 3
8 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide C haracter T abl e. Double-click this highlighted character to place it in the T ext to co py field and then click the C o py button. Now switch back to your document and choose Edit Paste from the gedit menu bar. The above text includes application names; system-wide menu names and items; application-specific menu names; and buttons and text found within a GUI interface, all presented in proportional bold and all distinguishable by context. Mono-spaced Bold Italic or Proportional Bold Italic Whether mono-spaced bold or proportional bold, the addition of italics indicates replaceable or variable text. Italics denotes text you do not input literally or displayed text that changes depending on circumstance. For example: To connect to a remote machine using ssh, type ssh username@ domain.name at a shell prompt. If the remote machine is exampl e. co m and your username on that machine is john, type ssh jo hn@ exampl e. co m. The mo unt -o remo unt file-system command remounts the named file system. For example, to remount the /ho me file system, the command is mo unt -o remo unt /ho me. To see the version of a currently installed package, use the rpm -q package command. It will return a result as follows: package-version-release. Note the words in bold italics above: username, domain.name, file-system, package, version and release. Each word is a placeholder, either for text you enter when issuing a command or for text displayed by the system. Aside from standard usage for presenting the title of a work, italics denotes the first use of a new and important term. For example: Publican is a DocBook publishing system Pull-quot e Convent ions Terminal output and source code listings are set off visually from the surrounding text. Output sent to a terminal is set in mo no -spaced ro man and presented thus: books Desktop documentation drafts mss photos stuff svn books_tests Desktop1 downloads images notes scripts svgs Source-code listings are also set in mo no -spaced ro man but add syntax highlighting as follows: static int kvm_vm_ioctl_deassign_device(struct kvm *kvm, struct kvm_assigned_pci_dev *assigned_dev) { int r = 0; struct kvm_assigned_dev_kernel *match; mutex_lock(& kvm->lock); match = kvm_find_assigned_dev(& kvm->arch.assigned_dev_head, assigned_dev->assigned_dev_id); if (!match) { printk(kern_info "%s: device hasn't been assigned 4
9 Preface before, " } "so cannot be deassigned\n", func ); r = -EINVAL; goto out; kvm_deassign_device(kvm, match); kvm_free_assigned_device(kvm, match); out: mutex_unlock(& kvm->lock); return r; } 1.3. Not es and Warnings Finally, we use three visual styles to draw attention to information that might otherwise be overlooked. Note Notes are tips, shortcuts or alternative approaches to the task at hand. Ignoring a note should have no negative consequences, but you might miss out on a trick that makes your life easier. Important Important boxes detail things that are easily missed: configuration changes that only apply to the current session, or services that need restarting before an update will apply. Ignoring a box labeled Important will not cause data loss but may cause irritation and frustration. Warning Warnings should not be ignored. Ignoring warnings will most likely cause data loss. 2. Get t ing Help and Giving Feedback 2.1. Do You Need Help? If you experience difficulty with a procedure described in this documentation, visit the Red Hat Customer Portal at Through the customer portal, you can: search or browse through a knowledgebase of technical support articles about Red Hat products. submit a support case to Red Hat Global Support Services (GSS). access other product documentation. 5
10 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Red Hat also hosts a large number of electronic mailing lists for discussion of Red Hat software and technology. You can find a list of publicly available mailing lists at Click on the name of any mailing list to subscribe to that list or to access the list archives We Need Feedback! If you find a typographical error in this manual, or if you have thought of a way to make this manual better, we would love to hear from you! Please submit a report in Bugzilla: against the product Red Hat JBoss Web Server. When submitting a bug report, be sure to mention the manual' s identifier: HTTP_Connectors_Load_Balancing_Guide If you have a suggestion for improving the documentation, try to be as specific as possible when describing it. If you have found an error, please include the section number and some of the surrounding text so we can find it easily. 6
11 Part I. Apache T omcat Connect or Part I. Apache Tomcat Connector 7
12 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Chapter 1. Overview 1.1. Overview Apache is a well-known web server which can be extended using plug-ins. The Apache Tomcat Connector mod_jk is a plug-in designed to allow request forwarding from Apache httpd Server to a Servlet container. The module also supports load-balancing HTTP calls to a set of Servlet containers while maintaining sticky sessions Download and Inst all Apache httpd is included in the JBoss Enterprise Web Server binary you download from mo d _jk is included in the native installation binaries for JBoss Enterprise Application Platform and JBoss Enterprise Web Server. Follow the procedures in the JBoss Enterprise Application Platform or JBoss Enterprise Web Server Installation Guide to download and install the correct platform and native binaries. For supported configurations, see the JBoss Enterprise Web Server Supported Configurations page. 8
13 Chapt er 2. Configure Load Balancing Using Apache and mod_jk Chapter 2. Configure Load Balancing Using Apache and mod_jk 2.1. Configure Load Balancing Using Apache and mod_jk Follow the tasks in this chapter to correctly configure load balancing using Apache and the mod_jk connector. Procedure 2.1. Configure Apache to Load mod_jk Ensure that Apache and mod_jk are installed (see Section 1.2, Download and Install ). To configure Apache to Load mod_jk: 1. Open HTTPD_DIST/co nf/httpd. co nf and add a single line at the end of the file. # Include mod_jk's specific configuration file Include conf/mod-jk.conf 2. Create a new file named HTTPD_DIST/co nf/mo d -jk. co nf 3. Add the following configuration to the mo d -jk. co nf file. Important The Lo ad Mo d ul e directive must reference the mod_jk library directory location applicable to the native binary you installed. Note The JkMo unt directive specifies which URLs Apache should forward to the mod_jk module. Based on the directive' s configuration, mo d_jk forwards the received URL onto the correct Servlet containers. To enable Apache to serve static content (or PHP content) directly, and only use the load balancer for Java applications, the suggested configuration specifies all requests with URL path /appl i cati o n/* are sent to the mod_jk load-balancer. Only mod_jk is used as a load balancer, forward all URLs to mod_jk by specifying /* in the directive. # Load mod_jk module # Specify the filename of the mod_jk lib LoadModule jk_module modules/mod_jk.so # Where to find workers.properties JkWorkersFile conf/workers.properties # Where to put jk logs JkLogFile logs/mod_jk.log 9
14 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide # Set the jk log level [debug/error/info] JkLogLevel info # Select the log format JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" # JkOptions indicates to send SSK KEY SIZE JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat JkRequestLogFormat "%w %V %T" # Mount your applications JkMount /application/* loadbalancer # Add shared memory. # This directive is present with and # later versions of mod_jk, and is needed for # for load balancing to work properly JkShmFile logs/jk.shm # Add jkstatus for managing runtime data <Location /jkstatus/> JkMount status Order deny,allow Deny from all Allow from </Location> 4. O ptional: JKMountFile Directive In addition to the JkMo unt directive, use the JkMo untfi l e directive to specify a mount points configuration file. The configuration file contains multiple Tomcat forwarding URL mappings. a. Navigate to HTTPD_DIST/co nf. b. Create a file named uri wo rkermap. pro perti es. c. Specify the URL to forward and the worker name using the following syntax example as a guide. The example block will configure mod_jk to forward requests to /jmx-co nso l e and /web-co nso l e to Apache. The syntax required takes the form /url = wo rker_name. # Simple worker configuration file # Mount the Servlet context to the ajp13 worker /jmx-console=loadbalancer /jmx-console/*=loadbalancer /web-console=loadbalancer /web-console/*=loadbalancer d. In HTTPD_DIST/co nf/mo d -jk. co nf, append the following directive. 10
15 Chapt er 2. Configure Load Balancing Using Apache and mod_jk # Use external file for mount points. # It will be checked for updates each 60 seconds. # The format of the file is: /url=worker # /examples/*=loadbalancer JkMountFile conf/uriworkermap.properties 2.2. Configuring Worker Nodes in mod_jk Configuring Worker Nodes in mod_jk Configure two mod_jk Worker node definitions in a weighted round robin configuration with sticky sessions active between two servlet containers. Procedure 2.2. Configure mod_jk Worker Nodes As a prerequisite, understand the format of the wo rkers. pro perti es directives, as specified in Section A.1, workers.properties and configure mod_jk (see Section 2.1, Configure Load Balancing Using Apache and mod_jk ). To configure mod_jk worker nodes: 1. Navigate to HTTPD_DIST/co nf/. 2. Create a file named wo rkers. pro perti es. 3. Append the following information into the wo rkers. pro perti es file. # Define list of workers that will be used # for mapping requests worker.list=loadbalancer,status # Define Node1 # modify the host as your host IP or DNS name. worker.node1.port=8009 worker.node1.host=node1.mydomain.com worker.node1.type=ajp13 worker.node1.ping_mode=a worker.node1.lbfactor=1 # Define Node2 # modify the host as your host IP or DNS name. worker.node2.port=8009 worker.node2.host=node2.mydomain.com worker.node2.type=ajp13 worker.node2.ping_mode=a worker.node2.lbfactor=1 # Load-balancing behavior worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=node1,node2 11
16 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide worker.loadbalancer.sticky_session=1 # Status worker for managing load balancer worker.status.type=status 2.3. Configuring Apache T omcat t o Work wit h mod_jk Tomcat is configured to use mod_jk by default. Specifically, see the co nf/server. xml file, which contains the following code for this purpose: <connector port="8009" protocol="ajp/1.3" redirectport="8443" /> Set the jvmroute attribute at your engine as follows: <Engine name="catalina" jvmroute="node1" > The jvmroute attribute value must match the worker name set in wo rkers. pro perti es. This default Tomcat configuration is ready for immediate use with mod_jk. 12
17 Chapt er 3. WebSocket on T omcat Chapter 3. WebSocket on Tomcat 3.1. About WebSocket WebSocket is a web technology that provides bi-directional, full duplex, messages to be instantly distributed between the client and server over a single TCP socket connection. A full duplex communication allows two-way communication simultaneously. The container provides an implementations of the WebSockets 1.0 JSR 356 API. To use the API, you must run Java 7+ and configure the APR or NIO2 HTTP/1.1 connectors of the web container. JSR 356 is a standard for WebSocket API for Java. Developers can use JSR 356 API for creating WebSocket applications independent of the implementation. The WebSocket API is purely event driven. D evelopers can use JSR 356 Java API for WebSocket to integrate WebSockets in applications on the server side as well as on the java client side. Tomcat 7 and 8 implement WebSocket protocol that adheres to JSR-356 standard. A Java client uses JSR 356 compliant client implementation to connect to a WebSocket server. For web clients, WebSocket JavaScript API can be used to communicate with WebSocket server. The only difference between a WebSocket client and a WebSocket server is the method in which they are connected. A WebSocket client is a WebSocket point from which the connection to a peer originates. While a WebSocket server is WebSocket endpoint which is already published and awaits connections from peers. Some of the examples where WebSocket can be used are banking applications, chat applications, multiplayer applications, and social networking applications Implement ing WebSocket on T omcat The WebSocket on Tomcat configuration requires individual configuration of the following: Configuring write timeout Configuring incoming binary messages Configuring incoming text messages Configuring additional programmatic deployment Configuring callbacks for asynchronous writes Configuring timeout for IO operations while establishing the connections Configuring write timeout You can change the write timeout in blocking mode by using the o rg. apache. to mcat. webso cket. BLO C KING _SEND _T IMEO UT property. The property accepts values in milliseconds. The default value is milliseconds (20 seconds). Configuring incoming binary messages 13
18 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide To configure incoming binary messages, Messag ehand l er. P arti al must be defined. If Messag ehand l er. P arti al is not defined then incoming binary messages must be buffered so that the entire message is delivered in a single call to Messag ehand l er. Who l e. The default buffer size for binary messages is 8192 bytes. You can change the buffer size for a web application by changing the value of the servlet context initializing parameter o rg. apache. to mcat. webso cket. bi narybuffersi ze. Configuring incoming text messages To configure incoming text messages, Messag ehand l er. P arti al must be defined. If Messag ehand l er. P arti al is not defined then incoming text messages must be buffered so that the entire message is delivered in a single call to Messag ehand l er. Who l e. The default buffer size for text messages is 8192 bytes. You can change the buffer size for a web application by changing the value of the servlet context initializing parameter o rg. apache. to mcat. webso cket. textbuffersi ze. Configuring additional programmatic deployment Java WebSocket specification 1.0 does not allow programmatic deployment after the first endpoint has started a WebSocket handshake. However, Tomcat by default allows additional programmatic deployment. Additional programmatic deployment can be done by using the servlet context initialization parameter o rg. apache. to mcat. webso cket. no Ad d AfterHand shake. Set the system property o rg. apache. to mcat. webso cket. ST R IC T _SP EC _C O MP LIANC E to true to change the default setting. Configuring callbacks for asynchronous writes Callbacks for asynchronous writes need to be performed on a different thread to the thread that initiated the write. The container thread pool is not exposed via the Servlet API. Hence the WebSocket implementation has to provide its own thread pool. The following servlet context initialization parameters control the thread pool: o rg. apache. to mcat. webso cket. executo rc o resi ze The core size of the executor thread pool. If not set, the default of 0 (zero) is used. o rg. apache. to mcat. webso cket. executo rmaxsi ze The maximum permitted size of the executor thread pool. If not set, the default of 10 is used. o rg. apache. to mcat. webso cket. executo rkeepal i vet i meseco nd s The maximum time an idle thread will remain in the executor thread pool until it is terminated. If not specified, the default of 60 seconds is used. Configuring timeout for IO operations while establishing the connections The timeout for IO operations while establishing the connections is controlled by userp ro perti es of the provided javax. webso cket. C l i entend po i ntc o nfi g. You can change timeout by changing the o rg. apache. to mcat. webso cket. IO _T IMEO UT _MS property. The property accepts the values in milliseconds. The default value is 5000 (5 seconds). To connect WebSocket client to secure server endpoints, the client SSL configuration is controlled by userp ro perti es of the provided javax. webso cket. C l i entend po i ntc o nfi g. 14
19 Chapt er 3. WebSocket on T omcat The following user properties are supported: o rg. apache. to mcat. webso cket. SSL_C O NT EXT o rg. apache. to mcat. webso cket. SSL_P R O T O C O LS o rg. apache. to mcat. webso cket. SSL_T R UST ST O R E o rg. apache. to mcat. webso cket. SSL_T R UST ST O R E_P WD The default truststore password is changeit. The o rg. apache. to mcat. webso cket. SSL_T R UST ST O R E and o rg. apache. to mcat. webso cket. SSL_T R UST ST O R E_P WD properties are ignored if the o rg. apache. to mcat. webso cket. SSL_C O NT EXT property is set. 15
20 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Part II. JBoss HTTP Connector 16
21 Chapt er 4. O verview Chapter 4. Overview 4.1. Overview The JBoss HTTP Connector mo d_clu st er is a reduced configuration, intelligent load-balancing solution for JBoss Enterprise Application Platform, based on technology originally developed by the JBoss mod_cluster community project. The JBoss HTTP connector load-balances HTTP requests to JBoss Enterprise Application Platform and JBoss Enterprise Web Server worker nodes, utilizing Apache as the proxy server. It serves as a load balancing solution for Tomcat in JBoss Enterprise Web Server as well as for JBoss Enterprise Application Platform Key Feat ures Table 4.1. Features Feature Apache HTTP Server-based Real-time load-balancing calculation Description The JBoss HTTP Connector mod-cluster uses Apache as the proxy server. The JBoss HTTP Connector mo d_clu st er creates a feedback network between the worker nodes and the proxy server. The mod_cluster service is deployed on each of the worker nodes. This service feeds real time load information to the proxy server. The proxy server then allocates work, based on the current load on each worker node. This real time adaptive load distribution results in increased optimization of resources. The information reported by the worker nodes and the load-balancing policy used by the proxy are customizable. Routing based on real-time application life cycle Automatic Proxy D iscovery The JBoss HTTP Connector mo d_clu st er service deployed on the worker nodes relays application lifecycle events to the proxy server. This allows the server to dynamically update its routing table. When an application is undeployed on a node, the proxy server does notroute traffic for that application to that node The proxy server is configured to announce its presence via UD P multicast. New worker nodes discover the proxy server and automatically add themselves to the load-balancing cluster. This reduces the configuration and maintenance needed. When UDP multicast is not available or is undesirable, worker nodes are configured with a static list of proxies. 17
22 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Feature Multiple Protocol Support Description The JBoss HTTP Connector mo d_clu st er uses either HTTP, HTTPS, or Apache JServ Protocol (AJP) for communication between the proxy and the worker nodes Component s Proxy Server On the proxy server, the JBoss HTTP Connector mod-cluster consists of four Apache modules. Table 4.2. Components Component mo d _sl o tmem. so mo d _manag er. so mo d _pro xy_cl uster. so mo d _ad verti se. so Description The Shared Memory Manager module shares the real time worker node information with multiple Apache server processes The Cluster Manager module receives and acknowledges messages from nodes, including worker node registrations, worker node load data, and worker node application life cycle events The Proxy Balancer Module handles request routing to cluster nodes. The Proxy Balancer selects the appropriate destination node based on application location in the cluster, current state of each of the cluster nodes, and the Session ID (if a request is part of an established session). The Proxy Advertisement Module broadcasts the existence of the proxy server via UDP multicast messages. The server advertisement messages contain the IP address and port number where the proxy is listening for responses from nodes that want to join the load-balancing cluster. see Section 5.1.1, Apache Modules for detailed information about the available modules including user-configurable parameters. Worker Node Components Worker Node Service The mo d _cl uster offered as part of JBoss Enterprise Web Server is used instead of a JBoss HTTP Connector client service for the worker node service. The mod_cluster in JBoss Enterprise Web Server consists of the following two parts: Native - Apache HTTP Server module (balancer logic) Java - Tomcat6/7 Listener library (worker logic) 18
23 Chapt er 4. O verview 4.4. Limit at ions The JBoss HTTP Connector mo d _cl uster uses shared memory to keep the nodes description, the shared memory is created at the startup of httpd and the structure of each item is fixed. Therefore, when defining proxy server and worker node properties, make sure to follow these character limits: Maximum Alias length: 100 characters (Alias corresponds to the network name of the respective virtual host; the name is defined in the Host element) Maximum context length: 40 characters (for example, if myapp. war is deployed in /myapp, then /myapp is the context) Maximum balancer name length: 40 characters (the balancer property in mbean) Maximum JVMRoute string length: 80 character (JVMRoute in the <Engine> element) Maximum domain name length: 20 characters (the domain property in mbean) Maximum hostname length for a node: 64 characters (hostname address in the <Connector> element) Maximum port length for a node: 7 characters (8009 is 4 characters, the port property in the <Connector> element) Maximum scheme length for a node: 6 characters (possible values are http, https, ajp, the protocol of the connector) Maximum cookie name length: 30 characters (the header cookie name for session ID default value: JSESSIONID from org.apache.catalina.globals.session_cookie_name) Maximum path name length: 30 characters (the parameter name for the session ID default value: JSESSIONID from org.apache.catalina.globals.session_parameter_name) Maximum length of a session ID: 120 characters (session ID resembles the following: BE81FAA9 6 9 BF6 4 C 8EC 2B EAAAA. no d e0 1) 19
24 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Chapter 5. Proxy Server Components 5.1. Apache Modules Apache Modules Read this section for expanded definitions of the Apache proxy server modules discussed in Section 4.3, Components mod_manager.so The Cluster Manager module, mo d_man ag er, receives and acknowledges messages from nodes, including worker node registrations, worker node load data, and worker node application life cycle events. LoadModule manager_module modules/mod_manager.so Configurable directives in the <Vi rtual Ho st> element are as follows: EnableMCPMReceive Allows the VirtualHost to receive the mod_cluster Protocol Message (MCPM) from nodes. Add one EnableMCPMRecieve attribute to the httpd configuration to allow mod_cluster to operate correctly. EnableMCPMRecieve must be added in the VirtualHost configuration, at the location where advertise is configured. MaxMC MPMaxMessSiz e D efines the maximum size of mod_cluster Management Protocol (MCMP) messages. The default value for this is calculate from other Max directives. The minumum value for this is AllowDisplay Toggles the additional display on the mod_cluster-manager main page. The default value is o ff which causes only the versions to display on the mod_cluster-manager main page. AllowCmd Toggles permissions for commands using mod_cluster-manager URL. The default value is o n, which allows commands. ReduceDisplay Toggles the reduction of information displayed on the mod_cluster-manager page. Reducing the information allows more nodes to display on the page. The default value is o ff which allows all the available information to display. MemMan ag erfile 20
25 Chapt er 5. Proxy Server Component s D efines the location for the files in which mod_manager stores configuration details. mod_manager also uses this location for generated keys for shared memory and lock files. This must be an absolute path name. It is recommended that this path be on a local drive, and not a NFS share. The default value is /l o g s/. Maxcontext The maximum number of contexts JBoss mod_cluster will use. The default value is Maxnode The maximum number of worker nodes JBoss mod_cluster will use. The default value is 20. Maxhost The maximum number of hosts (aliases) JBoss mod_cluster will use. This is also the maximum number of load balancers. The default value is 10. Maxsessio n id The maximum number of active session identifiers stored. A session is considered inactive when no information is received from that session within five minutes. The default value is 0, which disables this logic. ManagerBalancerName The name of the load balancer to use when the worker node does not provide a load balancer name. The default value is mycl uster. PersistSlots When set to o n, nodes, aliases and contexts are persisted in files. The default value is o ff. CheckNonce When set to o n, session identifiers are checked to ensure that they are unique, and have not occurred before. The default is o n. Warning Setting this directive to o ff can leave your server vulnerable to replay attacks. SetHandler mod_cluster-manager D efines a handler to display information about worker nodes in the cluster. This is defined in the Lo cati o n element: <Location $LOCATION> SetHandler mod_cluster-manager Order deny,allow Deny from all Allow from </Location> When accessing the $LOCATION defined in the Lo cati o n element in your browser, you will see something like the following. (In this case, $LOCATION was also defined as mo d _cl uster-hand l er.) 21
26 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Transferred corresponds to the POST data sent to the worker node. Connected corresponds to the number of requests that had been processed when this status page was requested. Sessions corresponds to the number of active sessions. This field is not present when Maxsessi o ni d is mod_proxy_clust er.so The Proxy Balancer Module, mod_proxy_cluster, handles the routing of requests to cluster nodes. The Proxy Balancer selects the appropriate node to forward the request to, based on application location in the cluster, current state of each of the cluster nodes, and the Session ID (if a request is part of an established session). LoadModule proxy_cluster_module modules/mod_proxy_cluster.so You can also define the following related directives in the <Vi rtual Ho st> element to change load balancing behavior. mod_proxy_cluster directives CreateBalancers Defines how load balancers are created in the Apache HTTP Server virtual hosts. The following values are valid in C reatebal ancers: UseAlias Create load balancers in all virtual hosts defined in Apache HTTP Server. Remember to configure the load balancers in the P ro xyp ass directive. Do not create balancers. When using this value, you must also define the load balancer name in the P ro xyp ass or P ro xyp assmatch. Create only the main server. This is the default value for C reatebal ancers. Defines whether to check that the defined Al i as corresponds to the ServerName. The following values are valid for UseAl i as: 0 1 LBstatusRecalTime Ignore Alias information from worker nodes. This is the default value for UseAl i as. Verify that the defined alias corresponds to a worker node' s server name. D efines the interval in seconds between the proxy calculating the status of a worker node. The default interval is 5 seconds. ProxyPassMatch; ProxyPass 22
27 Chapt er 5. Proxy Server Component s P ro xyp ass maps remote servers into the local server namespace. If the local server has an address http: //l o cal. co m/, then the following P ro xyp ass directive would convert a local request for http: //l o cal. co m/req uested /fi l e1 into a proxy request for http: //wo rker. l o cal. co m/fi l e1. ProxyPass /requested/ P ro xyp assmatch uses Regular Expressions to match local paths to which the proxied URL should apply. For either directive,! indicates that a specified path is local, and a request for that path should not be routed to a remote server. For example, the following directive specifies that. g i f files should be served locally. ProxyPassMatch ^(/.*\.gif)$! mod_advert ise.so The Proxy Advertisement Module, mod_advertise.so, broadcasts the existence of the proxy server via UD P multicast messages. The server advertisement messages contain the IP address and port number where the proxy is listening for responses from nodes that wish to join the load-balancing cluster. This module must be defined alongside mod_manager in the Vi rtual Ho st element. Its identifier in the following code snippet is ad verti se_mo d ul e. LoadModule advertise_module modules/mod_advertise.so mod_advertise also takes the following directives: ServerAd vert ise D efines how the advertising mechanism is used. When set to O n, the advertising mechanism is used to tell worker nodes to send status information to this proxy. You can also specify a hostname and port with the following syntax: ServerAd verti se O n http: //ho stname: po rt/. This is only required when using a name-based virtual host, or when a virtual host is not defined. The default value is O ff. When set to o ff, the proxy does not advertise its location. AdvertiseG roup Defines the multicast address to advertise on. The syntax is Ad verti seg ro up address:port, where address should correspond to Ad verti seg ro upad d ress, and port should correspond to Ad verti sep o rt in your worker nodes. If your worker node is JBoss Enterprise Application Platform-based, and the -u switch is used at startup, the default Ad verti seg ro upad d ress is the value passed via the -u switch. The default value is : If port is not specified, the default port specified is AdvertiseFrequency 23
28 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide The interval (in seconds) between multicast messages advertising the IP address and port. The default value is 10. AdvertiseSecurityKey Defines a string used to identify the JBoss HTTP Connector mod_cluster in JBoss Web. By default this directive is not set and no information is sent. AdvertiseManagerUrl Defines the URL that the worker node should use to send information to the proxy server. By default this directive is not set and no information is sent. AdvertiseBindAddress Defines the address and port over which to send multicast messages. The syntax is Ad verti sebi nd Ad d ress ad d ress: po rt. This allows an address to be specified on machines with multiple IP addresses. The default value is : mod_proxy.so A standard Apache HTTP Server module. This module lets the server act as proxy for data transferred over AJP (Apache JServe Protocol), FTP (File Transfer Protocol), CONNECT (for SSL, the Secure Sockets Layer), and HTTP (Hyper Text Transfer Protocol). This module does not require additional configuration. Its identifier is pro xy_mo d ul e. Mod_proxy directives such as ProxyIOBufferSize are used to configure mod_cluster mod_proxy_ajp.so A standard Apache HTTP Server module that provides support for AJP (Apache JServe Protocol) proxying. Mo d _pro xy. so is required to use this module mod_slot mem.so Mod_slotmen does not require any configuration directives Proxy Server Component s Inst allat ion and Default Configurat ion Proxy Server Component s Inst allat ion and Default Configurat ion In JBoss Enterprise Web Server 2.1, mod_cluster is configured correctly for httpd by default. See the Chapter 6, Configure Basic Proxy Server to set a custom configuration. For more information on configuring Tomcat worker node with mod_cluster, see Section 7.2.1, Configure a Tomcat Worker Node. 24
29 Chapt er 6. Configure Basic Proxy Server Chapter 6. Configure Basic Proxy Server 6.1. Basic Proxy Configurat ion Overview Proxy server configuration consists of one mandatory and one optional portion: 1. Configure a Proxy Server listener to receive worker node connection requests and worker node feedback. 2. Optional: D isable server advertisement. Server Advertisement The proxy server advertises itself using UDP multicast. When UDP multicast is available on the network between the proxy server and the worker nodes, Server Advertisement adds worker nodes without further configuration required on the proxy server, and minimal configuration on the worker nodes. If UDP multicast is not available or undesirable, configure the worker nodes with a static list of proxy servers, as detailed in Section 8.1, Static Proxy Configuration. In either case, the proxy server does not need to be configured with a list of worker nodes Configure a Load-balancing Proxy Using t he HT T P Connect or Prerequisites The following are a series of prerequisites for this procedure: Install JBoss Enterprise Web Server. See JBoss Enterprise Web Server Installation Guide for details. Install JBoss HTTP Connector modules. See Section 1.2, D ownload and Install for details. Procedure 6.1. Configure a Load-balancing Proxy Using the HTTP Connector To configure JBoss Enterprise Web Server service to act as a load-balancing proxy using the JBoss HTTP Connector: 1. Create a Listen Directive for the Proxy Server Edit the configuration file JBOSS_EWS_DIST/httpd /co nf. d /JBo ss_ht T P. co nf and add the following: Listen IP_ADDRESS:PORT_NUMBER Where IP_ADDRESS is the IP address of a server network interface to communicate with the worker nodes, and PORT_NUMBER is the port on that interface to listen on. Note The port PORT_NUMBER must be open on the server firewall for incoming TCP connections. 25
30 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Example 6.1. Example Listen Directive Listen : Create Virtual Host Add the following to the file JBOSS_EWS_DIST/httpd /co nf. d /JBo ss_ht T P. co nf: <VirtualHost IP_ADDRESS:PORT_NUMBER> <Directory /> Order deny,allow Deny from all Allow from </Directory> KeepAliveTimeout 60 MaxKeepAliveRequests 0 ManagerBalancerName mycluster AdvertiseFrequency 5 EnableMCPMReceive On </VirtualHost> Where IP_ADDRESS and PORT_NUMBER are the values from the Listen directive. 3. O ptional: Disable Server Advertisement The Ad verti sefreq uency directive, set to five seconds, makes the server to periodically send server advertisement messages via UD P multicast. These server advertisement messages contain the IP_ADDRESS and PORT_NUMBER specified in the VirtualHost definition. Worker nodes configured to respond to server advertisements use this information to register themselves with the proxy server. To disable server advertisement, add the following directive to the Vi rtual Ho st definition: ServerAdvertise Off If server advertisements are disabled, or UD P multicast is not available on the network between the proxy server and the worker nodes, configure worker nodes with a static list of proxy servers. See Section 8.1, Static Proxy Configuration for directions. 4. Restart the JBoss Enterprise Web Server Apache service See the JBoss Enterprise Web Server documentation for detailed directions. 26
31 Chapt er 7. Inst all Node wit h Basic Configurat ion Chapter 7. Install Node with Basic Configuration 7.1. Worker Node Requirement s Supported Worker Node types JBoss Enterprise Web Server Tomcat service Note JBoss Enterprise Web Server Tomcat worker nodes support a subset of JBoss HTTP Connector functionality. JBoss HTTP Connector Enterprise Web Server Node Limitations Non-clustered mode only. Only one load metric can be used at a time when calculating the load balance factor Inst all and Configure a Worker Node Configure a T omcat Worker Node Follow this procedure to install the JBoss HTTP Connector on a JBoss Enterprise Web Server node and configure it for non-clustered operation. Note The supplied instructions are valid for Tomcat version 6 and 7 and do not require any changes for either of these versions. Prerequisites The following is a list of prerequisites for this task: Install a supported JBoss Enterprise Web Server. Understand the Proxy Configuration parameters discussed in Appendix B: Java Properties Reference. Procedure 7.1. Configure a Worker Node for Tomcat 1. Add a Listener to Tomcat Add the following Li stener element beneath the other Listener elements in JBOSS_EWS_DIST/tomcat6/co nf/server. xml. 27
32 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide <Listener classname="org.jboss.modcluster.container.catalina.standalone.modcl usterlistener" advertise="true" stickysession="true" stickysessionforce="false" stickysessionremove="true" /> 2. G ive the Worker a Unique Identity Edit JBOSS_EWS_DIST/tomcat6/co nf/server. xml and add a jvmr o ute attribute and value to the Eng i ne element, as shown: <Engine name="catalina" defaulthost="localhost" jvmroute="worker01"> 3. O ptional Step: Configure Firewall for Proxy Server Advertisements A proxy server using the JBoss HTTP Connector can advertise itself via UD P multicast. To receive these multicast messages, open port for UD P connections on the worker node' s firewall. For Linux Users /sbin/iptables -A INPUT -m state --state NEW -m udp -p udp --dport j ACCEPT -m comment -comment "receive mod_cluster proxy server advertisements" If Automatic Proxy Discovery is not used, configure worker nodes with a static list of proxies. In this case you can safely ignore the following warning message: [warning] mod_advertise: ServerAdvertise Address or Port not defined, Advertise disabled!!! 4. Set STATUS MCMP Messages frequency The tomcat worker nodes send status messages periodically to Apache HTTP Server balancer containing their current load status. The default frequency of these messages is 10 seconds. With many active worker nodes which are in hundreds, the STATUS MCMP Messages might increase the traffic congestion on Apache HTTP Server network. To set the MCMP message frequency, modify the org.jboss.modcluster.container.catalina.status-frequency property. By default, the property accepts values in seconds*10. Example, value = 1 means 10 seconds. -Dorg.jboss.modcluster.container.catalina.status-frequency=6 Apache HTTP server advertising is available via UD P multicast. This is not available by default on most systems. To enable server advertising, configure the firewall settings as follows to allow multicast UD P on the required ports: Procedure 7.2. Configuring Firewall on Microsoft Windows using PowerShell 1. Switch off firewall for debug purpose to determine whether the current network behavior is related to the firewall configuration. 28
33 Chapt er 7. Inst all Node wit h Basic Configurat ion Start-Process "$pshome\powershell.exe" -Verb Runas -ArgumentList '- command "NetSh Advfirewall set allprofiles state off"' 2. Allow UD P connections on port For example: Start-Process "$pshome\powershell.exe" -Verb Runas -ArgumentList '- command "NetSh Advfirewall firewall add rule name="udp Port 23364" dir=in action=allow protocol=udp localport=23364"' Start-Process "$pshome\powershell.exe" -Verb Runas -ArgumentList '- command "NetSh Advfirewall firewall add rule name="udp Port 23364" dir=out action=allow protocol=udp localport=23364"' Procedure 7.3. Configure the Firewall on Red Hat Enterprise Linux 7 to Allow mod_cluster Advertising To allow mod_cluster advertising on Red Hat Enterprise Linux 7, you must enable the UDP port in the firewal as follows: firewall-cmd --permanent --zone=public --add-port=23364/udp Note :23364 is the default address and port for mod_cluster balancer advertising UD P multicast. 29
34 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Chapter 8. Advanced Configuration 8.1. St at ic Proxy Configurat ion Server advertisement allows worker nodes to dynamically discover and register themselves with proxy servers. If UD P broadcast is not available or server advertisement is disabled then worker nodes must be configured with a static list of proxy server addresses and ports. Use the following procedure to configure a JBoss Enterprise Web Server worker node to operate with a static list of proxy servers. Prerequisites Ensure that the following prerequisites are satisfied before initiating the procedure. JBoss Enterprise Web Server worker node configured. See Section 7.1, Worker Node Requirements for directions. Understand the Proxy Configuration parameters discussed in the Java Properties Reference Appendix. Procedure 8.1. Configure Web Server Worker Node with Static Proxy List 1. Disable Dynamic Proxy Discovery Edit the file JBOSS_EWS_DIST/tomcat6/co nf/server. xml. and set the ad verti se property of the ModClusterListener to false: 2. Define a mod_cluster listener Add a <Listener> element to the server. xml file. <Listener classname="org.jboss.modcluster.container.catalina.standalone.modcl usterlistener" advertise="false" stickysession="true" stickysessionforce="false" stickysessionremove="true"/> 3. Create a static proxy server list Add a comma separated list of proxies in the form of IP_ADDRESS:PORT as the pro xyli st property of the ModClusterListener <Listener> element. Example 8.1. Example Static Proxy List <Listener classname="org.jboss.modcluster.container.catalina.standalone.mod ClusterListener" advertise="false" stickysession="true" stickysessionforce="false" stickysessionremove="true" proxylist=" :6666, :6666"/> 30
35 Chapt er 9. Configuring ht t pd for SSL connect ions Chapter 9. Configuring httpd for SSL connections 9.1. Configuring ht t pd for SSL connect ions Procedure 9.1. To configure httpd for ssl connections: 1. Install mod_ssl using the following command: # rpm -qa grep mod_ssl 2. Edit the HT T P D _HO ME/co nf. d /ssl. co nf file and add ServerName, SSLCertificateFile, and SSLCertificateKeyFile Example SSL configuration <VirtualHost _default_:443> #ServerName SSLCertificateFile /etc/pki/tls/certs/localhost.crt SSLCertificateKeyFile /etc/pki/tls/private/localhost.key a. ServerName must match the Common Name (CN) of the SSL certificate. If the ServerName does not match the CN, the client browsers display a message " domain mismatch". b. The SSLCertificateFile is the private key associate with the certificate (the public key). c. Verify that the Listen directive in the ssl. co nf file is correct as per your setup. For example, if an IP address is specified, it must match the IP address the httpd service is bound to. 3. Restart httpd using the following command: # service httpd restart 31
36 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Part III. Online Certificate Status Protocol 32
37 Chapt er 1 0. O nline Cert ificat e St at us Prot ocol Chapter 10. Online Certificate Status Protocol About Online Cert ificat e St at us Prot ocol Online Certificate Status Protocol is a technology which allows web browsers and web servers to communicate over a secured connection. In this the encrypted data is sent from one side and decrypted by the other side before processing. The web browser and the web server both encrypt and decrypt the data. During communication with a web server, the server presents a set of credentials in the form of certificate. The browser then checks the certificate for its validity and sends a request for certificate status information. The server sends back a status as current, expired, or unknown. The certificate specifies syntax for communication and contains control information such as start time and end time, address information to access an OCSP responder. The web server can use an OCSP responder, it has been configured for, or the one listed in the certificate, to check the status. OCSP allows a grace period for expired certificates which allows access to a server for a limited time before renewing the certificate. Online Certificate Status Protocol overcomes the limitation of older method, Certificate Revocation List (CRL). For more information on OCSP, see the Red Hat Certificate System Admin Guide and Using Online Cert ificat e St at us Prot ocol for ht t pd Before you use Online Certificate Status Protocol for https, ensure you have configured httpd for SSL connections (see Section 9.1, Configuring httpd for SSL connections ) as prerequisite. To use Online Certificate Status Protocol (OCSP) for httpd, ensure that Certificate Authority (CA) and OCSP Responder is configured properly. For more information on how to configure CA, see the Managing Certificates and Certificate Authorities section in the Linux Domain Identity, Authentication, and Policy Guide. For more information on how to configure OCSP Responder, see the Configuring OCSP Responders section in the Linux Domain Identity, Authentication, and Policy Guide. 33
38 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Ensure your CA is capable of issuing OSCP Certificates The Certificate Authority must be able to append the following attributes to the Certificate: [ usr_cert ]... authorityinfoaccess=ocsp;uri: [ v3_ocsp ] basicconstraints = CA:FALSE keyusage = nonrepudiation, digitalsignature, keyencipherment extendedkeyusage = OCSP Signing Note that HOST and PORT will need to be changed to match your responder that you set up later Configure ht t pd t o validat e OCSP cert ificat es Before configuring httpd to validate OCSP certificates ensure Certificate Authority (CA) and OCSP Responder is configured properly. Follow this procedure to perform OCSP validation of client certificates: Procedure To httpd to validate O CSP certificates Use the SSLOCSPEnable attribute to enable OCSP validation. # Require valid client certificates (mutual auth) SSLVerifyClient require SSLVerifyDepth 3 # Enable OCSP SSLOCSPEnable on SSLOCSPDefaultResponder SSLOCSPOverrideResponder on Verify t he configurat ion You can use OpenSSL to verify your configuration. # openssl ocsp -issuer cacert.crt -cert client.cert -url -CA ocsp_ca.cert -VAfile ocsp.cert 34
39 Chapt er 1 0. O nline Cert ificat e St at us Prot ocol Note -issuer is the Certificate Authority certificate. -cert is the Client certificate which you want to verify. -url is the http server validating Certificate (OCSP). -CA is the CA certificate for verifying the httpd server certificate. -VAfile is the OCSP Responder certificate. 35
40 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Part IV. Using Jsvc with JBoss Enterprise Web Server 36
41 Chapt er 1 1. Jsvc Chapter 11. Jsvc About Jsvc Jsvc is a set of libraries and applications that facilitates running Java applications on UNIX. In the context of JBoss Enterprise Web Server 2.1, Jsvc allows Tomcat to switch identities. Using Jsvc, Tomcat can perform root user level operations and then revert to a non-privileged user. Jsvc is mainly used for running Tomcat as a service in the background. For JBoss Enterprise Server 2.1, Jsvc files are available at the following locations: For Red Hat Enterprise Linux: jbo ss-ews-2. 1/extras/jsvc jbo ss-ews-2. 1/to mcat6 /bi n/jsvc jbo ss-ews-2. 1/to mcat7/bi n/jsvc Note Jsvc in Tomcat 6 and Tomcat 7 folders are symlinks to extra/jsvc in the following way:. /jbo ss-ews-2. 1/to mcat6 /bi n/jsvc ->.. /.. /extras/jsvc. /jbo ss-ews-2. 1/to mcat7/bi n/jsvc ->.. /.. /extras/jsvc For Solaris:. /jbo ss-ews-2. 1/sbi n/jsvc. /jbo ss-ews-2. 1/share/apache-to mcat /bi n/jsvc. /jbo ss-ews-2. 1/share/apache-to mcat /bi n/jsvc Note Jsvc in apache-tomcat and apache-tomcat folders are symlinks to sbi n/jsvc in the following way:. /jbo ss-ews-2. 1/share/apache-to mcat /bi n/jsvc ->.. /.. /.. /sbi n/jsvc. /jbo ss-ews-2. 1/share/apache-to mcat /bi n/jsvc ->.. /.. /.. /sbi n/jsvc Use Jsvc wit h T omcat 6 and 7 37
42 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Run Jsvc wit h T omcat 6 and 7 Run the following command to run Jsvc with Tomcat 6 and 7: /opt/jboss-ews-2.1/share/tomcat<version>/bin/daemon.sh start Configure Jsvc wit h T omcat 6 and 7 The following parameters can be set when running the d aemo n. sh script to run Jsvc: Table daemon.sh configuration parameters used by Tomcat 6 and 7 Parameter Name Environment Variab le Default Value --java-home JAVA_HOME Based on the value of the PATH variable. --catalina-home CATALINA_HOME D etermined by the location of the script. --catalina-base CATALINA_BASE Based on the value of the PATH variable. --catalina-pid - $CATALINA_BASE/logs /catalina-daemon.pid Description The Java home directory location. The Tomcat installation directory location. The directory that contains the specific configuration and set up information if multiple servers are using the same installation. The file where the process ID (PID) for the running instance of Tomcat is stored. --tomcat-user - to mcat The user Tomcat uses. --service-startwait-time - This is a wrapper to the --wait parameter. The --wait parameter accepts values in seconds. 38
43 Chapt er 1 2. Working Examples Chapter 12. Working Examples Complet e Working Example Following are a set of example configuration files for a complete working example. Load Balancer A proxy server listening on localhost: LoadModule slotmem_module modules/mod_slotmem.so LoadModule manager_module modules/mod_manager.so LoadModule proxy_cluster_module modules/mod_proxy_cluster.so LoadModule advertise_module modules/mod_advertise.so Listen :6666 <VirtualHost :6666> <Directory /> Order deny,allow Deny from all Allow from </Directory> KeepAliveTimeout 60 MaxKeepAliveRequests 0 ManagerBalancerName mycluster ServerAdvertise On AdvertiseFrequency 5 EnableMCPMReceive On <Location /mod_cluster-manager> SetHandler mod_cluster-manager Order deny,allow Deny from all Allow from </Location> </VirtualHost> Worker Configuration for Tomcat Edit the $C AT ALINA_HO ME/co nf/server. xml file and add the following listener element to configure the worker for Tomcat: <Listener classname="org.jboss.modcluster.container.catalina.standalone.modclusterl istener" advertise="true"/> Example iptables Firewall Rules Following are a set of example firewall rules using i ptabl es, for a cluster node on the /24 subnet. 39
44 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide /sbin/iptables -I INPUT 5 -p udp -d /24 -j ACCEPT -m comment -- comment "mod_cluster traffic" /sbin/iptables -I INPUT 6 -p udp -d /4 -j ACCEPT -m comment -- comment "JBoss Cluster traffic" /sbin/iptables -I INPUT 9 -p udp -s /24 -j ACCEPT -m comment - -comment "cluster subnet for inter-node communication" /sbin/iptables -I INPUT 10 -p tcp -s /24 -j ACCEPT -m comment --comment "cluster subnet for inter-node communication" /etc/init.d/iptables save mod_aut h_kerb Example About t he mod_aut h_kerb Example Use the prerequisites and subsequent procedure for a basic example about configuring and running Kerberos authentication with JBoss Enterprise Web Server' s httpd and mod_auth_kerb on Red Hat Enterprise Linux mod_aut h_kerb Example Prerequisit es The following is a list of prerequisites for the working example. Ensure that all prerequisites are met before attempting to use the example instructions. Install mod_auth_kerb on Red Hat Enterprise Linux. Install curl with GSS-negotiated support. Configure and run a Kerberos or LDAP server (for example ApacheDS) on the same host as your JBoss Enterprise Web Server. Create the following LD AP users: Create the user krbtg t: dn: uid=krbtgt,ou=users,dc=example,dc=com objectclass: top objectclass: person objectclass: inetorgperson objectclass: krb5principal objectclass: krb5kdcentry cn: KDC Service sn: Service uid: krbtgt userpassword: secret krb5principalname: krbtgt/example.com@ EXAMPLE.COM krb5keyversionnumber: 0 Create the user l d ap: dn: uid=ldap,ou=users,dc=example,dc=com 4 0
45 Chapt er 1 2. Working Examples objectclass: top objectclass: person objectclass: inetorgperson objectclass: krb5principal objectclass: krb5kdcentry cn: LDAP sn: Service uid: ldap userpassword: randall krb5principalname: ldap/localhost@ EXAMPLE.COM krb5keyversionnumber: 0 Create the user HT T P : dn: uid=http,ou=users,dc=example,dc=com objectclass: top objectclass: person objectclass: inetorgperson objectclass: krb5principal objectclass: krb5kdcentry cn: HTTP sn: Service uid: HTTP userpassword: secretpwd krb5principalname: HTTP/localhost@ EXAMPLE.COM krb5keyversionnumber: 0 Create user hnel so n (test user): dn: uid=hnelson,ou=users,dc=example,dc=com objectclass: top objectclass: person objectclass: inetorgperson objectclass: krb5principal objectclass: krb5kdcentry cn: Horatio Nelson sn: Nelson uid: hnelson userpassword: secret krb5principalname: hnelson@ EXAMPLE.COM krb5keyversionnumber: Configure t he Kerberos Client Use the following procedure to configure a Kerberos client for testing purposes: Procedure Configure the Kerberos Client 1. Create the Kerberos Configuration File Create the krb5. co nf configuration file in the /etc directory and add the following to the file: 4 1
46 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide [logging] default = FILE:/var/log/krb5libs.log kdc = FILE:/var/log/krb5kdc.log admin_server = FILE:/var/log/kadmind.log [libdefaults] default_realm = EXAMPLE.COM default_tgs_enctypes = des-cbc-md5,des3-cbc-sha1-kd default_tkt_enctypes = des-cbc-md5,des3-cbc-sha1-kd dns_lookup_realm = false dns_lookup_kdc = false allow_weak_crypto = yes ticket_lifetime = 24h renew_lifetime = 7d forwardable = yes [realms] EXAMPLE.COM = { kdc = localhost:60088 admin_server = localhost:60088 } [domain_realm].example.com = EXAMPLE.COM example.com = EXAMPLE.COM 2. Create a Key Tab Create a key tab in the /etc/httpd folder with the following contents: ktutil ktutil: addent -password -p HTTP/localhost@ EXAMPLE.COM -k 0 -e des-cbc-md5 Password for HTTP/localhost@ EXAMPLE.COM: secretpwd ktutil: list slot KVNO Principal HTTP/localhost@ EXAMPLE.COM ktutil: wkt krb5.keytab ktutil: quit Under root user: chgrp apache /etc/httpd/krb5.keytab chmod 640 /etc/httpd/krb5.keytab 3. Check the Hosts File Ensure that the following host configuration is included in the /etc/ho sts file: localhost Configure mod_aut h_kerb 4 2
47 Chapt er 1 2. Working Examples Configure mod_aut h_kerb Use the following procedure to configure mod_auth_kerb. As a prerequisite, ensure that the Kerberos Client is configured (see Section , Configure the Kerberos Client ). Procedure Configure mod_auth_kerb Create the auth_kerb. co nf configuration file in the /etc/httpd /co nf. d / folder and add the following information to the file: # # The mod_auth_kerb module implements Kerberos authentication over # HTTP, following the "Negotiate" protocol. # LoadModule auth_kerb_module modules/mod_auth_kerb.so <Location /kerberostest> # SSLRequireSSL AuthType Kerberos AuthName "Kerberos Login" KrbMethodNegotiate On KrbMethodK5Passwd Off KrbAuthRealms EXAMPLE.COM KrbServiceName HTTP Krb5KeyTab /etc/httpd/krb5.keytab require valid-user </Location> T est t he Kerberos Aut hent icat ion Use the following instructions to test the Kerberos authentication. As a prerequisite for this procedure, ensure that the Kerberos Client is configured (see Section , Configure the Kerberos Client ). Procedure Test the Kerberos Authentication 1. Create a Test Page Create a test page named auth_kerb_pag e. html in the $EWS_HO ME/httpd /www/html /kerbero stest/. 2. Add the Contents of the Test Page Add the following contents to the test page (auth_kerb_pag e. html : <html> <body> <h1>mod_auth_kerb successfully authenticated!</h1> </body> </html> 3. O ptional: Set Log Level 4 3
48 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Optionally, set the log level for debugging in the $EWS_HO ME/httpd /co nf/httpd. co nf file. 4. Start httpd As the root user, start the JBoss Enterprise Web Server httpd as follows: # $EWS_HOME/httpd/sbin/apachectl start 5. Test Authentication Test the authentication as follows: a. Initiate Kerberos authentication for the test user hnel so n: $ kinit hnelson b. View the details for the test user hnel so n: $ klist A result similar to the following appears: Ticket cache: FILE:/tmp/krb5cc_18602 Default principal: hnelson@ EXAMPLE.COM Valid starting Expires Service principal 06/03/13 14:21:13 06/04/13 14:21:13 krbtgt/example.com@ EXAMPLE.COM renew until 06/10/13 14:21:13 c. Testing httpd Kerberos Authentication Test httpd Kerberos authentication as follows: $ curl --negotiate -u : If working correctly, the following result appears: <html> <body> <h1>mod_auth_kerb successfully authenticated!</h1> </body> </html> See for more information about mod_auth_kerb. 4 4
49 Reference Reference A.1. workers.propert ies Apache httpd Server worker nodes are Servlet containers that are mapped to the mod_jk load balancer. The worker nodes are defined in HTTPD_DIST/co nf/wo rkers. pro perti es. This file specifies where the different Servlet containers are located, and how calls should be load-balanced across them. The wo rkers. pro perti es file contains two sections: G lobal Properties This section contains directives that apply to all workers. Worker Properties This section contains directives that apply to each individual worker. Each node is defined using the Worker Properties naming convention. The worker name can only contain alphanumeric characters, limited to [a-z][a-z][0-9][_-/]. The structure of a Worker Property is wo rker. worker_name. directive wo rker The constant prefix for all worker properties. worker_name The arbitrary name given to the worker. For example: node1, node_01, Node_1. directive The specific directive required. The main directives required to configure worker nodes are described below. Note For the full list of wo rker. pro perti es configuration directives, refer directly to the Apache Tomcat Connector - Reference Guide worker.properties G lobal Directives wo rker. list Specifies the list of worker names used by mod_jk. The workers in this list are available to map requests to. 4 5
50 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Note A single node configuration, which is not managed by a load balancer, must be set to wo rker. l i st= [worker name]. workers.properties Mandatory Directives type Specifies the type of worker, which determines the directives applicable to the worker. The default value is ajp13, which is the preferred worker type to select for communication between the web server and Apache httpd Server. Other values include ajp14, lb, status. For detailed information about ajp13, see The Apache Tomcat Connector - AJP Protocol Reference workers.properties Connection Directives host port The hostname or IP address of the worker. The worker node must support the ajp13 protocol stack. The default value is l o cal ho st. You can specify the port directive as part of the host directive by appending the port number after the hostname or IP address. For example: wo rker. no d e1. ho st= : or wo rker. no d e1. ho st= no d e1. exampl e. co m: The port number of the remote server instance listening for defined protocol requests. The default value is , which is the default listen port for AJP13 workers. If you are using AJP14 workers, this value must be set to ping_mode Specifies the conditions under which connections are probed for their current network health. The probe uses an empty AJP13 packet for the CPing, and expects a CPong in return, within a specified timeout. You specify the conditions by using a combination of the directive flags. The flags are not comma-separated. For example, a correct directive flag set is wo rker. no d e1. pi ng _mo d e= C I C (connect) Specifies the connection is probed once after connecting to the server. You specify the timeout using the connect_timeout directive, otherwise the value for ping_timeout is used. P (prepost) 4 6
51 Reference Specifies the connection is probed before sending each request to the server. You specify the timeout using the prepost_timeout directive, otherwise the value for ping_timeout is used. I (interval) A (all) ping_timeout Specifies the connection is probed during regular internal maintenance cycles. You specify the idle time between each interval using the connection_ping_interval directive, otherwise the value for ping_timeout is used. The most common setting, which specifies all directive flags are applied. For information about the *_timeout advanced directives, refer directly to Apache Tomcat Connector - Reference Guide. Specifies the time to wait for CPong answers to a CPing connection probe (see ping_mode). The default value is (milliseconds). worker.properties Load Balancing Directives lbfactor Specifies the load-balancing factor for an individual worker, and is only specified for a member worker of a load balancer. This directive defines the relative amount of HTTP request load distributed to the worker compared to other workers in the cluster. A common example where this directive applies is where you want to differentiate servers with greater processing power than others in the cluster. For example, if you require a worker to take three times the load than other workers, specify wo rker. worker name. l bfacto r= 3 balance_workers Specifies the worker nodes that the load balancer must manage. The directive can be used multiple times for the same load balancer, and consists of a comma-separated list of worker names as specified in the workers.properties file. st icky_sessio n Specifies whether requests for workers with SESSION IDs are routed back to the same worker. The default is 0 (false). When set to 1 (true), load balancer persistence is enabled. For example, if you specify wo rker. l o ad bal ancer. sti cky_sessi o n= 0, each request is load balanced between each node in the cluster. In other words, different requests for the same session will go to different servers based on server load. If wo rker. l o ad bal ancer. sti cky_sessi o n= 1, each session is persisted (locked) to one server until the session is terminated, providing that server is available. 4 7
52 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Java Properties Reference B.1. Proxy Configurat ion The configuration values are sent to proxies under the following conditions: D uring server startup When a proxy is detected through the advertise mechanism D uring error recovery, when a proxy' s configuration is reset. Table B.1. Proxy Configuration Values for Tomcat Value Default Description stickysession true Specifies whether subsequent requests for a given session should be routed to the same node, if possible. stickysessionremove false Specifies whether the httpd proxy should remove session stickiness if the balancer is unable to route a request to the node to which it is stuck. This property is ignored if stickysession is fal se. stickysessionforce true Specifies whether the httpd proxy should return an error if the balancer is unable to route a request to the node to which it is stuck. This property is ignored if stickysession is fal se. workertimeout -1 Specifies the number of seconds to wait for a worker to become available to handle a request. When all the workers of a balancer are unusable, mo d _cl uster will retry after a while (workertimeout/100) to find an usable worker. A value of -1 indicates that the httpd will not wait for a worker to be available and will return an error if no workers are available. maxattempts 1 Specifies the number of times the httpd proxy will attempt to send a given request to a worker before aborting. The minimum value is 1: try once before aborting. flushpackets false Specifies whether packet flushing is enabled or disabled. 4 8
53 Java Propert ies Reference Value Default Description flushwait -1 Specifies the time to wait before flushing packets. A value of -1 means wait forever. ping 10 Time to wait (in seconds) for a pong answer to a ping. smax - Specifies the soft maximum idle connection count. The maximum value is determined by the httpd thread configuration (ThreadsPerChild or 1). ttl 60 Specifies the time (in seconds) idle connections persist, above the smax threshold. nodetimeout -1 Specifies the time (in seconds) mo d _cl uster waits for the back-end server response before returning an error. mo d _cl uster always uses a cping/cpong before forwarding a request. The connectiontimeout value used by mo d _cl uster is the ping value. balancer mycluster Specifies the name of the loadbalancer. loadbalancinggroup - Specifies the load balancing among jvmroutes within the same load balancing group. A loadbalancinggroup is conceptually equivalent to a mod_jk domain directive. B.2. mod_clust er Proxy and Proxy Discovery Configurat ion At t ribut es The following tables contain attributes and information about mod_cluster proxy and proxy discovery configuration attributes. Table B.2. mod_cluster Proxy Discovery Configuration Attributes Attribute Property Default Value proxy-list proxylist - proxy-url proxyurl - advertise advertise true advertise-security-key advertisesecuritykey - excluded-contexts excludedcontexts - auto-enable-contexts autoenablecontexts true stop-context-timeout stopcontexttimeout 10 seconds (in seconds) socket-timeout nodetimeout 20 seconds (in milliseconds) 4 9
54 Red Hat JBoss Web Server 2.1 HT T P Connect ors Load Balancing G uide Note When nodetimeout is not defined the ProxyTimeout directive, Proxy is used. If ProxyTimeout is not defined the server timeout (Timeout) is used (default 300 seconds). nodetimeout, ProxyTimeout or Timeout is set at the socket level. Table B.3. mod_cluster Proxy Configuration Attributes Attribute Property Default Value sticky-session stickysession true sticky-session-remove stickysessionremove false sticky-session-force stickysessionforce true node-timeout workertimeout -1 max-attempts maxattempts 1 flush-packets flushpackets false flush-wait flushwait -1 ping ping 10 smax smax -1 (uses the default value) ttl ttl -1 (uses the default value) domain loadbalancinggroup - load-balancing-group loadbalancinggroup - B.3. Load Configurat ion The following table contains additional configuration properties that are used when mo d _cl uster is configured with Tomcat: Table B.4. Load Configuration for Tomcat Attribute Default Value Description loadmetricclass org.jboss.modcluster.load.metri c.impl.busyconnectorsloadmet ric This is the class name of an object that is implementing org.jboss.load.metric.loadmetri c. loadmetriccapacity 1 This is the capacity of the load metric defined via the loadmetricclass property. loadhistory 9 This is the number of historic load values that must be considered in the load balance factor computation. loadd ecayfactor 2 This is the factor by which the historic load values decrease in significance. 50
55 Revision Hist ory Revision History Revision Wed Feb Lucas Costi Updated the Product Name to reflect the new name grouping for the product. No update was made to details in the guide. Revision Tue O ct Husnain Husnain Ali BZ : Added a note for clarity. Revision Tue Aug Rakesh G hatvisave BZ : Commented out EAP subsystem topics. BZ : Removed proxy config EAP table, domain attribute and fixed a typo. Revision Mon Jul Mandar Joshi BZ : Updated version number from 2.0 to 2.1 in the guide. BZ : Added topics for using WebSocket on tomcat BZ : Ensured that we have consistent style in the docs BZ : Corrected the typo in section " Static Proxy Configuration." BZ : Updated the property name in table B.1 51
Red Hat JBoss Web Server 3 HTTP Connectors and Load Balancing Guide
Red Hat JBoss Web Server 3 HTTP Connectors and Load Balancing Guide HTTP load balancing for Red Hat JBoss Web Server Red Hat Customer Content Services Red Hat JBoss Web Server 3 HTTP Connectors and Load
JBoss Enterprise Application Platform 5 HTTP Connectors Load Balancing Guide
JBoss Enterprise Application Platform 5 HTTP Connectors Load Balancing Guide HTTP load-balancing for the JBoss Enterprise Application Platform Jared Morgan Joshua Wulf Laura Bailey Samuel Mendenhall HTTP
Red Hat CloudForms 3.2 NetApp Storage Integration Guide
Red Hat CloudForms 3.2 NetApp Storage Integration Guide Technology preview feature that enables you to collect NetApp Storage data using CloudForms Management Engine Red Hat CloudForms Documentation Team
Red Hat Enterprise Virtualization 3.0 User Portal Guide. Accessing and Using Virtual Machines from the User Portal Edition 1
Red Hat Enterprise Virtualization 3.0 User Portal Guide Accessing and Using Virtual Machines from the User Portal Edition 1 Cheryn Tan David Jorm Red Hat Enterprise Virtualization 3.0 User Portal Guide
Red Hat Cloud Infrastructure 5 Release Notes
Red Hat Cloud Infrastructure 5 Release Notes Release Notes for Red Hat Cloud Infrastructure 5.0 Red Hat Cloud Infrastructure Documentation Team Red Hat Cloud Infrastructure 5 Release Notes Release Notes
Red Hat Customer Portal 1 Managing User Access to the Red Hat Customer Portal and the Red Hat Network Application
Red Hat Customer Portal 1 Managing User Access to the Red Hat Customer Portal and the Red Hat Network Application Creating and Configuring User Accounts Edition 4 Red Hat Global Support Services Red Hat
Red Hat JBoss Core Services Apache HTTP Server 2.4 Apache HTTP Server Installation Guide
Red Hat JBoss Core Services Apache HTTP Server 2.4 Apache HTTP Server Installation Guide For use with Red Hat JBoss middleware products. Red Hat Customer Content Services Red Hat JBoss Core Services Apache
Red Hat Enterprise Virtualization 3.6- Beta Java SDK Guide
Red Hat Enterprise Virtualization 3.6- Beta Java SDK Guide Using the Red Hat Enterprise Virtualization Java SDK Red Hat Enterprise Virtualization Documentation Team Red Hat Enterprise Virtualization 3.6-Beta
Guide to Red Hat Enterprise Linux 6 Software Collections
Red Hat Enterprise Linux 6 Software Collections Guide A guide to Software Collections for Red Hat Enterprise Linux Petr Kovář Software Collections Guide Draft Red Hat Enterprise Linux 6 Software Collections
JBoss Developer Studio 3.0
JBoss Developer Studio 3.0 JBoss Web Services User Guide 1 JBoss Developer Studio 3.0 JBoss Web Services User Guide Provides information relating to the JBoss Web Services module. Edition 1.0 Denny Xu
JBoss Developer Studio 6.0
JBoss Developer Studio 6.0 OpenShift Tools Reference Guide 1 JBoss Developer Studio 6.0 OpenShift Tools Reference Guide Provides information about the use of the JBoss Developer Studio with the Red Hat
Red Hat CloudForms 3.1 Management Engine 5.3 OpenShift Enterprise Deployment Guide
Red Hat CloudForms 3.1 Management Engine 5.3 OpenShift Enterprise Deployment Guide Instructions for deploying OpenShift Enterprise with CloudForms Management Engine CloudForms Documentation Team Red Hat
Red Hat Enterprise Linux OpenStack Platform 7 OpenStack Data Processing
Red Hat Enterprise Linux OpenStack Platform 7 OpenStack Data Processing Manually provisioning and scaling Hadoop clusters in Red Hat OpenStack OpenStack Documentation Team Red Hat Enterprise Linux OpenStack
JBoss Enterprise Application Platform 5
JBoss Enterprise Application Platform 5 HTTP Connectors Load Balancing Guide 1 JBoss Enterprise Application Platform 5 HTTP Connectors Load Balancing Guide HT T P load-balancing for JBoss Enterprise Application
Red Hat Cloud Infrastructure 5 Introduction to Red Hat Cloud Infrastructure Architecture
Red Hat Cloud Infrastructure 5 Introduction to Red Hat Cloud Infrastructure Architecture Intelligently Installing Red Hat Cloud Infrastructure Red Hat Cloud Infrastructure Documentation Team Red Hat Cloud
Red Hat Enterprise Linux 6 Cluster Suite Overview. Overview of the High Availability Add- On for Red Hat Enterprise Linux 6
Red Hat Enterprise Linux 6 Cluster Suite Overview Overview of the High Availability Add- On for Red Hat Enterprise Linux 6 Cluster Suite Overview Red Hat Enterprise Linux 6 Cluster Suite Overview Overview
mod_cluster A new httpd-based load balancer Brian Stansberry JBoss, a division of Red Hat
mod_cluster A new httpd-based load balancer Brian Stansberry JBoss, a division of Red Hat Agenda Who is Brian Stansberry? Principal Software Engineer at Red Hat Technical Lead for JBoss Application Server
Fuse ESB Enterprise 7.0 Installation Guide
Fuse ESB Enterprise 7.0 Installation Guide Installing and uninstalling Fuse ESB Enterprise 7.0 Edition 1 Red Hat Inc. Fuse ESB Enterprise 7.0 Installation Guide Installing and uninstalling Fuse ESB Enterprise
JBoss Enterprise Application Platform 5 HTTP Connectors Load Balancing Guide
JBoss Enterprise Application Platform 5 HTTP Connectors Load Balancing Guide HTTP load-balancing for JBoss Enterprise Application Platform Edition 5.2.0 Jared Morgan Joshua Wulf Laura Bailey Samuel Mendenhall
Apache Tomcat. Load-balancing and Clustering. Mark Thomas, 20 November 2014. 2014 Pivotal Software, Inc. All rights reserved.
2 Apache Tomcat Load-balancing and Clustering Mark Thomas, 20 November 2014 Introduction Apache Tomcat committer since December 2003 [email protected] Tomcat 8 release manager Member of the Servlet, WebSocket
HP Device Manager 4.6
Technical white paper HP Device Manager 4.6 Installation and Update Guide Table of contents Overview... 3 HPDM Server preparation... 3 FTP server configuration... 3 Windows Firewall settings... 3 Firewall
Red Hat Satellite 5.6 Proxy Installation Guide
Red Hat Satellite 5.6 Proxy Installation Guide Configuring, registering, and updating your Red Hat Enterprise Linux clients with Red Hat Satellite Proxy Server Edition 1 John Ha Lana Brindley Daniel Macpherson
DEPLOYMENT GUIDE Version 1.1. Deploying F5 with Oracle Application Server 10g
DEPLOYMENT GUIDE Version 1.1 Deploying F5 with Oracle Application Server 10g Table of Contents Table of Contents Introducing the F5 and Oracle 10g configuration Prerequisites and configuration notes...1-1
UNICORE GATEWAY. UNICORE Team. Document Version: 1.0.1 Component Version: 1.4.0 Date: 19 Apr 2011
UNICORE Gateway UNICORE GATEWAY UNICORE Team Document Version: 1.0.1 Component Version: 1.4.0 Date: 19 Apr 2011 This work is co-funded by the EC EMI project under the FP7 Collaborative Projects Grant Agreement
DEPLOYMENT GUIDE Version 1.0. Deploying the BIG-IP LTM with Apache Tomcat and Apache HTTP Server
DEPLOYMENT GUIDE Version 1.0 Deploying the BIG-IP LTM with Apache Tomcat and Apache HTTP Server Table of Contents Table of Contents Deploying the BIG-IP LTM with Tomcat application servers and Apache web
Red Hat Subscription Asset Manager 1.2 Installation Guide. Installing and Using Red Hat Subscription Asset Manager Edition 3
Red Hat Subscription Asset Manager 1.2 Installation Guide Installing and Using Red Hat Subscription Asset Manager Edition 3 Sarah Chua Lana Brindley Red Hat Subscription Asset Manager 1.2 Installation
http://docs.trendmicro.com
Trend Micro Incorporated reserves the right to make changes to this document and to the products described herein without notice. Before installing and using the product, please review the readme files,
Apache and Tomcat Clustering Configuration Table of Contents
Apache and Tomcat Clustering Configuration Table of Contents INTRODUCTION REVISION HISTORY DOWNLOAD AND INSTALL JDK DOWNLOAD AND INSTALL APACHE WEB SERVER (HTTPD) DOWNLOAD AND INSTALL TOMCAT SERVER APACHE
JBoss Developer Studio 3.0
JBoss Developer Studio 3.0 Struts Tools Reference Guide 1 JBoss Developer Studio 3.0 Struts Tools Reference Guide Provides information relating to the Struts T ools module. Edition 1.0 Anatoly Fedosik
UNICORE GATEWAY. UNICORE Team. Document Version: 1.0.3 Component Version: 6.4.2 Date: 19 12 2011
UNICORE Gateway UNICORE GATEWAY UNICORE Team Document Version: 1.0.3 Component Version: 6.4.2 Date: 19 12 2011 This work is co-funded by the EC EMI project under the FP7 Collaborative Projects Grant Agreement
Red Hat Enterprise Linux 6 Load Balancer Administration. Load Balancer Add-on for Red Hat Enterprise Linux Edition 6
Red Hat Enterprise Linux 6 Load Balancer Administration Load Balancer Add-on for Red Hat Enterprise Linux Edition 6 Red Hat Enterprise Linux 6 Load Balancer Administration Load Balancer Add-on for Red
DEPLOYMENT GUIDE Version 1.2. Deploying F5 with Oracle E-Business Suite 12
DEPLOYMENT GUIDE Version 1.2 Deploying F5 with Oracle E-Business Suite 12 Table of Contents Table of Contents Introducing the BIG-IP LTM Oracle E-Business Suite 12 configuration Prerequisites and configuration
Red Hat JBoss Developer Studio 7.0 User Guide
Red Hat JBoss Developer Studio 7.0 User Guide Information about using the plug-ins comprising JBoss Developer Studio Red Hat Documentation Team Red Hat JBoss Developer Studio 7.0 User Guide Information
Setting Up B2B Data Exchange for High Availability in an Active/Active Configuration
Setting Up B2B Data Exchange for High Availability in an Active/Active Configuration 2010 Informatica Abstract This document explains how to install multiple copies of B2B Data Exchange on a single computer.
http://docs.trendmicro.com
Trend Micro Incorporated reserves the right to make changes to this document and to the products described herein without notice. Before installing and using the product, please review the readme files,
Red Hat Satellite 5.6 Client Configuration Guide
Red Hat Satellite 5.6 Client Configuration Guide Configuring, registering, and updating your Red Hat Enterprise Linux clients with Red Hat Satellite Edition 1 John Ha Lana Brindley Daniel Macpherson Athene
JBoss Developer Studio 3.0
JBoss Developer Studio 3.0 ESB Tools Reference Guide 1 JBoss Developer Studio 3.0 ESB Tools Reference Guide Provides information relating to the ESB T ools set. Edition 1.0 Svetlana Mukhina [email protected]
Red Hat Cloud Infrastructure 6 Getting Started with the Red Hat Cloud Infrastructure Unified Installer
Red Hat Cloud Infrastructure 6 Getting Started with the Red Hat Cloud Infrastructure Unified Installer Deploying the RHCI Unified Installer to Begin Deployment of a Private Infrastructure as a Service
Red Hat Subscription Management All Subscription Docs Quick Registration for RHEL
Red Hat Subscription Management All Subscription Docs Quick Registration for RHEL quickly register and subscribe Red Hat Enterprise Linux systems Edition 4 John Ha Deon Ballard Red Hat Subscription Management
24x7 Scheduler Multi-platform Edition 5.2
24x7 Scheduler Multi-platform Edition 5.2 Installing and Using 24x7 Web-Based Management Console with Apache Tomcat web server Copyright SoftTree Technologies, Inc. 2004-2014 All rights reserved Table
EMC Data Protection Search
EMC Data Protection Search Version 1.0 Security Configuration Guide 302-001-611 REV 01 Copyright 2014-2015 EMC Corporation. All rights reserved. Published in USA. Published April 20, 2015 EMC believes
Configuring IIS 6 to Load Balance a JBoss 4.2 Adobe LiveCycle Enterprise Suite 2 (ES2) Cluster
Adobe LiveCycle ES2 Technical Guide John C. Cummins, Technical Architect, Adobe Professional Services Public Sector Configuring IIS 6 to Load Balance a JBoss 4.2 Adobe LiveCycle Enterprise Suite 2 (ES2)
SWsoft, Inc. Plesk Firewall. Administrator's Guide
SWsoft, Inc. Plesk Firewall Administrator's Guide (c) 1999-2004 ISBN: N/A SWsoft Inc 13800 Coppermine Drive Suite 112 Herndon VA 20171 USA Tel: +1 (703) 815 5670 Fax: +1 (703) 815 5675 Copyright 1999-2004
Red Hat Enterprise Virtualization 3.2 Administration Guide
Red Hat Enterprise Virtualization 3.2 Administration Guide Administrating Red Hat Enterprise Virtualization Environments. Edition 1 Jodi Biddle Andrew Burden Zac Dover Steve Gordon Tim Hildred Dan Macpherson
OnCommand Performance Manager 1.1
OnCommand Performance Manager 1.1 Installation and Setup Guide For Red Hat Enterprise Linux NetApp, Inc. 495 East Java Drive Sunnyvale, CA 94089 U.S. Telephone: +1 (408) 822-6000 Fax: +1 (408) 822-4501
Configuring Nex-Gen Web Load Balancer
Configuring Nex-Gen Web Load Balancer Table of Contents Load Balancing Scenarios & Concepts Creating Load Balancer Node using Administration Service Creating Load Balancer Node using NodeCreator Connecting
User Manual. Onsight Management Suite Version 5.1. Another Innovation by Librestream
User Manual Onsight Management Suite Version 5.1 Another Innovation by Librestream Doc #: 400075-06 May 2012 Information in this document is subject to change without notice. Reproduction in any manner
Red Hat Enterprise Linux 4 Virtual Server Administration
Red Hat Enterprise Linux 4 Virtual Server Administration Linux Virtual Server (LVS) for Red Hat Enterprise Linux Edition 1.0 Landmann Red Hat Enterprise Linux 4 Virtual Server Administration Linux Virtual
Configuration Worksheets for Oracle WebCenter Ensemble 10.3
Configuration Worksheets for Oracle WebCenter Ensemble 10.3 This document contains worksheets for installing and configuring Oracle WebCenter Ensemble 10.3. Print this document and use it to gather the
Intro to Load-Balancing Tomcat with httpd and mod_jk
Intro to Load-Balancing Tomcat with httpd and mod_jk Christopher Schultz Chief Technology Officer Total Child Health, Inc. * Slides available on the Linux Foundation / ApacheCon2015 web site and at http://people.apache.org/~schultz/apachecon
Dell SupportAssist Version 2.0 for Dell OpenManage Essentials Quick Start Guide
Dell SupportAssist Version 2.0 for Dell OpenManage Essentials Quick Start Guide Notes, Cautions, and Warnings NOTE: A NOTE indicates important information that helps you make better use of your computer.
TIBCO Runtime Agent Domain Utility User s Guide Software Release 5.8.0 November 2012
TIBCO Runtime Agent Domain Utility User s Guide Software Release 5.8.0 November 2012 Important Information SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED OR BUNDLED TIBCO
JAMF Software Server Installation Guide for Linux. Version 8.6
JAMF Software Server Installation Guide for Linux Version 8.6 JAMF Software, LLC 2012 JAMF Software, LLC. All rights reserved. JAMF Software has made all efforts to ensure that this guide is accurate.
Sophos UTM. Remote Access via PPTP. Configuring UTM and Client
Sophos UTM Remote Access via PPTP Configuring UTM and Client Product version: 9.000 Document date: Friday, January 11, 2013 The specifications and information in this document are subject to change without
Red Hat JBoss BPM Suite 6.1 IBM WebSphere Installation and Configuration Guide
Red Hat JBoss BPM Suite 6.1 IBM WebSphere Installation and Configuration Guide For Red Hat JBoss BPM Suite Red Hat Content Services Red Hat JBoss BPM Suite 6.1 IBM WebSphere Installation and Configuration
BlackBerry Enterprise Service 10. Version: 10.2. Configuration Guide
BlackBerry Enterprise Service 10 Version: 10.2 Configuration Guide Published: 2015-02-27 SWD-20150227164548686 Contents 1 Introduction...7 About this guide...8 What is BlackBerry Enterprise Service 10?...9
Infor Web UI High Availability Deployment
Infor Web UI High Availability Deployment Copyright 2012 Infor Important Notices The material contained in this publication (including any supplementary information) constitutes and contains confidential
Introduction to Mobile Access Gateway Installation
Introduction to Mobile Access Gateway Installation This document describes the installation process for the Mobile Access Gateway (MAG), which is an enterprise integration component that provides a secure
EQUELLA. Clustering Configuration Guide. Version 6.0
EQUELLA Clustering Configuration Guide Version 6.0 Document History Document No. Reviewed Finalised Published 1 17/10/2012 17/10/2012 17/10/2012 October 2012 edition. Information in this document may change
Interstage Application Server V7.0 Single Sign-on Operator's Guide
Interstage Application Server V7.0 Single Sign-on Operator's Guide Single Sign-on Operator's Guide - Preface Trademarks Trademarks of other companies are used in this user guide only to identify particular
Connection Broker Managing User Connections to Workstations, Blades, VDI, and more. Security Review
Connection Broker Managing User Connections to Workstations, Blades, VDI, and more Security Review Version 8.1 October 21, 2015 Contacting Leostream Leostream Corporation http://www.leostream.com 465 Waverley
EQUELLA. Clustering Configuration Guide. Version 6.2
EQUELLA Clustering Configuration Guide Version 6.2 Document History Document No. Reviewed Finalised Published 1 18/03/2014 18/03/2014 18/03/2014 March 2014 edition. Information in this document may change
DEPLOYMENT GUIDE Version 2.1. Deploying F5 with Microsoft SharePoint 2010
DEPLOYMENT GUIDE Version 2.1 Deploying F5 with Microsoft SharePoint 2010 Table of Contents Table of Contents Introducing the F5 Deployment Guide for Microsoft SharePoint 2010 Prerequisites and configuration
Administering mod_jk. To Enable mod_jk
The value of each redirect_n property has two components which can be specified in any order: The first component, from, specifies the prefix of the requested URI to match. The second component, url-prefix,
1. Configuring Apache2 Load Balancer with failover mechanism
1. Configuring Apache2 Load Balancer with failover mechanism node01 Messaging Part 1 Instance 1 for e.g.: 192.168.0.140 192.168.0.2 node02 Messaging Part 1 Instance 2 for e.g.: 192.168.0.90 Configuring
Deploying the BIG-IP System v10 with Oracle Application Server 10g R2
DEPLOYMENT GUIDE Deploying the BIG-IP System v10 with Oracle Application Server 10g R2 Version 1.1 Table of Contents Table of Contents Deploying the BIG-IP system v10 with Oracle s Application Server 10g
Discovery, Reporting, Capacity and Utilization Edition 1. ManageIQ Documentation Team
ManageIQ Anand Insight Guide Discovery, Reporting, Capacity and Utilization Edition 1 ManageIQ Documentation Team ManageIQ Anand Insight Guide Discovery, Reporting, Capacity and Utilization Edition 1
NEFSIS DEDICATED SERVER
NEFSIS TRAINING SERIES Nefsis Dedicated Server version 5.2.0.XXX (DRAFT Document) Requirements and Implementation Guide (Rev5-113009) REQUIREMENTS AND INSTALLATION OF THE NEFSIS DEDICATED SERVER Nefsis
Red Hat Enterprise Linux 7 High Availability Add-On Overview
Red Hat Enterprise Linux 7 High Availability Add-On Overview Overview of the High Availability Add-On for Red Hat Enterprise Linux 7 Red Hat Engineering Content Services Red Hat Enterprise Linux 7 High
DEPLOYMENT GUIDE DEPLOYING F5 WITH SAP NETWEAVER AND ENTERPRISE SOA
DEPLOYMENT GUIDE DEPLOYING F5 WITH SAP NETWEAVER AND ENTERPRISE SOA Table of Contents Table of Contents Introducing the F5 Deployment Guide for SAP NetWeaver and Enterprise SOA Prerequisites and configuration
Deploying the BIG-IP LTM system and Microsoft Windows Server 2003 Terminal Services
Deployment Guide Deploying the BIG-IP System with Microsoft Windows Server 2003 Terminal Services Deploying the BIG-IP LTM system and Microsoft Windows Server 2003 Terminal Services Welcome to the BIG-IP
Example Apache Server Installation for Centricity Electronic Medical Record browser & mobile access
GE Healthcare Introduction Example Apache Server Installation for Centricity Electronic Medical Record rowser & moile access These instructions descrie how to install and configure an Apache server to
Red Hat Directory Server 8.2 Using the Directory Server Console
Red Hat Directory Server 8.2 Using the Directory Server Console Managing users and access within the Red Hat Directory Server 8.2 console Edition 8.2.1 Landmann Red Hat Directory Server 8.2 Using the Directory
Introducing the BIG-IP and SharePoint Portal Server 2003 configuration
Deployment Guide Deploying Microsoft SharePoint Portal Server 2003 and the F5 BIG-IP System Introducing the BIG-IP and SharePoint Portal Server 2003 configuration F5 and Microsoft have collaborated on
WEBCONNECT INSTALLATION GUIDE. Version 1.96
WEBCONNECT INSTALLATION GUIDE Version 1.96 Copyright 1981-2015 Netop Business Solutions A/S. All Rights Reserved. Portions used under license from third parties. Please send any comments to: Netop Business
Integration Guide. SafeNet Authentication Service. Oracle Secure Desktop Using SAS RADIUS OTP Authentication
SafeNet Authentication Service Integration Guide Oracle Secure Desktop Using SAS RADIUS OTP Authentication Technical Manual Template Release 1.0, PN: 000-000000-000, Rev. A, March 2013, Copyright 2013
SOA Software API Gateway Appliance 7.1.x Administration Guide
SOA Software API Gateway Appliance 7.1.x Administration Guide Trademarks SOA Software and the SOA Software logo are either trademarks or registered trademarks of SOA Software, Inc. Other product names,
Red Hat Enterprise Virtualization 3.0 Quick Start Guide
Red Hat Enterprise Virtualization 3.0 Quick Start Guide Getting Started with Red Hat Enterprise Virtualization Edition 1 Cheryn Tan Red Hat Enterprise Virtualization 3.0 Quick Start Guide Getting Started
Web Application Firewall
Web Application Firewall Getting Started Guide August 3, 2015 Copyright 2014-2015 by Qualys, Inc. All Rights Reserved. Qualys and the Qualys logo are registered trademarks of Qualys, Inc. All other trademarks
JBoss Enterprise Application Platform 6
JBoss Enterprise Application Platform 6 Administration and Configuration Guide 1 JBoss Enterprise Application Platform 6 Administration and Configuration Guide For Use with JBoss Enterprise Application
F-Secure Messaging Security Gateway. Deployment Guide
F-Secure Messaging Security Gateway Deployment Guide TOC F-Secure Messaging Security Gateway Contents Chapter 1: Deploying F-Secure Messaging Security Gateway...3 1.1 The typical product deployment model...4
Connection Broker Managing User Connections to Workstations, Blades, VDI, and More. Quick Start with Microsoft Hyper-V
Connection Broker Managing User Connections to Workstations, Blades, VDI, and More Quick Start with Microsoft Hyper-V Version 8.1 October 21, 2015 Contacting Leostream Leostream Corporation http://www.leostream.com
FileMaker Server 11. FileMaker Server Help
FileMaker Server 11 FileMaker Server Help 2010 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker is a trademark of FileMaker, Inc. registered
Unifying Information Security. Implementing TLS on the CLEARSWIFT SECURE Email Gateway
Unifying Information Security Implementing TLS on the CLEARSWIFT SECURE Email Gateway Contents 1 Introduction... 3 2 Understanding TLS... 4 3 Clearswift s Application of TLS... 5 3.1 Opportunistic TLS...
DEPLOYMENT GUIDE Version 1.1. Deploying the BIG-IP LTM v10 with Citrix Presentation Server 4.5
DEPLOYMENT GUIDE Version 1.1 Deploying the BIG-IP LTM v10 with Citrix Presentation Server 4.5 Table of Contents Table of Contents Deploying the BIG-IP system v10 with Citrix Presentation Server Prerequisites
DameWare Server. Administrator Guide
DameWare Server Administrator Guide About DameWare Contact Information Team Contact Information Sales 1.866.270.1449 General Support Technical Support Customer Service User Forums http://www.dameware.com/customers.aspx
Configuring Apache HTTP Server With Pramati
Configuring Apache HTTP Server With Pramati 45 A general practice often seen in development environments is to have a web server to cater to the static pages and use the application server to deal with
Integrated SSL Scanning
Software Version 9.0 Copyright Copyright 1996-2008. Finjan Software Inc. and its affiliates and subsidiaries ( Finjan ). All rights reserved. All text and figures included in this publication are the exclusive
Product Manual. MDM On Premise Installation Version 8.1. Last Updated: 06/07/15
Product Manual MDM On Premise Installation Version 8.1 Last Updated: 06/07/15 Parallels IP Holdings GmbH Vordergasse 59 8200 Schaffhausen Switzerland Tel: + 41 52 632 0411 Fax: + 41 52 672 2010 www.parallels.com
FileMaker Server 14. FileMaker Server Help
FileMaker Server 14 FileMaker Server Help 2007 2015 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker and FileMaker Go are trademarks
Red Hat Enterprise Linux 6 Load Balancer Administration. Load Balancer Add-on for Red Hat Enterprise Linux Edition 6
Red Hat Enterprise Linux 6 Load Balancer Administration Load Balancer Add-on for Red Hat Enterprise Linux Edition 6 Red Hat Enterprise Linux 6 Load Balancer Administration Load Balancer Add-on for Red
Cloud Services. Introduction...2 Overview...2. Security considerations... 2. Installation...3 Server Configuration...4
Contents Introduction...2 Overview...2 Security considerations... 2 Installation...3 Server Configuration...4 Management Client Connection...4 General Settings... 4 Enterprise Architect Client Connection
Installing and Configuring vcloud Connector
Installing and Configuring vcloud Connector vcloud Connector 2.7.0 This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new
JAMF Software Server Installation and Configuration Guide for Linux. Version 9.2
JAMF Software Server Installation and Configuration Guide for Linux Version 9.2 JAMF Software, LLC 2013 JAMF Software, LLC. All rights reserved. JAMF Software has made all efforts to ensure that this guide
Kony MobileFabric. Sync Windows Installation Manual - WebSphere. On-Premises. Release 6.5. Document Relevance and Accuracy
Kony MobileFabric Sync Windows Installation Manual - WebSphere On-Premises Release 6.5 Document Relevance and Accuracy This document is considered relevant to the Release stated on this title page and
Core Protection for Virtual Machines 1
Core Protection for Virtual Machines 1 Comprehensive Threat Protection for Virtual Environments. Installation Guide e Endpoint Security Trend Micro Incorporated reserves the right to make changes to this
MIGS Payment Client Installation Guide. EGate User Manual
MIGS Payment Client Installation Guide EGate User Manual April 2004 Copyright The information contained in this manual is proprietary and confidential to MasterCard International Incorporated (MasterCard)
SWsoft, Inc. Plesk File Server. Administrator's Guide. Plesk 7.5 Reloaded
SWsoft, Inc. Plesk File Server Administrator's Guide Plesk 7.5 Reloaded (c) 1999-2005 ISBN: N/A SWsoft Inc 13755 Sunrise Valley Drive Suite 325 Herndon VA 20171 USA Tel: +1 (703) 815 5670 Fax: +1 (703)
FileMaker Server 15. Getting Started Guide
FileMaker Server 15 Getting Started Guide 2007 2016 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker and FileMaker Go are trademarks
