Brocade Virtual Traffic Manager and Magento Deployment Guide



Similar documents
Brocade Virtual Traffic Manager and Microsoft IIS Deployment Guide

Brocade Virtual Traffic Manager and Microsoft Outlook Web Access Deployment Guide

Brocade Virtual Traffic Manager and Oracle EBS 12.1 Deployment Guide

Brocade Virtual Traffic Manager and Oracle Application Server 10G Deployment Guide

Brocade Virtual Traffic Manager and Microsoft SharePoint 2010 Deployment Guide

Brocade Virtual Traffic Manager and Oracle Enterprise Manager 12c Release 2 Deployment Guide

Brocade Virtual Traffic Manager and Oracle WebLogic Applications Deployment Guide

Brocade Virtual Traffic Manager and Microsoft SharePoint 2013 Deployment Guide

Brocade Virtual Traffic Manager and Microsoft Skype for Business 2015 Deployment Guide

Brocade Virtual Traffic Manager and Microsoft Exchange 2013 Deployment Guide

VMware Horizon Mirage Load Balancing

Brocade Virtual Traffic Manager and VMware Horizon View Servers Deployment Guide

WHITE PAPER. Enhancing Application Delivery and Load Balancing on Amazon Web Services with Brocade Virtual Traffic Manager

Brocade Virtual Traffic Manager

Securing Cloud Applications with a Distributed Web Application Firewall

Deployment Guide Microsoft IIS 7.0

Brocade Virtual Traffic Manager

The Road to SDN: Software-Based Networking and Security from Brocade

The Business Case for Software-Defined Networking

Deployment Guide Oracle Siebel CRM

Diagnostics and Troubleshooting Using Event Policies and Actions

Brocade Network Advisor High Availability Using Microsoft Cluster Service

DATA CENTER. Best Practices for High Availability Deployment for the Brocade ADX Switch

Resonate Central Dispatch

Brocade One Data Center Cloud-Optimized Networks

Brocade 5600 vrouter License and Entitlement Management

Deploying the BIG-IP System with Oracle E-Business Suite 11i

White Paper A10 Thunder and AX Series Load Balancing Security Gateways

Scalable Approaches for Multitenant Cloud Data Centers

Deployment Guide MobileIron Sentry

Deployment Guide AX Series with Citrix XenApp 6.5

Brocade SAN Scalability Guidelines: Brocade Fabric OS v7.x

Transparent Cache Switching Using Brocade ServerIron and Blue Coat ProxySG

Deploying the BIG-IP LTM with. Citrix XenApp. Deployment Guide Version 1.2. What s inside: 2 Prerequisites and configuration notes

How To Connect Virtual Fibre Channel To A Virtual Box On A Hyperv Virtual Machine

WHITE PAPER. Cloud Networking: Scaling Data Centers and Connecting Users

Flexible Routing and Load Control on Back-End Servers. Controlling the Request Load and Quality of Service

Deployment Guide AX Series with Active Directory Federation Services 2.0 and Office 365

Global Load Balancing with Brocade Virtual Traffic Manager

Brocade SDN/OpenFlow. Norival Figueira Office of the CTO. January 9, /2015 BROCADE COMMUNICATIONS SYSTEMS, INC. ALL RIGHTS RESERVED.

DEPLOYMENT GUIDE Version 1.1. Deploying F5 with Oracle Application Server 10g

Load Balancing Security Gateways WHITE PAPER

DEPLOYMENT GUIDE Version 1.0. Deploying the BIG-IP LTM with Apache Tomcat and Apache HTTP Server

Microsoft Lync Server 2010

Brocade Fabric OS DATA CENTER. Target Path Selection Guide January 4, 2016

Deploying Microsoft SharePoint Services with Stingray Traffic Manager DEPLOYMENT GUIDE

Brocade Network Advisor: CLI Configuration Manager

Introduction to the EIS Guide

DEPLOYMENT GUIDE DEPLOYING F5 WITH MICROSOFT WINDOWS SERVER 2008

DEPLOYMENT GUIDE Version 1.2. Deploying F5 with Oracle E-Business Suite 12

Cloud Optimized Performance: I/O-Intensive Workloads Using Flash-Based Storage

Configuring Nex-Gen Web Load Balancer

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

NEFSIS DEDICATED SERVER

How To Get A Virtual Managed Enterprise Router From Overure And Brocade

DEPLOYMENT GUIDE Version 1.0. Deploying the BIG-IP LTM with Microsoft Windows Server 2008 R2 Remote Desktop Services

DEPLOYMENT GUIDE. Deploying the BIG-IP LTM v9.x with Microsoft Windows Server 2008 Terminal Services

DEPLOYMENT GUIDE Version 1.2. Deploying F5 with Microsoft Exchange Server 2007

DEDICATED NETWORKS FOR IP STORAGE

Brocade Monitoring Services Security White Paper

Deploying F5 to Replace Microsoft TMG or ISA Server

The Brocade SDN Controller in Modern Service Provider Networks

Configuring Load Balancing

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

HP IMC Firewall Manager

DEPLOYMENT GUIDE Version 1.1. Deploying F5 with IBM WebSphere 7

Brocade Virtual Traffic Manager: Virtual Appliance Installation and Getting Started Guide

Deploying Brocade Network Advisor in a Secure Environment

Microsoft SharePoint 2013 with Citrix NetScaler

Deploying the Barracuda Load Balancer with Office Communications Server 2007 R2. Office Communications Server Overview.

Deployment Guide May-2015 rev. a. APV Oracle PeopleSoft Enterprise 9 Deployment Guide

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

Microsoft SharePoint 2010 Deployment with Coyote Point Equalizer

The Application Delivery Controller Understanding Next-Generation Load Balancing Appliances

Virtual Connect Enterprise Manager Server Guide

Load balancing Microsoft IAG

Deploying the BIG-IP System v10 with Oracle Application Server 10g R2

Brocade VCS Fabrics: The Foundation for Software-Defined Networks

REQUIREMENTS AND INSTALLATION OF THE NEFSIS DEDICATED SERVER

Setting Up SSL on IIS6 for MEGA Advisor

VCS Monitoring and Troubleshooting Using Brocade Network Advisor


Deploying the BIG-IP LTM system and Microsoft Windows Server 2003 Terminal Services

DEPLOYMENT GUIDE DEPLOYING F5 WITH SAP NETWEAVER AND ENTERPRISE SOA

DEPLOYMENT GUIDE Version 1.0. Deploying the BIG-IP LTM with the Zimbra Open Source and Collaboration Suite

Application Delivery Controller (ADC) Implementation Load Balancing Microsoft SharePoint Servers Solution Guide

DEPLOYMENT GUIDE Version 1.1. Deploying the BIG-IP LTM v10 with Citrix Presentation Server 4.5

Reverse Proxy with SSL - ProxySG Technical Brief

Radware s AppDirector and AppXcel An Application Delivery solution for applications developed over BEA s Weblogic

Thunder ADC for Epic Systems

DEPLOYMENT GUIDE DEPLOYING THE BIG-IP SYSTEM WITH MICROSOFT INTERNET INFORMATION SERVICES (IIS) 7.0

Fibre Channel over Ethernet: Enabling Server I/O Consolidation

DEPLOYMENT GUIDE CONFIGURING THE BIG-IP LTM SYSTEM WITH FIREPASS CONTROLLERS FOR LOAD BALANCING AND SSL OFFLOAD

Load Balancing for Microsoft Office Communication Server 2007 Release 2

Transcription:

September 2015 Brocade Virtual Traffic Manager and Magento Deployment Guide

2015 Brocade Communications Systems, Inc. All Rights Reserved. ADX, Brocade, Brocade Assurance, the B-wing symbol, DCX, Fabric OS, HyperEdge, ICX, MLX, MyBrocade, OpenScript, The Effortless Network, VCS, VDX, Vplane, and Vyatta are registered trademarks, and Fabric Vision and vadx, vtm, vwaf and SD are trademarks of Brocade Communications Systems, Inc., in the United States and/or in other countries. Other brands, products, or service names mentioned may be trademarks of others. Notice: This document is for informational purposes only and does not set forth any warranty, expressed or implied, concerning any equipment, equipment feature, or service offered or to be offered by Brocade. Brocade reserves the right to make changes to this document at any time, without notice, and assumes no responsibility for its use. This informational document describes features that may not be currently available. Contact a Brocade sales office for information on feature and product availability. Export of technical data contained in this document may require an export license from the United States government. The authors and Brocade Communications Systems, Inc. assume no liability or responsibility to any person or entity with respect to the accuracy of this document or any loss, cost, liability, or damages arising from the information contained herein or the computer programs that accompany it. The product described by this document may contain open source software covered by the GNU General Public License or other open source license agreements. To find out which open source software is included in Brocade products, view the licensing terms applicable to the open source software, and obtain a copy of the programming source code, please visit http://www.brocade.com/support/oscd. Brocade Virtual Traffic Manager and Magento Deployment Guide Page 2

Contents Preface... 4 About This Guide... 4 Audience... 4 Contacting Brocade... 4 Internet... 4 Technical Support... 4 Professional Services... 4 Chapter 1: Solution Overview... 5 Virtual Traffic Manager Overview... 5 Performance... 5 Reliability and scalability... 5 Advanced scripting and application intelligence... 5 Application acceleration... 5 Application-layer security... 6 Magento... 6 Chapter 2: Magento Architecture... 6 Chapter 3: Configure Magento for Using vtm... 6 Decouple the Administrative Interface... 6 Change Magento Base URLs... 7 Enable Apache event Multi-Processing Module (MPM)... 7 Offload SSL to vtm... 7 Chapter 4: Deploying Traffic Manager for Magento... 8 Requirements... 8 Configure vtm for Magento... 8 Create Traffic IP Group... 9 Configure Health Monitor... 9 Create Pool... 9 Create Virtual Server... 9 SSL Decryption... 10 Configure Traffic Script... 10 Configure Session Persistence... 11 Configuration Summary... 11 Chapter 5: Conclusion... 11 Page 3 Brocade Virtual Traffic Manager and Magento Deployment Guide

Preface Welcome to the Brocade Virtual Traffic Manager (vtm) and Magento Deployment Guide. Read this preface for an overview of the information provided in this guide and contact information. This preface includes the following sections: About This Guide Contacting Brocade About This Guide The Brocade Virtual Traffic Manager and Magento Deployment guide describes optimization of Magento Server farms. Audience This guide is written for network operations professionals, server administrators and DevOps professionals familiar with administering and managing Application Delivery Controllers (ADCs), Servers and Applications. You must also be familiar with: Magento Brocade Virtual Traffic Manager For more details on the Brocade vadc product family, see: http://www.brocade.com/vadc Contacting Brocade This section describes how to contact departments within Brocade. Internet You can learn about Brocade products through the company Web site: http://www.brocade.com. Technical Support If you have problems installing, using, or replacing Brocade products, contact Brocade Support or your channel partner who provides support. To contact Brocade Support, see http://www.brocade.com/en/support.html. Professional Services Brocade Global Services has the expertise to help organizations build scalable, and efficient cloud infrastructures. Leveraging 15 years of expertise in storage, networking, and virtualization, Brocade Global Services delivers world- class professional services, technical support, and education services, enabling organizations to maximize their Brocade investments, accelerate new technology deployments, and optimize the performance of networking infrastructures. Brocade Virtual Traffic Manager and Magento Deployment Guide Page 4

Chapter 1: Solution Overview This chapter includes the following sections: Virtual Traffic Manager Overview Magento Virtual Traffic Manager Overview Brocade Virtual Traffic Manager (vtm) is a software-based application delivery controller (ADC) designed to deliver faster and more reliable access to public web sites and private applications. vtm frees applications from the constraints of legacy, proprietary, hardware-based load balancers, which enables them to run on any physical, virtual, or cloud environment. With vadc products from Brocade, organizations can: Make applications more reliable with local and global load balancing Scale application servers by up to 3x by offloading TCP and SSL connection overhead Accelerate applications by up to 4x by using web content optimization (WCO) Secure applications from the latest application attacks, including SQL injection, XSS, CSRF, and more Control applications effectively with built-in application intelligence and full-featured scripting engine Virtual Traffic Manager offers much more than basic load balancing. It controls and optimizes end-user services by inspecting, transforming, prioritizing, and routing application traffic. The powerful TrafficScript engine facilitates the implementation of traffic management policies that are unique to an application by allowing organizations to build custom functionality or to leverage existing features in Virtual Traffic Manager in a specialized way. With vtm, organizations can deliver: Performance Improve application performance for users by offloading encryption and compression from the web server by dynamic caching and reducing the number of TCP sessions on the application. Reliability and scalability Increase application reliability by load balancing traffic across web and application servers, balancing load across multiple data centers (private or public clouds), monitoring the response time of servers in real-time to decide the fastest way to deliver a service, protecting against traffic surges, and by managing the bandwidth and rate of requests used by different classes of traffic. Advanced scripting and application intelligence Manage application delivery more easily with fine-grained control of users and services using TrafficScript, an easy-to-use scripting language that can parse any user transaction, and take specific, real-time action based on user, application, request, or more. Development teams use TrafficScript to enable a point of control in distributed applications, while operations teams use it to quickly respond to changing business requirements or problems within an application before developers can fix it. Application acceleration Dramatically accelerate web-based applications and websites in real-time with optional web content optimization (WCO) functionality. It dynamically groups activities for fewer long distance round trips, resamples and sprites images to reduce bandwidth, and minifies JavaScript and combines style sheets to give the best possible response time for loading a web page on any browser or device. Page 5 Brocade Virtual Traffic Manager and Magento Deployment Guide

Application-layer security Enhance application security by filtering out errors in web requests, and protecting against external threats, with the option of a comprehensive Layer-7 firewall to defend against deliberate attacks. Magento Magento is an open source e-commerce platform that is available with both a free community edition and a paid enterprise edition. The Magento e-commerce platform serves more than 240,000 merchants worldwide and is supported by a global ecosystem of solution partners and third-party developers. Magento is a feature-rich, open-source, enterprise-class platform that offers merchants a high degree of flexibility and control over the user experience, catalog, content and functionality of their online store. Chapter 2: Magento Architecture The deployment architecture including the Traffic Manager and Magento servers is shown in the following topology: Figure 2-1 vtm and Magento The Traffic IP will be a public facing IP address for the Magento e-commerce site such that clients from several locations can connect. This example shows a couple of Magento web servers but they can scale higher in production environments. Additional Traffic Manager instances should be added for high availability needs. Chapter 3: Configure Magento for Using vtm Decouple the Administrative Interface The first thing that needs to be done is to decouple the Magento administrative interface from the rest of the site. This separates the management and data planes allowing the Magento administrative interface to remain accessible as changes are being made to the vtm. To decouple the administrative interface, navigate to System -> Configuration -> Advanced -> Admin -> Admin Base URL in the admin UI and set Use Custom Admin URL to Yes. The Custom Admin URL should then be changed to the desired IP address. Brocade Virtual Traffic Manager and Magento Deployment Guide Page 6

Change Magento Base URLs The IP address for Magento should be changed to reference the Traffic IP of the vtm. In the Magento administrative interface, go to System -> Configuration -> General -> Web and change both the Secure Base URL and Unsecure Base URL to the vtm Traffic IP. Enable Apache event Multi-Processing Module (MPM) To get the most scale out of Apache it should configured to use the event Multi-Processing Module (MPM). In this mode more requests can be served simultaneously by passing off some processing work to supporting threads, freeing up the main threads to work on new requests. The below instructions enable the event MPM for Apache on Ubuntu Server. In a console window, execute: 1. apt-get install -y apache2-mpm-worker libapache2-mod-fastcgi php5-fpm php5 2. a2enmod actions fastcgi alias 3. Create a file called /etc/apache2/conf.d/php5-fpm and add the following content: <IfModule mod_fastcgi.c> - AddHandler php5-fcgi.php Action php5-fcgi /php5-fcgi Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 pass-header Authorization </IfModule> 4. /etc/init.d/apache2 restart Offload SSL to vtm Magento should be configured to offload SSL encryption and decryption duties to the Traffic Manager. This requires editing the base index.php file. Without this change, Magento will get into an infinite HTTP 302 redirect loop. vtm will connect to Magento using plain HTTP because SSL is decrypted by it. Magento will then redirect back to the SSL site, starting the loop. The code change will check for a vtm-ssl-offloaded variable in the HTTP header and disable redirection if it is present. This variable will be added with the help of a TrafficScript rule. 1. Add the following lines of code right above the line that begins with Mage::run in index.php. This file is located in the base Magento installation directory, usually /var/www/magento/. /** ** SSL Offloaded by vtm **/ if( isset($_server['vtm_ssl_offloaded']) ) { } $_SERVER['HTTPS'] = 'on'; $_SERVER['SERVER_PORT'] = 443; Page 7 Brocade Virtual Traffic Manager and Magento Deployment Guide

2. Save the file and restart apache by issuing /etc/init.d/apache2 restart from the command line. 3. In the Magento admin console, go to System -> Configuration -> General -> Web -> Secure. Change Base URL from http to https and enable Use Secure URLs in Frontend. This will tell Magento to use https:// for protected content such as Checkout, My Account, etc. Chapter 4: Deploying Traffic Manager for Magento This chapter describes the process for deploying Virtual Traffic Manager to optimize the Magento server installation. It includes the following sections: Requirements Configure vtm for Magento Requirements Brocade Virtual Traffic Manager (10.1 or later) Magento Community Edition or Enterprise Edition (v1.7 or later) Note: This deployment guide was certified while the product was with Riverbed and for 9.x or earlier versions of the Traffic Manager. Configure vtm for Magento This section contains step by step instructions on configuring Traffic Manager for Magento suite: Component Procedure Description Virtual Traffic Manager (once) Create Traffic IP Group for Magento A single Traffic IP Group must be created For details, see Create Traffic IP Group Configure HTTP health monitor For details, see Configure Health Monitor Create Pool for the Magento server farms (once for each server farm) A Pool needs to have a set of servers to load-balance. Enter the hostname or IP address of the node along with the TCP/UDP port For details, see Create Pool Create Virtual Server for the application servers for HTTPS Create and associate the Virtual Server to the server pool. For details, see Create Virtual Server SSL decryption Configure SSL Decryption to enable SSL offloads. For details, see SSL Decryption Configure Session Persistence Configure Session persistence to persist client connections. For details, see Configure Session Persistence Configure and associate TrafficScript Configure and associate Traffic script for adding SSL offload header to HTTPS virtual server For details, see Configure Traffic Script Brocade Virtual Traffic Manager and Magento Deployment Guide Page 8

Create Traffic IP Group A Traffic IP Group (also known as a Virtual IP) will need to be created on which the Virtual server will be listening on. To create a new Traffic IP Group: 1. Navigate to Services -> Traffic IP Groups and scroll down to Create a new Traffic IP Group. 2. Fill in the fields as follows: Name: A descriptive name for the application server. IP Addresses: An IP address that is mapped to the FQDN of the application. 3. Click Create Traffic Group. Configure Health Monitor The HTTP monitor is used for port 80 on the Magento pool. 1. Navigate to Catalogs -> Monitors. 2. Scroll down to Create new monitor. 3. Enter a Name for the new monitor. Set the Type to HTTP and the Scope to Node. 4. Click Create Monitor. 5. In the subsequent configuration page, scroll down and change the Path to /magento/index.php. 6. Change body_regex to.* Create Pool A pool has to be created for each application server farm as shown in the topology diagram. To create a new pool: 1. Navigate to Services -> Pools and scroll down to Create a new Pool. 2. Fill in the fields as follows: Pool Name: A descriptive name for the pool, ex. Magento1-server. Nodes: hostname:80 or ipaddress:80. Monitor: Select the created health monitor (in the step above). Create Virtual Server Create a Virtual Server that will handle all the application traffic. To create a new Virtual Server: 1. Navigate to Services -> Virtual Servers and scroll down to Create a new Virtual Server. 2. Enter the following: Virtual Server Name: A descriptive name for the Virtual Server. Protocol: HTTP. Port: 443. Default Traffic Pool: Select the pool created in the step above. 3. Click Create Virtual Server. 4. In the next screen, under Listening on, select Traffic IP Groups and check the appropriate Traffic IP Group that was created earlier. Page 9 Brocade Virtual Traffic Manager and Magento Deployment Guide

5. Set Enabled to Yes. 6. Click the Update button to apply changes. SSL Decryption In order to perform SSL decryption, the certificate and the private key used for the Virtual Server created in the previous step must be imported into the Traffic Manager. 1. Navigate to the Catalogs -> SSL -> SSL Certificates catalog. 2. Click Import Certificate to import the appropriate certificate. After importing the certificate, enable SSL decryption on the Virtual Server created: 1. Navigate to Services -> Virtual Servers and select the virtual server that will be performing SSL decryption. 2. Scroll down and click SSL Decryption. 3. Set ssl_decrypt to Yes. 4. Select the certificate imported in the previous step. 5. Scroll down to the bottom of the page and click Update. Configure Traffic Script This TrafficScript rule will add an HTTP header named vtm-ssl-offloaded. This will be used by Magento to recognize HTTPS traffic. #// TS Rule for adding a header $debug = 0; // Change value to 1 if debug needed if(!http.headerexists("vtm-ssl-offloaded ")) { { } http.addheader("vtm-ssl-offloaded ", "on "); if ($debug > 0) { log.info("header vtm-ssl-offloaded added ");} Associate the TrafficScript to the Virtual Server: 1. Navigate to Services --> Virtual Server. 2. Click the Virtual Server that was created above. 3. Click Rules. 4. Under Request Rules, select the rule that was created in the above step from the dropdown. 5. Click Add Rule. Brocade Virtual Traffic Manager and Magento Deployment Guide Page 10

Configure Session Persistence To ensure that clients persist their connections to the load-balanced servers after login, configure the following: 1. Go to Catalogs -> Persistence and create a new class called Magento Persistence. 2. Set this class to use the Transparent Session Affinity method and failure mode of choose a new node to use. 3. Click Update to finish. 4. Go to Services -> Pools -> <Magento pool> -> Session Persistence. 5. Select the class from the list and click Update. Configuration Summary By accessing the Services Config Summary on the webgui, a complete snapshot of all the configured services is provided. This is very useful table to glance through to get a good understanding of how the services are configured. Chapter 5: Conclusion This document briefly discusses how to configure Traffic Manager to load balance traffic to a farm of Magento servers. Traffic Manager is able to manage traffic in a wide variety of ways, to improve the performance, security, reliability and integrity. Please refer to the product documentation on the Brocade Community Forums (http://community.brocade.com) for examples of how Brocade Virtual Traffic Manager can be deployed to meet a range of service hosting problems. Page 11 Brocade Virtual Traffic Manager and Magento Deployment Guide