DB2 Connect for NT and the Microsoft Windows NT Load Balancing Service



Similar documents
Deploying Windows Streaming Media Servers NLB Cluster and metasan

Network Load Balancing

Building a Highly Available and Scalable Web Farm

MailMarshal SMTP in a Load Balanced Array of Servers Technical White Paper September 29, 2003

LOAD BALANCING 2X APPLICATIONSERVER XG SECURE CLIENT GATEWAYS THROUGH MICROSOFT NETWORK LOAD BALANCING

H0/H2/H4 -ECOM100 DHCP & HTML Configuration. H0/H2/H4--ECOM100 DHCP Disabling DHCP and Assigning a Static IP Address Using HTML Configuration

Configuring Windows Server Clusters

S y s t e m A r c h i t e c t u r e

Application Development Guide: Building and Running Applications

Guideline for setting up a functional VPN

Configuring MassTransit Server to listen on ports less than 1024 using WaterRoof on Macintosh Workstations

PC-Duo Web Console Installation Guide

Version Overview. Business value

Querying Databases Using the DB Query and JDBC Query Nodes

Welcome to: Overview of DB2 Universal Database

EXPRESSCLUSTER X for Windows Quick Start Guide for Microsoft SQL Server Version 1

Configuration of a Load-Balanced and Fail-Over Merak Cluster using Windows Server 2003 Network Load Balancing

How To Install Linux Titan

Network Configuration Settings

PC/POLL SYSTEMS Version 7 Polling SPS2000 Cash Register TCP/IP Communications

Hands-On Microsoft Windows Server Chapter 12 Managing System Reliability and Availability

Using HP Systems Insight Manager to achieve high availability for Microsoft Team Foundation Server

FileMaker Server 15. Getting Started Guide

Setting up an MS SQL Server for IGSS

Host Installation on a Terminal Server

How to install and use CrossTec Remote Control or SchoolVue in a Virtual and or Terminal Service environment

PIM31 Remote Setup and Operational Procedures

ReadyNAS Remote Troubleshooting Guide NETGEAR

Remote PC Guide Series - Volume 1

1 Download & Installation Usernames and... Passwords

Virtual Machines.

CREATING AN IKE IPSEC TUNNEL BETWEEN AN INTERNET SECURITY ROUTER AND A WINDOWS 2000/XP PC

IBM Remote Lab Platform Citrix Setup Guide

VMWARE WHITE PAPER 1

7 6.2 Windows Vista / Windows IP Address Syntax Mobile Port Windows Vista / Windows Apply Rules To Your Device

Chapter 2 Preparing Your Network

PrivateWire Gateway Load Balancing and High Availability using Microsoft SQL Server Replication

FileMaker 11. ODBC and JDBC Guide

PREFACE iss.01 -

VIA COLLAGE Deployment Guide

Note: This case study utilizes Packet Tracer. Please see the Chapter 5 Packet Tracer file located in Supplemental Materials.

FileMaker 12. ODBC and JDBC Guide

Active-Active and High Availability

Printing Options. Netgear FR114P Print Server Installation for Windows XP

Printer Management Software

VIA CONNECT PRO Deployment Guide

How to Configure Informix Connect and ODBC

How To Connect To Bloomerg.Com With A Network Card From A Powerline To A Powerpoint Terminal On A Microsoft Powerbook (Powerline) On A Blackberry Or Ipnet (Powerbook) On An Ipnet Box On

RLP Citrix Setup Guide

Virtual Server in SP883

Using AnywhereUSB to Connect USB Devices

Vector Asset Management User Manual

Virtual Desktop Infrastructure in

Xerox 700 Digital Color Press with Integrated Fiery Color Server. Utilities

QUANTIFY INSTALLATION GUIDE

This How To guide will take you through configuring Network Load Balancing and deploying MOSS 2007 in SharePoint Farm.

Using Virtual IP Addressing. with Bus-Tech TCP/IP Controllers

Networking Basics for Automation Engineers

이 기기는 업무용 급 으로 전자파적합등록을 한 기기이오니 판매자 또는 사용자는 이점을 주의하시기 바라며 가정 외의 지역에서 사용하는 것을 목적으로 합니다

StreamServe Persuasion SP4

IBM Communications Server for Linux - Network Optimization for On Demand business

Remote Desktop Services Overview. Prerequisites. Additional References

F-Secure Messaging Security Gateway. Deployment Guide

Technical Note. vsphere Deployment Worksheet on page 2. Express Configuration on page 3. Single VLAN Configuration on page 5

Nexio Connectus with Nexio G-Scribe

1 PC to WX64 direction connection with crossover cable or hub/switch

Microsoft Windows Storage Server 2003 R2

CONFIGURING MNLB FOR LOAD BALANCING EXCHANGE 2013 CU2 CAS SERVERS FOR HIGH AVAILABILITY

REQUIREMENTS AND INSTALLATION OF THE NEFSIS DEDICATED SERVER

Using a simple crossover RJ45 cable, you can directly connect your Dexter to any computer.

How to Configure an Initial Installation of the VMware ESXi Hypervisor

1. Hardware Installation

Active Directory Management. Agent Deployment Guide

The Barracuda Network Connector. System Requirements. Barracuda SSL VPN

Running FileMaker Pro 5.0v3 on Windows 2000 Terminal Services

Converting InfoPlus.21 Data to a Microsoft SQL Server 2000 Database

Configuring Network Load Balancing with Cerberus FTP Server

WorldExtend IronDoor 3.5 Publishing a Terminal Services Application

Network Licensing. White Paper 0-15Apr014ks(WP02_Network) Network Licensing with the CRYPTO-BOX. White Paper

ITG Software Engineering

System Requirements - Table of Contents

Biznet GIO Cloud Connecting VM via Windows Remote Desktop

Using SQL-server as database engine

StarMOBILE Network Configuration Guide. A guide to configuring your StarMOBILE system for networking

FileMaker 13. ODBC and JDBC Guide

ipad Installation and Setup

1 crossover cable. the PCs. network

CS 326e F2002 Lab 1. Basic Network Setup & Ethereal Time: 2 hrs

P-660R-T1/T3 v2 Quick Start Guide

Aqua Connect Load Balancer User Manual (Mac)

Benchmarks of SQL Query Performance for ODBC and Oracle Call Interface

Computers: Tools for an Information Age

Configuring Network Address Translation (NAT)

CIMHT_006 How to Configure the Database Logger Proficy HMI/SCADA CIMPLICITY

Ultra Thin Client TC-401 TC-402. Users s Guide

KonyOne Server Prerequisites _ MS SQL Server

FabulaTech Products Advanced Communications Solutions

SNMP Informant. SNMP Informant, the default Microsoft SNMP extension agents and WMI January 2009

Transcription:

DB2 Connect for NT and the Microsoft Windows NT Load Balancing Service Achieving Scalability and High Availability Abstract DB2 Connect Enterprise Edition for Windows NT provides fast and robust connectivity to IBM mainframe databases from desktop and web applications. Although DB2 Connect fully exploits the capabilities of the Intel platform and the NT operating system, multiple servers are often required to handle the workload. Running DB2 Connect in conjunction with Microsoft s new Windows NT Load Balancing Service provides the ability to expand capacity beyond the abilities of a single server. This document will explain the capabilities, advantages, and limitations of this approach.

INTRODUCTION IBM's DB2 for OS/390, DB2 for AS/400, and DB2 for VSE & VM databases continue to be the systems of choice for managing critical data for the world's largest organizations. While these host and AS/400 databases manage the data, there is a great demand to integrate this data with applications running on PCs, UNIX workstations, and Apple Macintosh workstations. The DB2 Connect Enterprise Edition product is a host data access server that provides managed connectivity from desktop and web applications to these databases. DB2 Connect for NT provides access to those databases in a cost-effective way by using a standard architecture for managing distributed data, known as Distributed Relational Database Architecture (DRDA). Use of DRDA allows your applications to establish a fast connection to host and AS/400 databases without expensive host components or proprietary gateways. DB2 Connect products provide a run-time environment for database applications that are written in C, C++, Java, COBOL, FORTRAN, SmallTalk, REXX, and other programming languages. Programmers can use the latest tools, such as Microsoft Visual Studio, Borland Delphi, and many others, to develop database applications using the following Application Programming Interfaces (APIs): Microsoft ODBC DB2 Embedded SQL (both static and dynamic) DB2 Call Level Interface Java Support (JDBC) Embedded SQL for Java (SQLJ) This allows you to use a wide range of off-the-shelf or custom-developed database applications, and provides application programmers with a broad selection of tools and functions. Many organizations choose to implement DB2 Connect on the Windows NT platform to take advantage of its ease of use and relatively inexpensive hardware. Although DB2 Connect fully exploits the capabilities of Windows NT and the Intel platform, through features like SMP support and multithreading, a single NT box cannot always meet the needs of the organization. Also, many organizations choose to implement DB2 Connect in phases and expand their capacity as the need arises. Implementing DB2 Connect with Microsoft Windows NT Load Balancing Service (WLBS), available as part of the Windows NT Server Enterprise Edition, can help meet both of these needs. WLBS allows up to 32 computers (called nodes or hosts) to provide TCP/IP services via a single IP address (or set of addresses). It is completely transparent to both the

client application and the target service, which in this case is DB2 Connect. WLBS statistically balances client requests across the machines in the cluster to achieve load balancing and scalability. WLBS also provides a degree of high availability by redistributing requests to other nodes in the event of a node failure.

HOW DOES IT WORK? DB2 Connect In a WLBS environment, DB2 Connect operates exactly like it would in any Windows NT environment. Options for host connectivity are unchanged; both TCP/IP and SNA are possible. DB2 Connect is installed and configured as if it were not a part of the WLBS cluster. As mentioned previously, DB2 Connect is completely unaware of WLBS. The only restriction is that all client requests must be TCP/IP. WLBS does not balance any protocol other than TCP/IP. WLBS To understand how WLBS distributes requests among multiple DB2 Connect servers, let s take a quick look at it s architecture. WLBS installs as an NT networking driver and will act as a virtual network interface card (). Figure 1 shows how the components in a DB2 Connect/WLBS implementation interact. In a typical configuration, one will be dedicated to cluster traffic and one to other network traffic. In WLBS terminology, the adapter which is used for WLBS clustering is the cluster adapter and the other adapter is the dedicated adapter. In this example, DB2 Connect reaches the host via SNA (could also be TCP/IP) over the dedicated adapter and receives client requests via TCP/IP over the cluster adapter. Each cluster adapter is configured with the cluster s virtual IP address. WLBS uses Level 2 multicast to allow all cluster nodes to simultaneously listen to this virtual address. The WLBS driver resides between the and the TCP/IP layer to filter the requests for a particular node. Load Balancing WLBS Node DB2 Connect TCP/IP WLBS NT Kernel Figure 1: WLBS Architecture WLBS maps incoming client requests to a particular node based on the client IP address, port, and other information. Because database connections through DB2 Connect are conversational, it is critical that WLBS be configured to map all requests from a particular client to the DLC WLBS Node DB2 Connect TCP/IP WLBS NT Kernel DLC

same WLBS node. This is called single host affinity. What this means is that WLBS won t provide true work load balancing, since it is unaware of the true workload, but can merely attempt to evenly distribute the clients among the WLBS nodes. If each client has a similar workload, then the effect should be balanced activity across the servers. More specifically, if any single client (identified by an IP address) runs multiple connections thru DB2 Connect, this will be treated as a single connection by WLBS. Also, once a client has connected to a database through a particular node, all subsequent requests will go through that node unless the node fails or is removed from the cluster. Availability WLBS will automatically detect the failure of a cluster node and redistribute the requests for that node to other cluster nodes. WLBS nodes exchange messages to monitor the status of the cluster. WLBS provides protection from any failure that would prevent a node from exchanging these messages: node failure, WLBS failure, major OS failure, etc. It does not provide protection from failures like lost link to the host or DB2 Connect failure on a box. When WLBS detects a failed node, it invokes a process called convergence. During this process, the remaining nodes determine the state of the cluster and redistribute the load from the failed node. From a DB2 Connect perspective, the connection to the host will be lost and the client application will receive an error (most likely SQL30081, which indicates a communication error, or SQL0900 which indicates an application state error). If the application immediately attempts to reconnect to the database, it will then get a successful connection through one of the remaining nodes.

CONFIGURING WLBS WITH DB2 CONNECT For detailed WLBS installation and configuration consult the WLBS online help. For DB2 Connect, the multiple configuration is recommended since it allows you to split the client traffic and host traffic across multiple adapters, thus improving performance. Perhaps, the trickiest part of configuring WLBS is the network bindings. Microsoft Knowledge Base Article Q197991 provides good step-by-step instructions for this task. Configuring WLBS Parameters Figure 2 show the WLBS setup screen. This is where you define the IP information for the cluster (in the Cluster parameters section), the information unique to each node (the Host parameters), and which ports will be allowed to participate as balanced services, (the Port rules section). The cluster parameters should be the same on each node. The host parameters will contain information unique to the particular node, like the Priority (ID), which acts as both a priority for choosing a default node and as a unique identifier for each node, and the Dedicated IP address and Subnet mask. In a multiple environment, these refer to the IP information on the dedicated adpater, not the cluster adapter. This is used for remote administration and other tasks. Of primary importance are the Port rules. To enable DB2 Connect requests to be distributed, you must define a port rule (on all nodes) for the TCP/IP port that DB2 Connect is using. To define a rule for DB2 Connect, you must first verify that DB2 Connect on all cluster nodes is configured for the same port. To verify, open the DB2 Control Center,

right click on the DB2 Connect instance, select Setup communications..., and click the Properties button next to TCP/IP on the Setup Communications window. The Service name and Port number should be the same on all nodes. This is shown in Figure 3. To create the port rule in the WLBS setup window, enter the DB2 connect port number, 50000 by default, in both the start and end fields for the port range. This signifies the rule applies only to this one port. Choose either TCP or Both for protocol. Select Multiple hosts for filtering mode to indicate that this service will run on more than one cluster node. Select Single node Affinity. This ensures that all requests from a client go to the same node. Choose whether you want equal balancing or if you want a relative percentage of the workload for the specific node. Select Add. The rule should now show up in the list box in the lower right corner as shown in Figure 2. If you want to enable the Administration Server, create a similar rule for it s port 523. It is recommended that you access the Administration Server through the dedicated adapter, not the clustered services, since any changes would have to be done to each node anyway. Microsoft Knowledge Base Article Q198496 provides more information on adding port rules.

ADDITIONAL NOTES Performance WLBS s implementation allows it to operate without placing much additional burden on the CPU of the cluster node. Because its status messages are broadcast on the network and not on a private network, it adds addtional traffic. If the traffic is excessive, you can tune WLBS to help minimize the impact. Consult Microsoft Knowledge Base Article Q193601 for details on WLBS parameters. Unfortunately, WLBS itself does not provide any performance counters for monitoring its performance. Troubleshooting In addition to logging convergence and other status messages in the NT Event Log, WLBS provides a command interface, the WLBS command, to display status, configuration, event messages, and IP configuration information. This can be very helpful in resolving problems. This command also allows starting, stopping, suspending, resuming, etc of the WLBS services. Limitations WLBS is only available as part of Window NT Enterprise Edition and is only supported on Ethernet or FDDI LANs.

FOR MORE INFORMATION IBM DB2 Connect Home Page: Http://www.software.ibm.com/data/db2/db2connect/ IBM Data Management Home Page: Http://www.software.ibm.com/data/ IBM DB2 Product and Service Technical Library Http://www.software.ibm.com/data/db2/library/ Microsoft WLBS Home Page (and download site): www.microsoft.com/ntserver/ntserverenterprise/exec/feature/wlbs