Professional Documents
Culture Documents
Daniel Lazar
Senior Escalation Engineer May 8, 2012
#CitrixSummit
Agenda
XenServer and XenDesktop Interoperability Overview Monitoring XenServer to Identify Problems Best Practices and Troubleshooting
Resources
Questions
#CitrixSummit
Interoperability Overview
Resource Pool
Pool Master
Desktop Controller
Connection to XAPI on pool master via HTTP port 80
1011011010 1001 011010 1011011010 101011011101101110 11
Hosting Management
VDA Management
#CitrixSummit
Interoperability Overview
How do large-scale XenDesktop implementations impact XenServer? Large number of concurrently running VMs-per-host. Boot/Reboot Storms PVS/IntelliCache can add storage management overhead
#CitrixSummit
# top
# xe task-list
# iostat, hdparm, dd
# tcpdump, netstat, ifconfig
8
#CitrixSummit
#CitrixSummit
Try to tune the XenDesktop Controller to minimize the number of tasks concurrently being processed on the pool master.
#CitrixSummit
10
#CitrixSummit
11
#CitrixSummit
12
#CitrixSummit
13
14
maintain 200 concurrent connections (perhost). Limit can be reached more easily in XenDesktop environments because the #!/bin/bash LIST="$(find -name xensource.lo*)" for i in "$LIST"; do grep -h "db_gc] Session.destroy" $i done
15
#CitrixSummit
Can give a historical picture of average load on the host and indicate when and if there are periods of high load in the environment.
#CitrixSummit
17
13:10:01
13:20:03 13:30:03 13:40:10 13:50:09 14:00:03 14:10:06
13
15 92 82 13 133 72
740
846 917 949 1005 1040 1084
7.11
9.49 32.10 14.71 35.73 72.92 83.21
4.46
8.09 18.64 20.48 27.75 63.73 79.05
1.85
4.88 10.66 16.15 20.91 42.05 59.89
14:20:09
1094
88.50
86.03
71.52
TIP: Third-party tools are available to graph and analyze SAR data files!
18
#CitrixSummit
Large XenDesktop environments can create many of these links, and this can
cause issues.
#CitrixSummit
19
XenServer Host
PBD
VDA002-diff
VBD
Virtual Machine
VDA003-diff . . VDAxxx-diff
#CitrixSummit
Can cause poor performance, or even instability and XenServer host crashes!
#CitrixSummit
21
#CitrixSummit
22
# vhd-util scan -f -c -p -m -v 'VHD-*' -l VG_XenStorage-8021d7b1-0b4d-03ff-d461-4553ef6eaf01 vhd=VHD-759d484d-2bc9-44c2-8d40-c84a0408602b hidden=1 parent=none vhd=VHD-172396a5-bd42-4d89-a172-a31387ed1c7a hidden=0 parent=VHD-759d484d-2bc9-44c2-... vhd=VHD-1daf350c-2631-4fb3-8203-5500d6489363 hidden=0 parent=VHD-759d484d-2bc9-44c2-... vhd=VHD-60607534-4c7d-4b03-a950-095dfb2e5f67 hidden=0 parent=VHD-759d484d-2bc9-44c2-... vhd=...
Child VDIs (diff disks) Parent VDI (base copy)
#CitrixSummit
23
#CitrixSummit
24
00:10:01
00:10:01 00:10:01 ... 19:10:01 19:10:01 19:10:01
all
0 1
1.05
1.43 1.25
0.00
0.00 0.00
0.17
0.15 0.23
0.04
0.09 0.01
0.02
0.03 0.01
98.72
98.30 98.49
all 0 1
19:10:01
19:10:01
2
3
4.88
4.50
0.00
0.00
20.52
20.12
40.98
37.11
1.29
1.19
32.34
37.09
#CitrixSummit
25
#CitrixSummit
26
Limit the number of hosts in the pool, or create multiple pools Optimize shared storage for PVS or IntelliCache
Ensure XenServer and XenDesktop are at compatible versions and have all critical hotfixes and updates applied.
28
#CitrixSummit
#CitrixSummit
29
configuration.
#CitrixSummit
30
#CitrixSummit
31
Ensure all the virtual desktops can communicate directly with the XenDesktop
Controller.
#CitrixSummit
32
Check the virtual desktop to see if 3rd-party apps are interfering with logins Confirm the virtual desktop is not having issues communicating with the
XenDesktop Controller.
Ensure there are no GPOs or other Active Directory policies enabled on the virtual desktops that would interfere with logon/logoff behavior.
#CitrixSummit
33
Make sure the VMs are booting up OK and the XenServer hosts are not under heavy load preventing the VMs from operating normally.
Also might be due to communication issues between the virtual desktops and the XenDesktop Controllerensure there is network connectivity between them.
#CitrixSummit
34
Ensure there are not too many VMs running on the master. Offloading VMs to the slaves
and/or placing desktop groups into maintenance mode can mitigate this in the short-term.
Monitor the load average in the pool and confirm that the master is not overburdened with
Check for long VHD chains. In large pools this could indicate the need to split the pool to decrease load on the pool master.
#CitrixSummit
35
Controller
Check the Advanced Host Configuration in the Desktop Studio and compare to the XAPI task queue and master load average to determine if the XenDesktop Controller is sending too
Check the idle pool settings to determine if the pool is trying to maintain too high of an idle pool count, and if so reduce the idle pool count to bring the pool into balance.
Issues with registration which relate to load in large pools might also indicate the need to split
the pool into multiple smaller pools.
#CitrixSummit
36
Resources
Monitoring and Troubleshooting CTX131339 - XenServer performance: reality and myths CTX128724 - Memco.sh - Memory Data Collection Script for XenServer Dom0 or Linux Systems
37
Resources
Storage and Networking CTX125178 - XenServer Storage Management and Troubleshooting CTX118397 - Introduction to Storage Technologies CTX129669 - Overview of XenServer Distributed Virtual Switch/Controller and
#CitrixSummit
38
Resources
Configuration and Reference CTX130420 - XenServer 6.0 Administrator's Guide CTX132110 - XenDesktop Planning Guide XenServer Integration CTX125372 - How to Collect Diagnostic Information for Citrix XenServer
#CitrixSummit
39
Tools as a Service
http://Taas.Citrix.com/Beta
#CitrixSummit
40
Questions
#CitrixSummit
Provide your feedback and pick up a complimentary gift at the registration desk
Download presentations starting Monday, May 21, from your My Organizer tool located in your My Account
#CitrixSummit