Understanding Standby Control and Load Balancing for IBM ...
Transcript of Understanding Standby Control and Load Balancing for IBM ...
IBM Software Group
®
WebSphere® Support Technical Exchange
Understanding Standby Control and Load Balancing for IBM WebSphere DataPower SOA ApplianceClarissa Brown ([email protected])Daniel Dickerson ([email protected])WebSphere DataPower Support10 August 2010
IBM Software Group
WebSphere® Support Technical Exchange 2 of 33
Agenda
Standby ControlSelf-Balancing
Load Balancer GroupsIntelligent load distribution
IBM Software Group
WebSphere® Support Technical Exchange 3 of 33
Standby Group Overview / Configuration
Collection of ethernet interfaces on different appliances that share responsibility for one virtual IP address (VIP)
Basic Requirements:Must be on same network segment
Must be configured with same VIP, group number, and authentication token
IBM Software Group
WebSphere® Support Technical Exchange 4 of 33
Configuration continued...Restrictions:
Multiple interfaces on an appliance can NOT be defined in the same standby group
MUST be defined with unique priority numbers
IBM Software Group
WebSphere® Support Technical Exchange 5 of 33
Functionality Operates in active/standby mode
Interface with the highest priority will be the active member
Allows for interface failover to another device
IBM Software Group
WebSphere® Support Technical Exchange 6 of 33
Eth1 - BoxAIP address: 10.19.0.5/23Priority: 100
Virtual IP address: 10.19.0.1
Eth1 - BoxBIP address: 10.19.0.15/23Priority: 90
Active Passive
Connections
Standby Group Example
IBM Software Group
WebSphere® Support Technical Exchange 7 of 33
Eth1 - BoxAIP address: 10.19.0.5/23Priority: 100
Virtual IP address: 10.19.0.1
Eth1 - BoxBIP address: 10.19.0.15/23Priority: 90
ActiveDown
Connections
Standby Group Example
IBM Software Group
WebSphere® Support Technical Exchange 8 of 33
Most Common Problem
Pings or connections to the Virtual IP address (VIP) may timeout or become unresponsive
Problem Symptoms:
Ethernet interfaces switch between Active and Standby state every few seconds
Both interfaces flagged as Active
• Use CLI command 'show standby' to verify active/standby status
IBM Software Group
WebSphere® Support Technical Exchange 9 of 33
Best Practices to help avoid problem Ensure all basic configuration steps were followed (See DataPower
Administrator's Guide)
Additional configuration tips are recommended:
• Enable Spanning Tree PortFast (or Rapid Spanning Tree) on all switches connected to the DataPower appliances
• Standby group number should be a high value (> 20)
• See Technote 1423478 - Standby Control not working correctly on IBM® WebSphere DataPower SOA Appliance
http://www-01.ibm.com/support/docview.wss?uid=swg21420179
IBM Software Group
WebSphere® Support Technical Exchange 10 of 33
Self-balancing Overview
Allows two or more DataPower appliances to distribute connections amongst members within a standby group
Requires the Application Optimization (AO) licensed feature
Owner of the VIP (active) is the 'distributor' or 'forwarder' of the connections
If a standby device takes over and becomes active, it becomes the forwarder
IBM Software Group
WebSphere® Support Technical Exchange 11 of 33
Overview continued... All members in the group learn about all services on each device
Connections are forwarded based on service weights
Service weights can be 0 if the appliance is:running at 100% CPU
lost connectivity (i.e pulled Ethernet cable)
Ports go down
IBM Software Group
WebSphere® Support Technical Exchange 12 of 33
Enable/Disable Self-Balancing
Must be enabled on ALL devices within the standby group!!
IBM Software Group
WebSphere® Support Technical Exchange 13 of 33
Self-Balancing Example
IBM Software Group
WebSphere® Support Technical Exchange 14 of 33
Self-Balanced Service StatusCLI: show self-balanced-status
Local Self-Balanced ServicesCLI: show local-self-balanced-services
Status Examples
IBM Software Group
WebSphere® Support Technical Exchange 15 of 33
Common Problem All weights are zeroes for services on a standby device
Verify communication between the devices
Verify available resources (cpu, memory)
Ensure all configuration steps recommended for Standby Group are set
Collect packet capture, internal state error report with debug log level, CLI self-balanced status commands
IBM Software Group
WebSphere® Support Technical Exchange 16 of 33
Agenda
Standby ControlSelf-Balancing
Load Balancer GroupsIntelligent load distribution
IBM Software Group
WebSphere® Support Technical Exchange 17 of 33
Load Balancer Group Overview / Config
What is a Load Balancer Group for DataPower?
A load balancer group is a server pool that can provide redundancy among a collection of servers.
Used as the remote server to share load across backend servers or as failover support.
IBM Software Group
WebSphere® Support Technical Exchange 18 of 33
Load Balancer Groups
Load Balancer Algorithms
First alive Hash Least connections Round robin Weighted least connections (AO Only) Weighted round robin
IBM Software Group
WebSphere® Support Technical Exchange 19 of 33
Load Balancer Groups
Configuration
Under Objects ->
Network ->
Other ->
Load Balancer Group
IBM Software Group
WebSphere® Support Technical Exchange 20 of 33
Load Balancer Groups
Membership - Static or Dynamic
Static membership
Dynamic membership
IBM Software Group
WebSphere® Support Technical Exchange 21 of 33
Load Balancer Groups
Adding static members:
Click the Members tab.
IBM Software Group
WebSphere® Support Technical Exchange 22 of 33
Load Balancer Groups
Health checks
What do health checks accomplish?
What are the 3 Health States?
IBM Software Group
WebSphere® Support Technical Exchange 23 of 33
Load Balancer Groups
Best practices
Consider the type of traffic
Evaluate tradeoff between speed vs. intelligence
Consider the capacity of the backend
IBM Software Group
WebSphere® Support Technical Exchange 24 of 33
Load Balancer Groups
Common issues
Health Check failing
Actual Port different than expected
Timeout considerations
IBM Software Group
WebSphere® Support Technical Exchange 25 of 33
Intelligent load distribution using Option for Application Optimization feature
What is Intelligent Load Distribution?
How do you implement it?
Dynamic Configuration
IBM Software Group
WebSphere® Support Technical Exchange 26 of 33
Configuration
Install, configure, and start the ODCInfo application on the deployment manager of the WebSphere cell.
Modifying to use workload management
Intelligent load distribution using Option for Application Optimization feature
IBM Software Group
WebSphere® Support Technical Exchange 27 of 33
Configuration
Weighted least connections
Session AffinityPassiveActive-ConditionalActive
Intelligent load distribution using Option for Application Optimization feature
IBM Software Group
WebSphere® Support Technical Exchange 28 of 33
Intelligent load distribution using Option for Application Optimization feature
Best practices
Advantages for WebSphere Servers
Advantages for Non-WebSphere servers
IBM Software Group
WebSphere® Support Technical Exchange 29 of 33
Intelligent load distribution using Option for Application Optimization feature
Common issues
ODCInfo not updating
IBM Software Group
WebSphere® Support Technical Exchange 30 of 33
Summary
Standby Group & Self-Balancing OverviewConfiguration / Functionality / Example
Common Problem / Solution
Load Balancer Group & Intelligent Load DistributionConcepts / Configuration
Common Issues / Best Practices
IBM Software Group
WebSphere® Support Technical Exchange 31 of 33
Additional WebSphere Product Resources Learn about upcoming WebSphere Support Technical Exchange webcasts, and access
previously recorded presentations at:http://www.ibm.com/software/websphere/support/supp_tech.html
Discover the latest trends in WebSphere Technology and implementation, participate in technically-focused briefings, webcasts and podcasts at: http://www.ibm.com/developerworks/websphere/community/
Join the Global WebSphere Community: http://www.websphereusergroup.org
Access key product show-me demos and tutorials by visiting IBM Education Assistant: http://www.ibm.com/software/info/education/assistant
View a webcast replay with step-by-step instructions for using the Service Request (SR) tool for submitting problems electronically: http://www.ibm.com/software/websphere/support/d2w.html
Sign up to receive weekly technical My Notifications emails: http://www.ibm.com/software/support/einfo.html
IBM Software Group
WebSphere® Support Technical Exchange 32 of 33
We Want to Hear From You!
Tell us about what you want to learn
Suggestions for future topicsImprovements and comments about our webcasts
We want to hear everything you have to say!
Please send your suggestions and comments to: [email protected]
IBM Software Group
WebSphere® Support Technical Exchange 33 of 33
Questions and Answers