Apache Tomcat Deployment Guide

Similar documents
IIS. Deployment Guide

Pearson PowerSchool. Deployment Guide

Microsoft Print Server. Deployment Guide

Microsoft Dynamics. Deployment Guide

Epic. Epic Systems. Deployment Guide

Epicor. Deployment Guide. UPDATED: 29 January 2019

Adobe Connect. Adobe Connect. Deployment Guide

Splunk. Splunk. Deployment Guide

MS Skype For Business. Deployment Guide

MS Lync Deployment Guide

AD FS v3. Deployment Guide

Moodle. Moodle. Deployment Guide

LoadMaster VMware Horizon Access Point Gateway

Remote Desktop Services Deployment Guide

MS Exchange 2016 Deployment Guide

LoadMaster VMware Horizon (with View) 6. Deployment Guide

Windows Server 2012 R2 DirectAccess. Deployment Guide

RADIUS Authentication and Authorization Technical Note

Remote Desktop Services. Deployment Guide

KEMP Multi-Tenant LoadMaster. KEMP Multi- Tenant LoadMaster. Product Overview

VMware vcenter Log Insight Manager. Deployment Guide

MS Lync MS Lync Deployment Guide

KEMP 360 Central Activation Server

MS Exchange 2010 Deployment Guide

Exchange 2016 Deployment Guide. Exchange Deployment Guide

MS Skype for Business. Microsoft Skype for Business Deployment Guide

Multi-Tenant LoadMaster

Content Rules. Feature Description

Microsoft Hyper-V Installation Guide

LoadMaster for Azure Resource Manager. Feature Description

RSA Two Factor Authentication. Feature Description

LoadMaster Clustering

VMware Horizon Workspace. VMware Horizon Workspace 1.5. Deployment Guide

Hardware LoadMaster. Installation Guide

Content Switching Exchange and Lync. Technical Note

DirectAccess. Windows Server 2012 R2 DirectAccess. Deployment Guide

Backup and Restore Technical Note

MS Lync Deployment Guide

Microsoft Exchange Microsoft Exchange Deployment Guide

LoadMaster for Azure (Marketplace Classic Interface)

Azure Multi-Factor Authentication. Technical Note

Migration Tool. Migration Tool (Beta) Technical Note

Edge Security Pack (ESP)

VMware ESX ESXi and vsphere. Installation Guide

Metered Licensing Management

Content Switching with Exchange and Lync-related Workloads

HA for Azure Classic Interface. Feature Description

SDN Adaptive Load Balancing. Feature Description

KEMP360 Central. 1 Introduction. KEMP360 Central. Feature Description

RSA Two Factor Authentication

KEMP 360 Central for vsphere. Installation Guide

MT LoadMaster - Dell R-Series. Multi-Tenant LoadMaster for the Dell R-Series. Installation Guide

DEPLOYMENT GUIDE A10 THUNDER ADC FOR EPIC SYSTEMS

Metered Licensing Management. Feature Description

Web User Interface (WUI) LM FIPS

KEMP 360 Vision. KEMP 360 Vision. Product Overview

Web User Interface (WUI) LM5305 FIPS

KEMP Driver for Red Hat OpenStack. KEMP LBaaS Red Hat OpenStack Driver. Installation Guide

Health Checking. Health Checking. Feature Description

NTLM NTLM. Feature Description

DEPLOYMENT GUIDE Version 1.2. Deploying the BIG-IP System v10 with Microsoft IIS 7.0 and 7.5

Web User Interface (WUI)

Microsoft Hyper-V 2012

Deployment Guide AX Series with Oracle E-Business Suite 12

Kemp 360 Central. Feature Description. UPDATED: 19 February 2019

DEPLOYMENT GUIDE DEPLOYING THE BIG-IP SYSTEM WITH BEA WEBLOGIC SERVER

Deploying the BIG-IP System v10 with Oracle s BEA WebLogic

SSL Accelerated Services. SSL Accelerated Services for the LM FIPS. Feature Description

Microsoft Hyper-V. Installation Guide

Packet Trace Guide. Packet Trace Guide. Technical Note

Custom Authentication Form. Technical Note

GEO. Feature Description GEO VERSION: 1.4 UPDATED: MARCH Feature Description

Deployment Guide. Blackboard Learn +

Deployment Guide January-2016 rev. b. Deploying Array Networks APV Series Application Delivery Controllers With IBM WebSphere 8.5

DEPLOYMENT GUIDE Version 1.2. Deploying the BIG-IP System v9.x with Microsoft IIS 7.0 and 7.5

Deploying Microsoft SharePoint with the F5 WebAccelerator

KEMP360 Central - VMware vsphere. KEMP360 Central using VMware vsphere. Installation Guide

LoadMaster Clustering (Beta)

MS Lync 2013 Server Security Guide. Technical Note

A10 Thunder ADC with Oracle E-Business Suite 12.2 DEPLOYMENT GUIDE

AppScaler SSO Active Directory Guide

DEPLOYMENT GUIDE. Deploying F5 for High Availability and Scalability of Microsoft Dynamics 4.0

Etanova Enterprise Solutions

Hyper-V - Windows 2012 and 8. Virtual LoadMaster for Microsoft Hyper-V on Windows Server 2012, 2012 R2 and Windows 8. Installation Guide

Service Portal User Guide

Microsoft Exchange Server 2013 and 2016 Deployment

MT LoadMaster Cisco UCS C-Series. Multi-Tenant LoadMaster for Cisco UCS C-Series Rack Server. Installation Guide

DEPLOYMENT GUIDE Version 1.1. Deploying F5 with IBM WebSphere 7

Web Application Firewall (WAF) Feature Description

High Availability (HA) Feature Description

Course Objectives In this course, students can expect to learn how to:

NetScaler for Apps and Desktops CNS-222; 5 Days; Instructor-led

DoD Common Access Card Authentication. Feature Description

Multi-Tenant LoadMaster WUI. KEMP Multi- Tenant LoadMaster. Configuration Guide

Cisco UCS C-Series. Installation Guide

Optimizing Web and Application Infrastructure on a Limited IT Budget

MarkLogic Server. MarkLogic Server on Microsoft Azure Guide. MarkLogic 9 January, 2018

Load Balancing Oracle Application Server

Load Balancing VMware Horizon View. Deployment Guide v Copyright Loadbalancer.org, Inc

Load Balancing Microsoft Remote Desktop Services. Deployment Guide v Copyright Loadbalancer.org, Inc

Transcription:

Deployment Guide VERSION: 3.0 UPDATED: July 2017

Copyright Notices Copyright 2002-2017 KEMP Technologies, Inc. All rights reserved. KEMP Technologies and the KEMP Technologies logo are registered trademarks of KEMP Technologies, Inc. KEMP Technologies, Inc. reserves all ownership rights for the LoadMaster and KEMP 360 product line including software and documentation. Used, under license, U.S. Patent Nos. 6,473,802, 6,374,300, 8,392,563, 8,103,770, 7,831,712, 7,606,912, 7,346,695, 7,287,084 and 6,970,933 Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 2

Table of Contents 1 Introduction 4 1.1 Document Purpose 4 1.2 Intended Audience 4 2 Apache Tomcat Template 5 3 Architecture 6 7 4.1 Enable Subnet Originating Requests Globally 7 4.2 Enable Check Persist Globally 8 4.3 Create the Apache Tomcat Virtual Services 8 4.3.1 Create an Apache Tomcat HTTP Virtual Service 8 4.3.2 Create an Apache Tomcat HTTPS Virtual Service 10 4.3.3 Create an Apache Tomcat HTTPS Offloaded Virtual Service 11 4.3.4 Create an Apache Tomcat HTTPS Re-encrypt Virtual Service 13 References 15 Document History 16 Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 3

1 Introduction 1 Introduction Apache Tomcat, often referred to as Tomcat, is an open-source Java Servlet Container developed by the Apache Software Foundation. Tomcat implements several Java EE specifications including Java Servlet, JavaServer Pages, Java EL, and WebSocket, and provides a pure Java HTTP web server environment in which Java code can run. The KEMP LoadMaster is used to load balance the Apache Tomcat workload. The LoadMaster offers advanced Layer 4 and Layer 7 server load balancing, SSL Acceleration and a multitude of other advanced Application Delivery Controller (ADC) features. The LoadMaster intelligently and efficiently distributes user traffic among the application servers so that users get the best experience possible. 1.1 Document Purpose This document provides the recommended LoadMaster settings used when load balancing the Apache Tomcat workload. The KEMP Support Team is available to provide solutions for scenarios not explicitly defined. The KEMP support site can be found at: https://support.kemptechnologies.com 1.2 Intended Audience This document is intended to be read by anyone who is interested in configuring the LoadMaster to optimize the Apache Tomcat server. Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 4

2 Apache Tomcat Template 2 Apache Tomcat Template KEMP has developed a template containing our recommended settings for Apache Tomcat. You can install this template on the LoadMaster and use it when creating Virtual Services. Using a template automatically populates the settings in the Virtual Services, which is quicker and easier than manually configuring each Virtual Service. If needed, you can make changes to any of the Virtual Service settings after using the template. Download released templates from the Templates section on the KEMP documentation page: http://kemptechnologies.com/documentation/. For more information and steps on how to import and use templates, refer to the Virtual Services and Templates, Feature Description. For steps on how to manually add and configure each of the Virtual Services, refer to the other sections of this document. Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 5

3 Architecture 3 Architecture Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 6

The deployed Apache Tomcat environment determines which of the following setups is used. 4.1 Enable Subnet Originating Requests Globally It is best practice to enable the Subnet Originating Requests option globally. In a one-armed setup (where the Virtual Service and Real Servers are on the same network/subnet) Subnet Originating Requests is usually not needed. However, enabling Subnet Originating Requests should not affect the routing in a one-armed setup. In a two-armed setup where the Virtual Service is on network/subnet A, for example, and the Real Servers are on network B - Subnet Originating Requests should be enabled on LoadMasters with firmware version 7.1-16 and above. When Subnet Originating Requests is enabled, the LoadMaster will route traffic so that the Real Server will see traffic arriving from the LoadMaster interface that is in that network/subnet not the Virtual Service address. When Subnet Originating Requests is enabled globally, it is automatically enabled on all Virtual Services. If the Subnet Originating Requests option is disabled globally, you can choose whether or not to enable Subnet Originating Requests on a per-virtual Service basis. To enable Subnet Originating Requests globally, follow the steps below: 1. In the main menu of the LoadMaster Web User Interface (WUI), go to System Configuration > Miscellaneous Options > Network Options. 2. Tick the Subnet Originating Requests check box. Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 7

4.2 Enable Check Persist Globally It is recommended that you change the Always Check Persist option to Yes Accept Changes. Use the following steps: 1. Go to System Configuration > Miscellaneous Options > L7 Configuration. 2. Click the Always Check Persist dropdown arrow and select Yes Accept Changes. 4.3 Create the Apache Tomcat Virtual Services The following sections describe the recommended settings for the Apache Tomcat Virtual Services. 4.3.1 Create an Apache Tomcat HTTP Virtual Service The following are the steps involved and the recommended settings to configure the Apache Tomcat HTTP Virtual Service: 1. In the main menu of the LoadMaster Web User Interface (WUI), go to Virtual Services > Add New. Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 8

2. Type a valid Virtual Address. 3. Type 80 as the Port. 4. Enter a recognizable Service Name, such as Apache Tomcat HTTP Virtual Service. 5. Click Add this Virtual Service. 6. Configure the settings as recommended in the following table: Section Option Value Standard Options Persistence Mode Active Cookie Timeout Cookie name Scheduling Method 1 Hour JSESSIONID least connection Idle Connection Timeout 900 7. Add the Real Servers: a) Expand the Real Servers section. b) Click Add New. c) Enter the address of the relevant Real Server. d) Complete the other fields as required. e) Click Add this Real Server then click OK to the pop-up message. Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 9

f) Repeat the steps above to add more Real Servers as needed, based on your environment. 4.3.2 Create an Apache Tomcat HTTPS Virtual Service The following are the steps involved and the recommended settings to configure the Apache Tomcat HTTPS Virtual Service: 1. In the main menu of the LoadMaster WUI, go to Virtual Services > Add New. 2. Type a valid Virtual Address. 3. Type 443 as the Port. 4. Enter a recognizable Service Name, such as Apache Tomcat HTTPS Virtual Service. 5. Click Add this Virtual Service. 6. Configure the settings as recommended in the following table: Section Option Value Comment Standard Options Persistence Mode Timeout Scheduling Method Idle Connection Timeout Source IP Address 1 Hour least connection 900 Advanced Add a Port 80 https://%h%s Click Add HTTP Redirector. This automatically Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 10

Section Option Value Comment Properties Redirector VS creates a redirect on port 80. 7. Add the Real Servers: a) Expand the Real Servers section. b) Click Add New. c) Enter the address of the relevant Real Server. d) Complete the other fields as required. e) Click Add this Real Server then click OK to the pop-up message. f) Repeat the steps above to add more Real Servers as needed, based on your environment. Create an Apache Tomcat HTTPS Redirect Virtual Service Clicking the Add HTTP Redirector button automatically creates a port 80 redirect Virtual Service. This is optional, but the purpose of this Virtual Service is to redirect any clients who have connected using HTTP to the HTTPS Virtual Service. KEMP also recommends changing the Real Server Check Method and Persistence Mode to None. 4.3.3 Create an Apache Tomcat HTTPS Offloaded Virtual Service The following are the steps involved and the recommended settings to configure the Apache Tomcat HTTPS Offloaded Virtual Service: 1. In the main menu of the LoadMaster WUI, go to Virtual Services > Add New. 2. Type a valid Virtual Address. Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 11

3. Type 443 as the Port. 4. Enter a recognizable Service Name, such as Apache Tomcat HTTPS Offloaded Virtual Service. 5. Click Add this Virtual Service. 6. Configure the settings as recommended in the following table: Section Option Value Comments Standard Options Persistence Mode Timeout Cookie name Scheduling Method Idle Connection Timeout Active Cookie 1 Hour JSESSSIONID least connection 900 SSL Properties SSL Acceleration Enabled Cipher Set BestPractices Advanced Properties Add a Port 80 Redirector VS https://%h%s Click Add HTTP Redirector. This automatically creates a redirect on port 80. 7. Add the Real Servers: a) Expand the Real Servers section. b) Click Add New. c) Enter the address of the relevant Real Server. d) Complete the other fields as required. e) Click Add this Real Server then click OK to the pop-up message. f) Repeat the steps above to add more Real Servers as needed, based on your environment. Create an Apache Tomcat HTTPS Offloaded HTTP Redirect Virtual Service Clicking the Add HTTP Redirector button automatically creates a port 80 redirect Virtual Service. This is optional, but the purpose of this Virtual Service is to redirect any clients who have connected using HTTP Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 12

to the HTTPS Virtual Service. KEMP also recommends changing the Real Server Check Method and Persistence Mode to None. 4.3.4 Create an Apache Tomcat HTTPS Re-encrypt Virtual Service The following are the steps involved and the recommended settings to configure the Apache Tomcat HTTPS Re-encrypt Virtual Service: 1. In the main menu of the LoadMaster WUI, go to Virtual Services > Add New. 2. Type a valid Virtual Address. 3. Type 443 as the Port. 4. Enter a recognizable Service Name, such as Apache Tomcat HTTPS Re-encrypt Virtual Service. 5. Click Add this Virtual Service. 6. Configure the settings as recommended in the following table: Section Option Value Comments Standard Options Persistence Mode Timeout Cookie name Scheduling Method Idle Connection Timeout Active Cookie 1 Hour JSESSSIONID least connection 900 Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 13

Section Option Value Comments SSL Properties SSL Acceleration Enabled Cipher Set Best Practices Advanced Properties Add a Port 80 Redirector VS https://%h%s Click Add HTTP Redirector. This automatically creates a redirect on port 80. 7. Add the Real Servers: a) Expand the Real Servers section. b) Click Add New. c) Enter the address of the relevant Real Server. d) Complete the other fields as required. e) Click Add this Real Server then click OK to the pop-up message. f) Repeat the steps above to add more Real Servers as needed, based on your environment. Create an Apache Tomcat HTTPS Re-encrypt Redirect Virtual Service Clicking the Add HTTP Redirector button automatically creates a port 80 redirect Virtual Service. This is optional, but the purpose of this Virtual Service is to redirect any clients who have connected using HTTP to the HTTPS Virtual Service. KEMP also recommends changing the Real Server Check Method and Persistence Mode to None. Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 14

References References Unless otherwise specified, the following documents can be found at http://kemptechnologies.com/documentation. Virtual Services and Templates, Feature Description Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 15

Document History Document History Date Change Reason for Change Version Resp. Nov 2016 Initial draft First release 1.0 POC Jan 2017 Minor changes Updated Copyright Notices 2.0 LB July 2017 Minor changes Enhancements made 3.0 LB Copyright 2002-2017 KEMP Technologies, Inc. All Rights Reserved. 16