53
May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

Embed Size (px)

Citation preview

Page 1: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

May 21, 2013

Deploying Global Server Load BalancingUsing Persistent Methods

Sam Cohoon

Page 2: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

Global Server Load Balancing

Page 3: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

Global Server Load Balancing

Page 4: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

Global Server Load Balancing

Page 5: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

What is GSLB?

Page 6: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

DNS

6

The Citrix NetScaler implementation of Global Server Load Balancing GSLB is Domain Name System (DNS) based.

Page 7: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

DNS

7

Page 8: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Typical Setup

8

Page 9: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

Global Server Load Balancing Components

Page 10: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

Components

10

Page 11: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

How it works - Summary

11

DNS and MEPComponents: GSLB domain, GSLB site, GSLB vserver, GSLB service

Page 12: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

Global Server Load Balancing Configuration

Page 13: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Configuration

13

Where do I start?

Page 14: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Wizard

14

Page 15: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB DNS DOMAIN

15

Page 16: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Methods

16

Page 17: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Methods

17

Page 18: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Methods

18

Page 19: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Sites

19

Page 20: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Sites

20

Page 21: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Sites

21

Page 22: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Service

22

Page 23: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

Configuration Summary

23

Page 24: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

Configuring Authoritative DNS - ADNS

Page 25: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Visualizer

25

Page 26: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

Synchronizing Configuration

26

Each Netscaler needs one Local GSLB site and all the other Remote sites.

All sites need the same configuration.

There is a GSLB configuration synchronization option.

Page 27: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

Customizing your GSLB Configuration

Page 28: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Load Balancing methods

28

The NetScaler GSLB methods: Round Trip Time (RTT)Static Proximity

Page 29: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

Local DNS IP (LDNS)

29

IP address that is being tested against is not an actual client IP address

it is the nameserver that is resolving the IP address on behalf of the client.

We refer to this as the “LDNS” IP address for the client’s local DNS IP address.

Page 30: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Static Proximity

30

IP-address based static proximity database is a UNIX-based ASCII file.

Page 31: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Static Proximity Troubleshooting

31

nsmap -t –d

root@test# nsmap -t -dEnter IP address to to test (dot notation) or q to exit:

Page 32: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Static Proximity Troubleshooting

32

> show locationparameterStatic Proximity----------------Database mode: Not applicableFlushing: Idle; Loading: IdleContext: geographicQualifier 1 label: ContinentQualifier 2 label: CountryQualifier 3 label: RegionQualifier 4 label: CityQualifier 5 label: ISPQualifier 6 label: OrganizationLocation file (format: Not applicable): Not loadedLines: 0 Warnings: 0 Errors: 0Current static entries: 0 Current custom entries: 0 Done

Page 33: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Dynamic RTT

33

Dynamic RTT : measure from each “site” NetScaler to the remote LDNS

Three Monitors:Ping of IP address (LDNS-PING)DNS TCP probeDNS UDP query

Page 34: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

Global Server Load BalancingPersistence

Page 35: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

Persistence Based on Source IP

35

The GSLB virtual server is responsible for DNS-based site persistence, and it controls the site persistence

Persistence Table

All sites must use the same set of persistence identifiers on the GSLB virtual servers.

Page 36: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Persistence – Source IP Troubleshooting

36

Page 37: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Persistence – Source IP Troubleshooting

37

Page 38: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

Global Server Load BalancingHTTP Cookie Persistence

Page 39: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

Persistence Based on HTTP Cookies

39

HTTP-request level Connection proxy

HTTP redirect.

Page 40: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

HTTP Connection Proxy

40

If the client gets sent to the wrong site:

The other site creates a connection to the GSLB site that inserted the site cookie, and proxies the client request

Page 41: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

HTTP Connection Proxy

41

Page 42: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

HTTP Redirect Persistence

42

Redirect persistence can be used only: For HTTP or HTTPS protocols. If the domain name in the request is a GSLB DomainWhen a backup VIP or a GSLB local service is DOWN

Page 43: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Persistence – HTTPRedirect

43

Page 44: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Persistence – HTTP Redirect

44

Page 45: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

Global Server Load BalancingTroubleshooting

Page 46: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Troubleshooting

46

> sh gslb site

1) 10.217.245.104_siteB (10.217.245.104) Site Type: LOCAL

Metric exchange: ENABLED Public IP: 10.217.245.104

Network metric exchange: ENABLED Persistence session exchange: ENABLED

Trigger Monitors: ALWAYS

2) 10.217.147.70_siteA (10.217.147.70) Site Type: REMOTE

Metric exchange: ENABLED Site Metric MEP Status: DOWN Public IP: 10.217.147.70

Network metric exchange: ENABLED Persistence session exchange: ENABLED

Trigger Monitors: ALWAYS

Page 47: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Troubleshooting

47

> sh gslb vserver

1) www.example.com_gslbvs_b - HTTP State: UP

DNS Record Type: A

Last state change was at Thu Apr 11 22:17:28 2013

Time since last state change: 11 days, 23:01:56.670

Configured Method: LEASTCONNECTION

Current Method: Round Robin Reason: Bound service's state changed to UP

BackupMethod: ROUNDROBIN

No. of Bound Services : 2 (Total) 1 (Active)

Persistence: SOURCEIP

Persistence Mask: 255.255.255.255 Persistence v6MaskLength: 128

Persistence Timeout: 2 min Persistence ID: 2

Disable Primary Vserver on Down: DISABLED Site Persistence: ConnectionProxy

Page 48: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Troubleshooting

48

> sh gslb service1) 10.217.245.107_80_gslbsvc (10.217.245.107: 80)- HTTP Server: 10.217.245.107 State: UP

Effective State: UP

Max Conn: 0 Max Bandwidth: 0 kbits

PublicIP: 10.217.245.107 PublicPort: 80

Type: LOCAL Site Name: 10.217.245.104_siteB

Site Prefix: SiteB Site Persistence: ConnectionProxy

Threshold: BELOW Monitor Threshold : 0

2) 10.217.147.71_80_gslbsvc (10.217.147.71: 80)- HTTP Server: 10.217.147.71 State: DOWN

Effective State: DOWN

Max Conn: 0 Max Bandwidth: 0 kbits

PublicIP: 10.217.147.71 PublicPort: 80

Type: REMOTE Site Name: 10.217.147.70_siteA

Site Prefix: SiteA Client IP: DISABLED

Down state flush: DISABLED

Site Persistence: ConnectionProxy

Threshold: BELOW Monitor Threshold : 0

Page 49: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

GSLB Troubleshooting

49

root@ns# nsconmsg -K newnslog -d stats | grep gslb

root@ns# nsconmsg -g glsb -d current -s disptime=1

Page 50: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

Resources

50

http://support.citrix.com/proddocs/topic/netscaler-traffic-management-10-map/netscaler-gslb-gen-wrapper-10-con.html

http://support.citrix.com/article/CTX122619

http://support.citrix.com/article/CTX123976

Page 51: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

Global Server Load Balancing

Page 52: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

© 2013 Citrix

Before you leave…

52

•Conference surveys are available online at www.citrixsynergy.com starting Friday, May 24 at 9:00 a.m. PT

ᵒ Provide your feedback by 4:00 p.m. PT that day and you’ll receive a $30 Amazon.com gift card via email

•Download presentations starting Monday, June 3, from your My Conference Planning tool located within the My Account section

Page 53: May 21, 2013 Deploying Global Server Load Balancing Using Persistent Methods Sam Cohoon

Work better. Live better.