Configuring HP WebQoS on HP-UX Edition 3 Manufacturing Part Number: B8311-90004 E0900 U.S.A. © Copyright 2000, Hewlett-Packard Company. .
Legal Notices The information in this document is subject to change without notice. Hewlett-Packard makes no warranty of any kind with regard to this manual, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. Hewlett-Packard shall not be held liable for errors contained herein or direct, indirect, special, incidental or consequential damages in connection with the furnishing, performance, or use of this material. Warranty.
Contents 1. Understanding HP WebQoS The Role and Benefits of HP WebQoS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . WebQoS Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Request Classifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contents Adding a System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adding a Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . To Configure Service Statistics Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . To Configure Service Level Objectives for the Service . . . . . . . . . . . . . . . . . . . . . .
Contents Understanding the Service Level Objectives View . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 Understanding the History Log View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 Filtering SLOs and Thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Filtering the History Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Displaying Site Statistics . . . . . .
Contents Troubleshooting WebQoS Processes on HP-UX . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137 If Problems Occur But There Are No Error Messages . . . . . . . . . . . . . . . . . . . . . 138 6. Installing and Using HP LocalDirector Controller What is HP LocalDirector Controller? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contents 7
Contents 8
Printing History The manual printing date and part number indicate its current edition. The printing date will change when a new edition is printed. Minor changes may be made at reprint without changing the printing date. The manual part number will change when extensive changes are made. Manual updates may be issued between editions to correct errors or document product changes. To ensure that you receive the updated or new editions, you should subscribe to the appropriate product support service.
1 Understanding HP WebQoS This chapter explains the roles and benefits of HP WebQoS and how it fits into your environment. It also describes fundamental WebQoS concepts to help you understand how WebQoS technology works.
Understanding HP WebQoS The Role and Benefits of HP WebQoS The Role and Benefits of HP WebQoS HP WebQoS is an enhancement to the HP-UX operating environment that stabilizes, optimizes, and prioritizes Internet-related applications and transactions that run on HP 9000 Enterprise servers. HP WebQoS works with web-enabled applications built on top of the iPlanet Web Server1 version 4.1 or the Zeus Web Server2 version 3.3.6.
Understanding HP WebQoS The Role and Benefits of HP WebQoS are trying to make a sale at the end of the month, are at the mercy of Web surfers. Each of the above conditions can cause increased load at your site or may impede your ability to deliver your services at optimum levels. By configuring WebQoS based on the type of services offered and traffic experienced at your site, you ensure that important web-based transactions are handled optimally in order to maximize revenue and customer satisfaction.
Understanding HP WebQoS The Role and Benefits of HP WebQoS Request Classifications Request classifications determine access priority for requests submitted to a web site. They enable you to give preferential treatment to your most important customers or transactions, allowing you to meet formal or informal service-level agreements.
Understanding HP WebQoS The Role and Benefits of HP WebQoS transactions can be completed quickly. With Capacity Protection, you configure a system when it is functioning at peak levels to do the following: • Redirect high priority customers to another system with available capacity. • Defer high priority customers for a few moments until current sessions are completed. • Reject low priority customers in extreme overload conditions.
Understanding HP WebQoS How WebQoS Fits Into Your Environment How WebQoS Fits Into Your Environment WebQoS, which includes a set of extensions to HP-UX, works with your web server and application servers for all of your web-enabled applications. Refer to Figure 1-1, "WebQoS in Your Environment".
Understanding HP WebQoS How WebQoS Fits Into Your Environment WebQoS Components WebQoS comprises a number of components that perform priority-based resource management and service request handling. (See Table 1-1, “WebQoS Components.”) In addition, management components allow you to configure WebQoS for the systems on which it is installed as well as define the service level objectives (SLOs) and threshold policies that are important to your business.
Understanding HP WebQoS How WebQoS Fits Into Your Environment Table 1-1 WebQoS Components Component Installed On Description WebQoS Services or Service Control Agent (SCA) and WebQoS Request Control Any HP-UX Enterprise Server running on HP-UX 11.x and running a web server that is managed by WebQoS. Collects performance information from the Service Resource Controller and WebQoS request control. Receives management control directives from the Service Control Operator.
Understanding HP WebQoS How WebQoS Fits Into Your Environment Request and Management Data Flow In this example, you are running a web server system that is accessible by various clients through a browser. The system may be running multiple web server processes, each of which may be hosting different web sites that are assigned to different process groups. By assigning these sites to different process groups, you cause them to exhibit different performance characteristics.
Understanding HP WebQoS How WebQoS Fits Into Your Environment 20 Chapter 1
2 Installing HP WebQoS Information about installing, upgrading, and removing this product can be found in the HP WebQoS Premium for HP-UX Release Note.
Installing HP WebQoS 22 Chapter 2
3 Configuring HP WebQoS This chapter describes how to modify the WebQoS configuration files. It also describes the management user interface and how to use it.
Configuring HP WebQoS Figure 3-1 WebQoS Administrator’s Task Flow 24 Chapter 3
Configuring HP WebQoS The steps below are explained in detail in the sections following. 1. Modify configuration files from the command line before starting WebQoS. 2. Configure your web server. 3. Run the WebQoS setup script to start the WebQoS SCO. 4. Start the WebQoS management user interface. The WebQoS SCO must be started prior to starting the management user interface. 5. Use the management user interface to configure one or more systems.
Configuring HP WebQoS Modifying Configuration Files Before Start-Up Modifying Configuration Files Before Start-Up The following files can be modified from the command line before starting WebQoS: • /etc/opt/webqos/net_tos.conf (See “Enabling Network Type of Service” below. • /etc/opt/webqos/qos.conf (See “Modifying WebQoS Global Configuration” on page 27.) Enabling Network Type of Service Enabling network type of service (TOS) allows classification rules to be reflected in network traffic priorities.
Configuring HP WebQoS Modifying Configuration Files Before Start-Up your requests receive the appropriate priority across the network. Specific instructions to enable network TOS are included in the /etc/opt/webqos/net_tos.conf file. Modifying WebQoS Global Configuration To modify your WebQoS global configuration, you need to modify the /etc/opt/webqos/qos.conf configuration file. You should do this before you run the WebQoS setup script.
Configuring HP WebQoS Modifying Configuration Files Before Start-Up weighted CPU% = (MonitorCPUWeight% * current CPU) + [(100 - MonitorCPUWeight)% * previous CPU] For example, if you set the MonitorCPUWeight to 20, the current CPU utilization is 60, and the previous CPU utilization is 50, the weighted CPU utilization is (20% * 60) + [(100 - 20)% * 50] or 52%. If you want to monitor the current CPU utilization only, set this parameter to 100.
Configuring HP WebQoS Modifying Configuration Files Before Start-Up The number of deferred sessions that have the same deferral time allocated to them. Minimum deferral time is 10 seconds; maximum is 120 seconds. For example, if you set this parameter to 1 and two requests arrive at the same time, the first deferred session is allocated a deferral time of 10 seconds and the second deferred session is allocated a deferral time of 11 seconds.
Configuring HP WebQoS Modifying Configuration Files Before Start-Up Enable or disable saving measurement log files (located in the directory /var/opt/webqos/measures). If enabled, all measurement log files are saved. If disabled, measurement log files more than two days old are deleted. SCO Parameters The following parameters affect the SCO only. If you change any of these parameters, you must restart the SCO.
Configuring HP WebQoS Modifying Configuration Files Before Start-Up then the default value is 2048. The maximum number of connections that are polled or checked for data. This parameter prevents connections with no data from using too many file descriptors. HP recommends that this value be a percentage of the maxfiles kernel parameter. • NoDataConnectionTimeout - Default: 30 seconds The amount of time, in seconds, to wait before closing a connection without data.
Configuring HP WebQoS Modifying Configuration Files Before Start-Up 1 - Error 2 - Warning 3 - Informative 4 - Detailed The larger the value, the more logging information is generated. • TRACELEVEL - Default: 0 (no tracing) The amount of tracing information that is written to the file /var/opt/webqos/logs/qostrace and /var/opt/webqos/logs/acctrace. Tracing values are: 0 - None 1 - Data flow 2 - Detailed 3 - Procedural The larger the value, the more tracing information is logged.
Configuring HP WebQoS Modifying Configuration Files Before Start-Up URL Encoding Parameters The following parameters allow you to support users who have disabled cookies on their browser. These parameters are useful only if you are using the BroadVision One-To-One Server1. • BV_SYSTEM_NAME - No default This is the name of the BroadVision One-To-One root server. Set this parameter only if you are using the BroadVision server. You can enter up to two server names. The names must be separated by a space.
Configuring HP WebQoS Configuring Your Web Server Configuring Your Web Server This section lists required and optional parameters that can be configured for your web server. Zeus Web Server Configuring Zeus Web Server Parameters You must configure the following Zeus web server parameters with the given values in order to use WebQoS successfully.
Configuring HP WebQoS Configuring Your Web Server If this parameter is set to yes or if bindaddr is not configured, WebQoS can only be configured globally for all virtual servers (you must configure all virtual servers as one site in WebQoS).
Configuring HP WebQoS Configuring Your Web Server • tuning!use_poll: yes Do you want to use the system call poll() instead of select()? poll() gives you better performance and is the default system call used if this parameter is not set. WebQoS only supports the poll() system call. IP-Based Virtual Servers WebQoS supports IP-based virtual servers (hardware virtual servers) where each IP-based virtual server has a unique IP address and port number combination.
Configuring HP WebQoS Configuring Your Web Server 2. Stop the Zeus web server from the Zeus administration server. 3. Delete the virtual server. 4. Start the Zeus web server. 5. Make sure all virtual servers are enabled. 6. Remove the site in WebQoS. Subservers Zeus allows you to configure subservers (software virtual servers or host header-based virtual servers). These subservers cannot be configured individually in WebQoS.
Configuring HP WebQoS Running the WebQoS setup Script Running the WebQoS setup Script This utility enables and disables the WebQoS daemons and web servers with WebQoS. You run it after WebQoS is installed on systems running the web server tier, application server tier, and on the management system where the SCO is run.
Configuring HP WebQoS Running the WebQoS setup Script If you do not want to configure any web servers, enter NONE. • Do you want to remove HP Admission Control? This question appears only if you have installed an older version of WebQoS (HP ServiceControl) on your system. You must remove HP Admission Control in order to use this version of WebQoS. If you answer no, you will exit the script and you will not be able to use this version of WebQoS.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Configuring WebQoS from the Management User Interface Once you have installed the relevant WebQoS components on each of your web and application servers and have performed the appropriate modifications to configuration files, you can configure WebQoS to know about the applications and web sites hosted on the WebQoS-enabled systems.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Starting the WebQoS Management User Interface To start the WebQoS management user interface, follow these steps: 1. Double-Click on the WebQoS icon on the Windows desktop. The WebQoS login dialog box appear (Figure 3-2, “WebQoS Login Dialog Box”). Figure 3-2 WebQoS Login Dialog Box 2. Enter the system name where the WebQoS management server (SCO) is installed. This system is also called the management station. 3.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-3 The Management User Interface View Menu Bar Task Bar Pulldown Lists Services/ Systems Views SLO/ History Views Status Summary Understanding the Management User Interface The following table describes the management user interface top level screen. For detailed information, refer to the WebQoS online Help. Table 3-1 Window Area Description Menu Bar The File menu allows you to change the administrator’s password.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Table 3-1 Window Area Description Pulldown Lists The Services/Systems pulldown list allows you to select either the services view or the systems view. The Service Level Objective/History log pulldown list allows you to select either the SLO view or the History log view. Services/Systems Views These views display a tree containing your configured services, systems, and sites (your domain topology).
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Adding a System To configure WebQoS for your environment you must first inform the WebQoS management system on which servers WebQoS is installed. To do this, add a system entry for each server that will run WebQoS. To add a system, follow these steps: 1. From the management user interface, choose Actions: Add -> System. The Add System Configuration dialog box appears. Figure 3-4 Add System Configuration Description Dialog Box 2.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface 3. When you have finished your modifications, choose [OK]. You can view the system you configured by selecting Systems from the Systems/Services pull down menu on the main management user interface view. The Service Control Agent must be started or already running for these changes to take effect. NOTE If you select a system and choose File: Delete, all the configurations for sites on that system are also deleted.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-5 Add Service Configuration Description Dialog Box 2. Enter the service name in the Add Service Configuration dialog box. A service name can be anything that is meaningful to you as an administrator of WebQoS. For example, a service name could be “BigCompany.” The “BigCompany” service might contain sites such as: www.BigCompanyStore.com, www.BigCompanySupport.com and www.BigCompanyHR.com. You can use spaces in the name.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface logging, or configure service level objectives, go to the next sections. Otherwise click [OK]. To Configure Service Statistics Logging By default, service statistics logging is disabled. If you enable Service Statistics Logging in the management user interface, WebQoS will log statistics to a service statistics log file in /var/opt/webqos/logs for each of the enabled services.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-6 Add Service Configuration Statistics Dialog Box 2. Click on the Check to enable service logging box.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Redirections High Redirections Medium Redirections Low Rejections High Rejections Medium Rejections Low Deferred Outstanding High Deferred Outstanding Medium Deferred Outstanding Low Deferral Time Average High Deferral Time Average Medium Deferral Time Average Low Deferral Time Current High Deferral Time Current Medium Deferral Time Current Low 3.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-7 Add a Service Configuration SLO Dialog Box 2. Add the service level objective by choosing the [Add] button (Figure 3-8, "Add Service Level Objectives Dialog Box").
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-8 Add Service Level Objectives Dialog Box 3. For a service, WebQoS offers the SLO Support at most concurrent sessions. This SLO lets you support a specific NUMBER of concurrent sessions for the service. Concurrent sessions means the total number of sessions that have not expired and are possibly active. 4. Enter an appropriate number in the Number input box. 5 is the default. 5.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface SLOs”. Otherwise click [OK]. To Specify Service-Wide Corrective Actions for SLOs Corrective actions are those actions taken to bring an SLO into compliance. Corrective actions may involve making trade-offs between requests belonging to different Request Classes, or making trade-offs between requests going to different sites or services running on the same system.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface highest priority occurs first. Priority is based on the order assigned to the action, with order 1 having the highest priority. For example, a set of corrective actions can be: Order 1: Redirect low class sessions 3 times Order 2: Reject low class sessions A low class session is redirected up to three times. If a session has been redirected three times, it is rejected.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-10 Edit Service Configuration Dialog Box 3. Select Corrective Action Policy Details... from the Add Service Configuration Advanced dialog box.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-11 Service Corrective Action Configuration Defer Dialog Box 4. In the Corrective Action Defer dialog box (Figure 3-11, "Service Corrective Action Configuration Defer Dialog Box") enter the following information: a. Enter the minimum wait in seconds for each defer period in the Minimum Wait (in secs): input box. The default is 10 seconds. b.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface d. If you want to guarantee entry after the initial defer, accept the default in the Automatically Enter box. If not, click on the toggle to remove the checkmark. e. You can choose to send either a Defer Message (the default), or you can choose to send the request to a URL. • If you choose a URL, click on the toggle in the Is URL box, delete the default text in the Defer Message box, and enter the URL, for example: http://www.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-12 Service Corrective Action Configuration Redirect Dialog Box 5. You can choose to enable or disable Service-wide redirection corrective actions in the Corrective Action Configuration Redirect dialog box (Figure 3-12, "Service Corrective Action Configuration Redirect Dialog Box"). The default is disable. This redirection configuration applies to all redirection corrective actions for the Service.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface http://www.Bigcompany.com), or the cluster domain to redirect to (for example, city.company.com). If both are filled in, WebQoS uses the cluster domain information first. If you choose URL of website to redirect to this is the top level URL of the website. If you choose Cluster Domain to redirect to, requests are forwarded to one of the servers also running WebQoS on that domain.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-13 Service Corrective Action Configuration Reject Dialog Box 5. From the Corrective Action Configuration Reject dialog box (Figure 3-13, "Service Corrective Action Configuration Reject Dialog Box") you can choose to send either a reject message (the default), or specify an HTML file name. If you choose to use a reject message, you can use the default reject message or edit the text as appropriate for your situation.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Adding a Site Before adding a site you must configure the site’s system and service(s) (See “Adding a System” on page 44 and “Adding a Service” on page 45). A site entry contains the WebQoS configuration for a web server instance. The web server does not have to be running in order for you to configure WebQoS. However, it would be helpful if you complete your web server configuration before configuring the site in WebQoS.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface To Identify the Site 1. From the management user interface, choose Actions: Add -> Site. The Add Site Configuration Description dialog box appears (Figure 3-14, "Add Site Configuration Description Dialog Box"). Figure 3-14 Add Site Configuration Description Dialog Box 2. Enter a site name in the Site Name input box. The site name is required. Choose a site name that is easy to remember.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface must be the name of the system on which the web server is running. The system has been previously configured using Actions: Add -> System from the management user interface. Figure 3-15 Add Site Configuration Web Server Dialog Box 2. Enter the appropriate IP address in the IP Address input box if your web server is bound to an IP address. ANY is the default.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface 4. Choose [OK] in the Add Site Configuration dialog box. 5. If you wish to configure other options for the site such as classification rules, service level objectives, or threshold policies, go to the next section, “Prioritizing Requests to the Site”.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-17 Add Request Classifications Rules Dialog Box 5. Select the appropriate Classification Type from the pull down menu in the Add Request Classification Rules dialog box (Figure 3-17, "Add Request Classifications Rules Dialog Box"). For a description of request classification rules, see “Request Classification Rules” on page 156. 6.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface 8. Choose [OK]in the Add Request Classification Rules dialog box. 9. To add more request classification rules, repeat the previous steps. Or, to configure service level objectives for the site, go to the next section “Setting Site Service Level Objectives”. 10. To apply your configuration, when you have completed configuring your site, select [OK] in the Edit Site Configuration dialog box.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-18 Add Site Configuration SLOs Dialog Box 4. Add a service level objective by choosing the [Add]button in the Add Site Configuration SLOs Dialog Box.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-19 Add Service Level Objectives Dialog Box a. Select the SLO Type from the pull down menu in the Add Service Level Objectives dialog box (Figure 3-19, "Add Service Level Objectives Dialog Box"). For specific information on the SLOs supported by WebQoS and descriptions of Instance and Class parameters, see “Service Level Objectives for Site” on page 158. b.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface priority than a priority 2 SLO. e. Add corrective actions if desired by following the instructions in the sections that follow. Otherwise choose [OK]. To Specify Corrective Actions for Site SLOs Corrective actions are those actions taken to bring an SLO into compliance.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface 5. Enter a number for the Order in Corrective Actions list. This number determines the order in which the corrective actions are taken. Each corrective action is configured for a specific class. If more than one action is configured for a certain class, the action with the highest priority occurs first. Priority is based on the order assigned to the action, with order 1 having the highest priority.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-21 Edit Site Configuration Threshold Policies Dialog Box 3. Select the Threshold Policies tab from the Add Site Configuration dialog box (Figure 3-21, "Edit Site Configuration Threshold Policies Dialog Box"). 4. Add a threshold by choosing the [Add]button.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-22 Add Thresholds Dialog Box a. In the Add Thresholds dialog box (Figure 3-22, "Add Thresholds Dialog Box"), select the Threshold type from the pull down menu. For specific information on the threshold policies supported by WebQoS, see “Threshold Policies” on page 159. b. Enter an appropriate percent in the Percent input box. c. Select the Class from the pull down menu, if applicable. d.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface 5. To add corrective actions for threshold policies, go to the next section. Otherwise choose [OK]. To Specify Corrective Actions for Threshold Policies Corrective actions are those actions taken to bring a threshold policy into compliance.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface 5. Enter a number for the Order in Corrective Actions list. This number determines the order in which the corrective actions are taken. Each corrective action is configured for a specific class. If more than one action is configured for a certain class, the action with the highest priority occurs first. Priority is based on the order assigned to the action, with order 1 having the highest priority.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-24 Edit Site Configuration Advanced Dialog Box 4. Select the feature that you want to configure. Advanced features are described in the following sections. Modifying Session Timeouts A session consists of all requests from a user within a certain time frame.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface minimum value is 10 seconds. The maximum value is 100 hours. If a session continues longer than the session duration, the session ends and WebQoS starts a new session unless prevented by a corrective action. If both timeouts are set, the current session ends if either timeouts are exceeded and WebQoS starts a new session unless prevented by a corrective action. To change the session timeouts, do the following: 1.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface To assign requests to queues, do the following: 1. Select Web Server Request Queues... from the Edit Site Configuration Advanced dialog box. Figure 3-26 Site Advanced Web Server Queue Management Dialog Box 2.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface assigned. 3. To modify the maximum queue size allowed in the queue, double-click Queue Size and enter new values. The minimum number of queue requests is 10. The maximum number you set depends on the file descriptor limit of your system, but it cannot exceed 2,400. Each request in the queue takes up one file descriptor. To save the new parameters press [Enter]. Increasing these values can greatly affect the performance of WebQoS. 4.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Server Accept Threads by changing the number and selecting [OK]. The default is 5. 3. Choose [OK] to apply your change. The web server must be restarted if the accept threads value is changed. The value must be greater than zero. Specifying Site-Wide Corrective Actions Once you have configured corrective actions for SLO violations, you may at times want to defer, redirect, or reject corrective actions.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface 2. In the Site Corrective Action Defer dialog box (Figure 3-28, "Site Corrective Action Configuration Defer Dialog Box"), enter the following information: a. Enter the minimum wait in seconds for each defer period in the Minimum Wait (in secs): input box. The default is 10 seconds. b. Enter the maximum wait in seconds for each defer period in the Maximum Wait (in secs): input box. The default is 120 seconds.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface 2. Choose the Redirect tab from the Site Corrective Action Configuration dialog. Figure 3-29 Site Corrective Action Configuration Redirect Dialog Box 3. You can choose to enable or disable site-wide redirection corrective actions in the Site Corrective Action Configuration Redirect dialog box (Figure 3-29, "Site Corrective Action Configuration Redirect Dialog Box"). The default is disable.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Corrective Action Configuration Redirect Dialog Box"). If you redirect to a website, enter the URL of a document root or hostname that has the exact contents of the web server you are configuring (for example, enter the document root or hostname of a mirror site). If you are configuring your web server http://www.BigCompany.com to redirect to http://www.LargeCompany.com, then the contents and URL paths must match between the two.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface Figure 3-30 Site Corrective Action Configuration Reject Dialog Box 3. From the Site Corrective Action Configuration Reject dialog box (Figure 3-30, "Site Corrective Action Configuration Reject Dialog Box"), you can choose to send either a reject message (the default), or specify an HTML file name. • If you choose to send a reject message, you can use the default reject message or edit the text as appropriate for your situation.
Configuring HP WebQoS Configuring WebQoS from the Management User Interface statistics log file in /var/opt/webqos/logs for each of the enabled sites. The statistics file is created daily until you disable site statistics logging in the management user interface. The file name is .stat. The site name is the one entered in the management user interface. At midnight, the file is moved to .stat.
Configuring HP WebQoS Verifying Your Configuration Redirections Low Rejections High Rejections Medium Rejections Low Deferred Outstanding High Deferred Outstanding Low Deferred Outstanding Medium Deferral Time Average High Deferral Time Average Medium Deferral Time Average Low Deferral Time Current High Deferral Time Current Medium Deferral Time Current Low Verifying Your Configuration You can monitor your service, system, site, SLO, and threshold status information from the management user interface to de
4 Using HP WebQoS After initially configuring WebQoS, you can edit, copy and delete current configurations, monitor and filter service level objectives (SLOs) and the History log, and view system and site statistics on a system as needed.
Using HP WebQoS Navigating the Services/Systems View Navigating the Services/Systems View The Services/Systems view (Figure 3-3, The Management User Interface View) shows the services, systems and sites configured in WebQoS. A WebQoS domain is a set of sites residing on one or more systems. Sites can also be grouped logically in services so that you can easily manage all the sites in that service.
Using HP WebQoS Editing a System Configuration Editing a System Configuration While you can delete a system from a WebQoS configuration, you cannot change the name of an already-configured system. You can only edit a site configuration. Editing a Site Configuration In a site configuration, you can only edit services, request classification rules, SLOs, threshold policies, and advanced entries. You cannot edit the site description or web server entries. To Edit the Site Type and Service Name 1.
Using HP WebQoS Editing a Site Configuration If you want to replace the old rule for the site, you have to delete the old rule and add a new one. NOTE If you choose to edit your configuration to include Enable network QoS you must edit /etc/opt/webqos/net_tos.conf to your desired settings and restart your web server. For specific information on Request Classification rules supported by WebQoS, see “Request Classification Rules” on page 156.
Using HP WebQoS Editing a Site Configuration ii. To edit, delete, or rearrange the corrective actions list, select the corrective action you want to edit, delete or move from the list and choose [Edit], [Delete], or [Move Up] or [Move Down] respectively. To replace an old corrective action for the SLO, you have to delete the old corrective action and add a new one.
Using HP WebQoS Editing a Site Configuration d. To edit a corrective action: i. For specific details about how to add a corrective action, see “Adding Site Threshold Policies” on page 69. ii. To edit, delete, or rearrange the corrective actions list, select the corrective action you want to edit, delete or move from the list and choose [Edit], [Delete], or [Move Up] or [Move Down] respectively.
Using HP WebQoS Editing a Site Configuration • Choose Web Server Accept Threads.... In the Site Advanced Accept Threads dialog box, change Number of Web Server Accept Threads, if desired. Choose [OK]. For more information, see “Modifying Web Server Accept Threads” on page 77. You must restart the web server for the new number of accept threads to take effect. • Choose Corrective Action Policy Details...
Using HP WebQoS Copying a System or Site Copying a System or Site You can copy a system or site from your configuration to help you speed up the configuration process. 1. Select Systems or Services from the Services/Systems pull down list. From either list, select the system or site entry that you want to copy. 2. Choose the Copy task icon button from the task bar or the Actions: Copy menu command. Enter the new system or new site name in the dialog box.
Using HP WebQoS Deleting a System, Service, or Site Deleting a System, Service, or Site When you no longer want WebQoS to manage a system's web server or use a service as a logical grouping of sites, you can delete the system, service, and associated sites from the WebQoS configuration. CAUTION When you delete a service or delete a system, WebQoS deletes all the sites configured for that service or system. Follow these steps to delete a selected system, service, or site. 1.
Using HP WebQoS Monitoring SLOs and the History Log Monitoring SLOs and the History Log You can use the SLO and the history log views to do the following: • Verify your WebQoS configuration • Check that your topology and web server configuration meet objectives • Determine when objectives are not met so you can make changes to your WebQoS configuration, topology, or web server configuration to better meet the objectives • Determine when objectives are being met so you and your customers know that their req
Using HP WebQoS Monitoring SLOs and the History Log • Status column — Displays the color coded status associated with SLOs and thresholds. — Red: Violation. The SLO or threshold objective is in violation and no corrective actions are being executed by WebQoS. — Yellow: At risk. The SLO or threshold objective is in violation, but WebQoS is executing a corrective action to try and bring it back into compliance.
Using HP WebQoS Monitoring SLOs and the History Log • Status summary bar — Displays the number of SLOs and thresholds that are violated (red), in violation but with corrective actions being taken (yellow), in compliance (green), inactive (blue), not connected (aqua), never connected (orange), and in error (red). The status summary bar is color coded with the same scheme as the status column described above. • Priority column — Displays the SLO or threshold priority, for example 1, 2, 3, or 4.
Using HP WebQoS Monitoring SLOs and the History Log Figure 4-2 History Log View Severity Column Status Summary Bar • The Severity column displays the color coded severity associated with the events. The Status summary bar across the bottom of the screen displays the number of events that are critical, major, minor, warning, normal, and unknown. The Severity Column and the Status summary bar are color coded as described below.
Using HP WebQoS Monitoring SLOs and the History Log — SLO or threshold risk — Action taken — CPU limit — CPU reset — Disk limit — Disk reset • The Description column displays a one line description of the event. • The Status Summary Bar displays the number of events that are critical, major, minor, warning, normal, and unknown. The status summary bar is color-coded with the same scheme used in the severity column described above.
Using HP WebQoS Filtering SLOs and Thresholds Filtering SLOs and Thresholds You may be managing a large web complex and you may have a significant number of sites. SLO filtering lets you view SLOs selectively to make problem solving easier. WebQoS can only display 50 SLOs and thresholds. You can use the filtering and sorting options to do the following: • Determine which SLOs or thresholds to display. For example, you might want to display only priority one SLOs and thresholds.
Using HP WebQoS Filtering SLOs and Thresholds 3. Select the appropriate Status classifications to display SLOs and thresholds with the chosen status. By default, all types are selected. For example, you might choose to display only SLOs and thresholds that are being violated or in error. See the WebQoS online help for descriptions of the status classifications. 4. Specify the appropriate Priority classification. SLOs and thresholds with the requested priority are displayed.
Using HP WebQoS Filtering the History Log Filtering the History Log History log filtering allows you to view History log entries selectively to make analysis and problem solving easier. WebQoS can only display 50 History log entries at a time. If there are more than 50 log entries for a system, service, or site, you can use filtering to specify which 50 entries should be displayed. Filtering and sorting the History log helps you to see patterns in the behavior of a system or site.
Using HP WebQoS Filtering the History Log site’s SLOs have been violated in the last month. NOTE Keep in mind that the management user interface uses the local time zone. If the system where you installed the management user interface is in a different time zone than the web server and application server, the time stamps are formatted using the local time of the management user interface. 5. Sort the History log as desired by selecting the appropriate sort item from the Sort by: pull down list.
Using HP WebQoS Displaying Site Statistics Displaying Site Statistics HP WebQoS provides the following site statistics: • The number of unexpired concurrent sessions. • Response times per request class. • The current utilization of high, medium, and low request class queues. • Defer statistics such as the number of sessions that are currently being deferred, the current defer time, and the average defer time for the previous 30 minutes.
Using HP WebQoS Displaying Site Statistics Figure 4-5 Site Performance Statistics SLO Related Statistics In the Site Performance Statistics SLO Related Statistics window (Figure 4-5, Site Performance Statistics SLO Related Statistics), the following statistics are displayed: • The number of unexpired concurrent sessions for the site. By default, a session expires after 2 hours, or if a request is not received for the session in 15 minutes.
Using HP WebQoS Displaying Site Statistics queues, displayed as the percent full. Note that there is a separate queue for each request class. Typically the queues are reported to be 0% full, because the web server removes each request from a queue as soon as it is added to the queue. A queue will be more than 0% full if there is a large burst of incoming requests, or if the web server is overloaded. There may be up to a 30 second delay in reporting the queue utilization.
Using HP WebQoS Displaying Site Statistics Figure 4-6 Site Session Control Statistics Screen This screen shows the percentage of new sessions admitted, deferred, redirected, or rejected per Request Class during the previous 30 minutes is displayed. The actual number of new sessions admitted, deferred, redirected, or rejected is shown in parenthesis. For example, 100% (6000) means that 100% of the new sessions were admitted during the last 30 minutes. The actual number of new sessions admitted is 6000.
Using HP WebQoS Displaying Service Performance Statistics Displaying Service Performance Statistics HP WebQoS provides the following service statistics: • Aggregate number of unexpired concurrent sessions for the service. • Average response times per Request Class for the service. • Percentage of new sessions admitted, deferred, redirected, or rejected for the service during the previous 30 minutes.
Using HP WebQoS Displaying Service Performance Statistics Figure 4-7 Service Performance Statistics SLO Related Statistics In the Service Performance Statistics SLO Related window (Figure 4-7, Service Performance Statistics SLO Related Statistics), the following statistics are displayed: • Aggregate number of unexpired concurrent sessions for the service. By default, a session expires after 2 hours, or if a request is not received for the session in 15 minutes.
Using HP WebQoS Displaying Service Performance Statistics Figure 4-8 Detailed Service Performance SLO Related Statistics The response times per request class for each site and the current number of sessions are shown in milliseconds (Figure 4-8, Detailed Service Performance SLO Related Statistics). Each table row displays the data for one site. For example, if there are 10 sites configured, there will be 10 rows.
Using HP WebQoS Displaying Service Performance Statistics Statistics from the menu bar. The Service Performance Statistics window displays. 3. Select the Session Control Statistics tab from the Service Performance Statistics window (Figure 4-9, Service Session Control Statistics). Figure 4-9 Service Session Control Statistics The screen shows the percentage of new sessions admitted, deferred, redirected, or rejected for the service during the previous 30 minutes. This is shown per request class.
Using HP WebQoS Displaying Service Performance Statistics Figure 4-10 Detailed Service Session Control Statistics The percentage of new sessions admitted, deferred, redirected, or rejected for each site in the service are shown (Figure 4-10, Detailed Service Session Control Statistics). Each table row displays the data for one site. For example, if there are 10 sites configured, there will be 10 rows.
Using HP WebQoS Displaying Service Performance Statistics 2. Choose the Statistics icon from the task bar or Actions: Statistics from the menu bar. The Service Performance Statistics window appears. 3. Click on the Defer Statistics tab (Figure 4-11, Defer Statistics for the Service). Figure 4-11 Defer Statistics for the Service The screen shows the following statistics: • The aggregate number of outstanding deferred sessions. This is the number of deferrals that are outstanding at a given instant of time.
Using HP WebQoS Displaying Service Performance Statistics 4. To display detailed defer statistics for each site in the service, choose Details in the Service Performance Statistics Defer Statistics screen (Figure 4-12, Detailed Defer Statistics for the Service). Figure 4-12 Detailed Defer Statistics for the Service Each table row displays the data for one site. For example, if there are 10 sites configured, there will be 10 rows.
Using HP WebQoS Changing the Password Changing the Password To change the password that is used to access the management server: 1. Choose File: Change Password. 2. In the Change Password dialog box, type in the old password. You need to enter the new password twice. Figure 4-13 Change Password Dialog Box If you forget your password, you can specify a new one by running /opt/webqos/install/setup -p on the system on which the WebQoS management server is installed.
Using HP WebQoS Troubleshooting Troubleshooting Make sure you have installed all required patches. Refer to the HP WebQoS Premium for HP-UX Release Note for a list of these patches. Shared Memory If you see the following warning in the /var/opt/webqos/logs/qoslog file, Couldn’t attach to shared memory this means that the Service Control Agent (SCA) cannot function correctly without memory segments.
Using HP WebQoS Troubleshooting The WebQoS SCO is down. You need to exit the management user interface, restart the SCO by running /opt/webqos/bin/sco_start and then restart the management user interface. NOTE You must be root to restart the SCO and run /opt/webqos/bin/sco_start • WebQoS cannot add the site, because the system/port is already configured. The port number is already being used by another site. Each site needs a unique port number. • Problems connecting to the SCO on .
Using HP WebQoS Troubleshooting /etc/opt/webqos/qos.conf file. MaxPollDescriptors defines the maximum number of connections that are polled or checked for data. Verify that MaxPollDescriptors is set to a reasonable value. If this message continues to appear, then the web server may be under a denial of service attack. In this kind of denial of service attack, a “virtual vandal” is trying to flood your web server with empty requests to try and prevent it from serving valid requests.
Using HP WebQoS Troubleshooting Logging Error messages are logged in the /var/opt/webqos/logs/qoslog and /var/opt/webqos/logs/acclog files. You can set the level of logging (number and types of messages) by setting the parameters in the file /etc/opt/webqos/qos.conf. For information on how to set the parameters, see “Modifying WebQoS Global Configuration” on page 27. More messages will be logged by changing the levels. See “Changing Logging and Tracing Levels” on page 118 for more information.
Using HP WebQoS Troubleshooting levels in this file. To change the levels and see more detail do the following: 1. Edit the /etc/opt/webqos/qos.conf and set the level. 2. In the management user interface main screen, select the appropriate site in the Systems/Services view, choose the Edit action icon, and click [OK] in the Edit a Site screen. For more information on modifying the parameters in the /etc/opt/webqos/qos.conf file, see “Modifying WebQoS Global Configuration” on page 27.
Using HP WebQoS Troubleshooting 120 Chapter 4
5 Customizing and Using HP OpenView with HP WebQoS This chapter describes how to use HP OpenView to view reports, statistics, and events that are generated in HP WebQoS.
Customizing and Using HP OpenView with HP WebQoS HP WebQoS has been integrated with the following HP OpenView components: • MeasureWare (Version C.02.40.0 or greater) — Collects, summarizes, and timestamps data from across your system. — Provides performance, resource and end-to-end transaction response time measurements. — Supports network and database measurement information. • Service Reporter (Version A.01.
Customizing and Using HP OpenView with HP WebQoS Installing, Configuring, and Using HP OpenView Service Reporter Installing, Configuring, and Using HP OpenView Service Reporter Service Reporter is management reporting software that automatically transforms data logged in MeasureWare into reports that you can use. These instructions explain how to configure the WebQoS system, the Service Reporter system, and how to generate reports in Service Reporter.
Customizing and Using HP OpenView with HP WebQoS Installing, Configuring, and Using HP OpenView Service Reporter Installing and Configuring the WebQoS System The instructions assume you have already installed and configured the HP WebQoS product. If configured, the WebQoS SCO will log service statistics that MeasureWare can translate into service reports. The following steps must be performed on the SCO system. Follow these steps: 1. Configure WebQoS to log service statistics to MeasureWare.
Customizing and Using HP OpenView with HP WebQoS Installing, Configuring, and Using HP OpenView Service Reporter Installing and Configuring the Service Reporter System Before you can view WebQoS reports in Service Reporter, you need to add the QoS metric to the Service Reporter system. Follow these steps: 1. On the HP-UX system where the WebQoS SCO is installed, use FTP binary mode to copy the file /opt/webqos/bin/ui/HPWebQoS.exe to the PC system where Service Reporter is installed.
Customizing and Using HP OpenView with HP WebQoS Installing, Configuring, and Using HP OpenView Service Reporter continue the installation. h. At the Setup Complete screen, click Finish. 3. Start the Service Reporter interface. Make sure your SCO node has been discovered. 4. Add the WebQoS metric to the system as follows: a. Click on the + next to Discovered Systems in the left pane. b. Click on the + next to ALL. c. Select WebQoS SCO system. d. Click on the + next to Metric Lists. e.
Customizing and Using HP OpenView with HP WebQoS Installing, Configuring, and Using HP OpenView Service Reporter admitted sessions per service. • Admitted Sessions per Class Over Time—ratio of high, medium, and low admitted sessions over time per service. • Deferred Sessions per Class—ratio of high, medium, and low deferred sessions per service. • Deferred Sessions Per Class Over Time—ratio of high, medium, and low deferred sessions over time per service.
Customizing and Using HP OpenView with HP WebQoS Installing, Configuring and Using PerfView Installing, Configuring and Using PerfView PerfView uses measurement data that the WebQoS SCO logs to MeasureWare to provide a way of viewing and analyzing measurement data. With PerfView, you can create graphs from any WebQoS service and site statistics. Logging WebQoS Site Data To view WebQoS site data in PerfView, you need to do the following configuration on the system running the web server. 1. Logon as root.
Customizing and Using HP OpenView with HP WebQoS Installing, Configuring and Using PerfView 6. Log the data with the following command (assuming acme is the site name and ACME is the unique name): /opt/webqos/bin/dsi_start.sh SITE ACME acme NOTE When you delete the site or the system, you need to kill the mw_stats and dsilog process by running /opt/webqos/bin/dsi_stop.sh ACME.
Customizing and Using HP OpenView with HP WebQoS Installing, Configuring and Using PerfView b. Restart or start the MeasureWare agent by typing mwa restart. 6. Log the data with the following command (assuming iservice is the service name and ISERVICE is the unique name). Note that the command should contain no carriage returns. /opt/webqos/bin/dsi_start.sh SERVICE ISERVICE iservice NOTE When you delete the service, you need to kill the mw_stats and dsilog process by running /opt/webqos/bin/dsi_stop.
Customizing and Using HP OpenView with HP WebQoS Installing, Configuring and Using PerfView a. Click on the desired data source. b. In the Metric List dialog that pops up, select the desired metrics. You can select system variables such as GBL_DISK_UTIL_PEAK and WebQoS variables such as Sessions. Graphing system variables with WebQoS variables helps in detecting a correlation between system performance and web performance. This aids in system performance tuning. c.
Customizing and Using HP OpenView with HP WebQoS Installing and Configuring HP OpenView IT/Operations Installing and Configuring HP OpenView IT/Operations HP OpenView IT/Operations (ITO) is designed to detect, solve, and prevent problems occurring in networks, systems, and applications. ITO templates are provided with WebQoS which help you monitor WebQoS service events, statistics, and status.
Customizing and Using HP OpenView with HP WebQoS Installing and Configuring HP OpenView IT/Operations Installing the Templates These instructions assume you have already installed and configured the HP WebQoS product, including the fileset HPQOSITO (refer to the HP WebQoS Premium for HP-UX Release Note for installation information). After installing the fileset HPQOSITO, the templates are in the following tar archive file: /etc/opt/webqos/OV/WQ_ITO.tar.
Customizing and Using HP OpenView with HP WebQoS Installing and Configuring HP OpenView IT/Operations su root cd /var/opt/webqos/stats ln -s SomeServiceName.stat qos.stat When the ITO templates open the file qos.stat, they will really be reading from the statistics file you selected. In the example above, the WebQoS service name is SomeServiceName. Customizing the ITO Templates The ITO templates shipped with WebQoS reside in the template group WebQoS.
Customizing and Using HP OpenView with HP WebQoS Installing and Configuring HP OpenView IT/Operations templates that are provided. To monitor WebQoS services individually, follow these steps: 1. Copy the desired templates from the WebQoS template group by using Copy... in the Message Source Templates window. 2. Change the Monitor Name field for that template by adding a unique suffix. 3. Change the Monitor Program field to specify the name of the WebQoS service to be monitored, and the new monitor name.
Customizing and Using HP OpenView with HP WebQoS Installing and Configuring HP OpenView IT/Operations TIP You may want to keep customized templates in their own template group as an aid to organization. For a list of all WebQoS statistics variable names for ITO Threshold Templates, see Appendix B, “HP OpenView IT/Operations (ITO) Alarms.” Managing the WebQoS System You will need to know how to launch the WebQoS management user interface. 1.
Customizing and Using HP OpenView with HP WebQoS Installing and Configuring HP OpenView IT/Operations Troubleshooting WebQoS Processes on HP-UX When OpenView ITO reports trouble, you can use the following steps to learn the cause of the problem, and take corrective steps. You may also want to refer to the WebQoS “Error Messages Viewable From the Management User Interface” on page 115 in this manual. Error Messages 1. Site is not connected to WebQoS. a. The web server process is not running.
Customizing and Using HP OpenView with HP WebQoS Installing and Configuring HP OpenView IT/Operations /opt/webqos/bin/sca_start The loss of the SCA process does not affect web service. 3. Error contacting SCO. Verify that WebQoS SCO process is running. The SCO process may be down. Check for the SCO process with the command: ps -ef | grep ’sco’ | grep -v grep If not running, start the SCO using the command: /opt/webqos/bin/sco_start The loss of the SCO process does not affect web service.
6 Installing and Using HP LocalDirector Controller This chapter describes how to install and configure HP LocalDirector Controller.
Installing and Using HP LocalDirector Controller What is HP LocalDirector Controller? What is HP LocalDirector Controller? HP LocalDirector Controller (HP LDC) works with Cisco LocalDirector1 by automatically generating the information needed by Cisco LocalDirector to load balance TCP/IP traffic across multiple servers. HP LDC, specifically the HP LocalDirector Control daemon (ldc_agt), must be configured and running on each system that is managed by Cisco LocalDirector.
Installing and Using HP LocalDirector Controller Installing HP LocalDirector Controller adjusts the weights depending on CPU usage and system load. Both the CPU usage and system load (measured by a one minute average job queue) must reach their configured thresholds before the weights are lowered. The weights will range between one and the initial weights.
Installing and Using HP LocalDirector Controller Configuring HP LocalDirector Controller the Cisco LocalDirector gateway to configure the snmp-server host parameter. Refer to Cisco LocalDirector’s manuals for information on setting this parameter and other configuration information. Configuring HP LocalDirector Controller There are two components you need to configure before using HP LDC: the HP LDControl server and the HP LDControl daemon. Follow these steps: 1. Start the HP administration server.
Installing and Using HP LocalDirector Controller Configuring HP LocalDirector Controller Figure 6-2 HP LDControl Page Chapter 6 143
Installing and Using HP LocalDirector Controller Configuring HP LocalDirector Controller Configuring the HP LDControl Server From the LDControl page, select “Server Configuration” from the side menu. The following page displays: Figure 6-3 HP LDControl Server Configuration Page Set the following parameters to configure the HP LDControl server: Table 6-1 HP LDControl Server Configurable Parameters Parameter Description Server Directory The home directory of the web server.
Installing and Using HP LocalDirector Controller Configuring HP LocalDirector Controller The HP LDControl daemon must be started/restarted for these values to take effect. See “Starting and Stopping the HP LDControl Daemon” on page 148 for more information on starting HP LDC. NOTE The web server configured in the /etc/hpldc/webstone/conf/server-list file must be running before the HP LDControl daemon is started.
Installing and Using HP LocalDirector Controller Configuring HP LocalDirector Controller Figure 6-4 HP LDControl Service Configuration Screen Set the following parameters to configure the HP LDControl daemon: Table 6-2 HP LDControl Daemon Configurable Parameters Parameter Description LocalDirector Hostname The hostname of the system on which Cisco LocalDirector is running. Dynamic Weight Starts/Stops the HP LDControl daemon.
Installing and Using HP LocalDirector Controller Configuring HP LocalDirector Controller Table 6-2 HP LDControl Daemon Configurable Parameters Parameter Description CPU Threshold The highest percentage the CPU usage should reach before the weight of the server is automatically decreased. Note that the run queue threshold (average load) must also be reached before the weights are adjusted.
Installing and Using HP LocalDirector Controller Configuring HP LocalDirector Controller NOTE The web server configured in the /etc/hpldc/webstone/conf/server-list file must be running before the HP LDControl daemon is started. Starting and Stopping the HP LDControl Daemon The HP LDControl daemon can be started and stopped from the LD Control web page (Figure 6-2, "HP LDControl Page"). Select “Start/Stop Daemon” from the side menu.
Installing and Using HP LocalDirector Controller Configuring HP LocalDirector Controller Configuring a System with More than One LAN Card If the system on which you are running the web server has more than one LAN card, you must set the snmp-server host and real parameters in Cisco LocalDirector. Do the following: 1. On the system with multiple LAN cards, run netstat -rn and check the routing table information.
Installing and Using HP LocalDirector Controller Configuring HP LocalDirector Controller Problems Accessing the HP LD Controller Table 6-3 Browser Error Message and Action Error Message Action Applet ConfApplet can’t start. The browser that you are using to administer the system must be configured to support JDK 1.1 in order to run HPLDC. Two browsers that support JDK 1.1 are Netscape Navigator 4.0.6 and Microsoft Internet Explorer 4.0.
Installing and Using HP LocalDirector Controller Configuring HP LocalDirector Controller Table 6-4 HP LDControl Daemon Error Log Messages and Actions Error Message Action Server might be down. Initial weight set to 0. Exiting. 1. Make sure the web server is running on the system. Restart/Start the web server and then restart the HP LDControl daemon. 2. Check the parameters in the file /etc/hpldc/webstone/conf/server-list. 3.
Installing and Using HP LocalDirector Controller Configuring HP LocalDirector Controller Problems with HP LocalDirector Controller and Cisco LocalDirector 1. To verify that the HP LDC agent (ldc_agt) is up and running, type the following: ps -efa|grep ldc_agt If ldc_agt is not running, start ldc_agt to see if it solves the problem. Refer to “Starting and Stopping the HP LDControl Daemon” on page 148.
Installing and Using HP LocalDirector Controller Configuring HP LocalDirector Controller • If they do not match, HP LDC might have trouble in getting the initial weight. Check the error entries in ldc.log again and refer to “Troubleshooting the HP LD Controller” on page 149. 4. If everything looks normal, you are ready to run the snmp_test tool. The snmp_test program tests the SNMP connectivity between the HP LocalDirector Controller and Cisco’s LocalDirector.
Installing and Using HP LocalDirector Controller Configuring HP LocalDirector Controller 154 Chapter 6
A Policy and Rule Descriptions This appendix describes request classification rules, service level objectives, and threshold policies.
Policy and Rule Descriptions Request Classification Rules Request Classification Rules If there are no request classification applied to a request, the default class is high for SSL (Secure Socket Layer) requests and low for non-SSL requests. The SSL traffic is identified by the port number configured for the web server. If more than one class rule match is found in the request, the highest classification is chosen. IP masking is allowed when entering an IP address in a request classification rule.
Policy and Rule Descriptions Request Classification Rules assigns the chosen class to all requests coming from the IP address defined in the Address input box. • Requests to port number NUMBER are CLASS You need to enter a port number in the Port Number input box. A request classification (High, Medium, or Low) must be selected. This rule then assigns the chosen class to all requests going to the Port Number specified in the input box.
Policy and Rule Descriptions Policies Set in WebQoS Policies Set in WebQoS There are two types of policies for WebQoS: business-oriented SLOs and operations-oriented Threshold Policies. You define these two types of policies and prioritize them relative to one another. WebQoS trades off meeting these policies based on their priorities. WebQoS uses priorities to determine which corrective actions to take when one or more of the SLOs or Threshold policies are violated.
Policy and Rule Descriptions Policies Set in WebQoS Concurrent sessions means the total number of sessions that have not expired (based on the configuration of the advanced features discussed in “Modifying Session Timeouts” on page 74) and are possibly active. This number does not indicate the total number of sessions currently active on the system. • Support at most NUMBER concurrent sessions This SLO lets you support a specific NUMBER (for example, 1000) of concurrent sessions.
Policy and Rule Descriptions Policies Set in WebQoS • Ensure CPU is no more than PERCENT % busy This threshold policy lets you specify the upper threshold of how busy the CPU is. The CLASS request classification information is not required. • Ensure the CLASS priority queue is no more than PERCENT % full You can choose an appropriate PERCENT to input for the percent full for each request classification (High, Medium or Low) queue. The queue contains the requests that have been received but not processed.
Policy and Rule Descriptions Policies Set in WebQoS Corrective Actions for SLO and Threshold Policy Violations Corrective actions are those actions taken to bring an SLO or threshold policy into compliance. These actions are only performed on new sessions. Existing sessions that are already admitted into the system are not affected.
Policy and Rule Descriptions Policies Set in WebQoS • Defer CLASS priority requests This corrective action defers sessions for the priority request. The deferred session is admitted instantly after the deferred time has passed. When a session is deferred, WebQoS sends the deferred session a customized web page indicating that the web site is very busy, and that the request will be fulfilled soon. The requestor sees a timer that indicates when the request will be re-submitted automatically.
Policy and Rule Descriptions Policies Set in WebQoS Figure A-1 Default Defer Page Appendix A 163
Policy and Rule Descriptions Policies Set in WebQoS If you are creating a Defer HTML page and want to use the defer timer mechanism, you need to place the following form in your page:
Your Defer page can also include a link to another page that the user can go to while waiting for the original request to be retried (see Figure A-2).Policy and Rule Descriptions Policies Set in WebQoS