Performance Analysis of Logs (PAL)

En los últimos tiempos he estado viendo herramientas para el  análisis de los rendimientos, y me encontré con el blog de Josh Townsend en el que habla del PAL «Performance Analysis of Logs«, esta nos permite la elaboración de informes y visualización de los registros de rendimiento bajo entornos Windows. Lo bueno de PAL es que es los archivos de umbral están integrados permitiéndonos interpretar los contadores de rendimiento, proporcionándonos una explicación de lo que es el contador, así como de los umbrales para los avisos y alarmas,  permitiendo todo ello de forma ágil eliminar los cuellos de botellas que se nos presenten en cuestiones de rendimiento. PAL incluye plantillas para Windows, Hyper-V, SQL, Active Directory, IIS, Exchange, .NET  y SharePoint.

Es de todos conocidos que dentro del mundo VMware View existen diversas y buenas herramientas para la monitorización continua y sistema de alertas para los entornos View, un ejemplo de esto es Vcenter de VMware o Xangati la cual posee una buena solución, el visor PCoIP libre de Chuck Hirstius.

Sin embargo, estas soluciones poseen un coste que no siempre uno se puede permitir, por ello Josh Townsend se plantea la necesidad de investigar y probar la combinación de PAL con los datos especificos de VMware View, con el fin de lograr poder analizar los registros de Perfmon en un entorno View

Jeff Stokes de Microsoft, escribió un archivo de umbral sencillo para los contadores de VMware Tools, este  fue un gran comienzo, pero no proporciona los detalles suficientes, ademas de no incluir estadísticas de PCoIP para los escritorios de View, en base a dicha plantilla se ha procedido a crear e implementar una nueva en la cual se incluye el procesador VM, la memoria VM,  PCoIP y estadísticas de la sesión así como contadores de rendimiento, junto con explicaciones de cada contador, enlaces a recursos para cada contador, y las ideas para los problemas de rendimiento, posibles soluciones identificado con los contadores que superen umbrales previstos o se sospecha de ser un cuello de botella. También se incluye en base a dicho archivo estadísticas del sistema en el informe PAL. En total, Josh T. ha incorporado más de 122 contadores diferentes en este nuevo informe VMware View Desktop PAL.

También se ha creado un archivo de umbral, el cual permite el análisis de los  servidores de conexión VMware View y servidores de seguridad. La herramienta estándar PAL con umbrales de  Windows System Overview se pueden utilizar para analizar VMware vCenter Server y servidores VMware Composer. Todo combinado, con PAL podemos analizar todos los componentes de nuestro entorno VMware View, con la excepción de clientes ligeros o Zero.

Hay que tener en cuenta que la generación de un informe completo, puede provocar una sobrecarga de información, no siendo practico para el día a día, estos son recomendables para efectuar análisis profundos de la máquina virtual específica que sufre los problemas de rendimiento.

Siendo esta la primera versión especifica que ha creado para VMware View, seguro que veremos como va madurando e incorporando nuevos análisis, una de las posibles novedades que nos presentara será un archivo para el análisis de ESXi ESXTOP batch mode output.

Como recordatorio valga que:

  • La plantilla View Desktop podemos utilizarla para analizar cualquier VM-Windows, no solamente escritorios VDI. En este escenario de uso, los contadores PCoIP serán ignorados.
  • Se puede modificar la plantilla PAL y comente la inheritence del archivo SystemOverview.xml si lo que desea es recoger e informar sobre contadores de VMware.

USO

  1. Requisitos para la descarga e instalación de PAL:
      • Microsoft .NET Framework 3.5 Service Pack 1

http://www.microsoft.com/downloads/details.aspx?familyid=AB99342F-5D1A-413D-8319-81DA479AB0D7&displaylang=en

      • Microsoft .NET Framework 3.5 Service Pack 1

http://download.microsoft.com/download/2/0/e/20e90413-712f-438c-988e-fdaa79a8ac3d/dotnetfx35.exe

      • Microsoft Chart Controls for Microsoft .NET Framework 3.5

http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&DisplayLang=en

      • PowerShell v2.0 (Windows Management Framework (Windows PowerShell 2.0, WinRM 2.0, and BITS 4.0))

http://support.microsoft.com/kb/968929

  1. Descargar PAL, se puede descargar desde la siguiente dirección  http://pal.codeplex.com
  2. Instalar View Thresholds, se copian los archivos XML en el directorio de instalación de PAL si se efectúo la instalación por defecto seria: C:\Archivos de programa\PAL\PAL.
  3. Exportar la plantilla, Una vez inicializada la aplicación PAL, accederemos a la pestaña de archivo de umbral, donde escogeremos»VMware View PCoIP y rendimiento de invitados» o umbral «VMware View conexión rendimiento del servidor». Haremos clic en el archivo de plantilla para Exprot Perfmon … ‘botón y guarde el archivo, ya sea XP o Windows 7/2008.
  4. Configurar Collector, procederemos a copiar la plantilla .HTML o .XML para el entorno que deseamos analizar, crearemos un nuevo colector de datos en base a dicha plantilla y deberemos de ejecutar el colector en el periodo de tiempo en el cual se nos producen los problemas de rendimiento..
  5. Análisis, accederemos al archivo .BLG desde la aplicación PAL, para ello deberemos copiar dicho archivo en a la maquina donde tengamos instalado la aplicación, mediante este archivo podremos analizar los datos siempre teniendo en cuenta el umbral escogido.

Automatizar

Jonathan Medd, posee una gran guía para la implementación de  Perfmon Collector Series, basado en una plantilla XML, que podéis localizar en su blog. Podemos utilizar esta opcion para desplegar la plantilla en un grupo de VDI.

Laerte Junior efectúa nos presenta una variación  en base a PowerShell para recopilar datos Perfmon de varios equipos remotos aquí

Ejemplos de reportes

Descargas

Incluir lista de  contadores Perfmon

  • Cache\Dirty Pages
  • Cache\Lazy Write Flushes/sec
  • LogicalDisk(*)\% Free Space
  • LogicalDisk(*)\% Idle Time
  • LogicalDisk(*)\Avg. Disk Bytes/Read
  • LogicalDisk(*)\Avg. Disk Bytes/Write
  • LogicalDisk(*)\Avg. Disk Queue Length
  • LogicalDisk(*)\Avg. Disk sec/Read
  • LogicalDisk(*)\Avg. Disk sec/Write
  • LogicalDisk(*)\Current Disk Queue Length
  • LogicalDisk(*)\Disk Bytes/sec
  • LogicalDisk(*)\Disk Reads/sec
  • LogicalDisk(*)\Disk Transfers/sec
  • LogicalDisk(*)\Disk Writes/sec
  • LogicalDisk(*)\Free Megabytes
  • Memory\% Committed Bytes In Use
  • Memory\Available MBytes
  • Memory\Cache Bytes
  • Memory\Commit Limit
  • Memory\Committed Bytes
  • Memory\Free & Zero Page List Bytes
  • Memory\Free System Page Table Entries
  • Memory\Pages Input/sec
  • Memory\Pages Output/sec
  • Memory\Pages/sec
  • Memory\Pool Nonpaged Bytes
  • Memory\Pool Paged Bytes
  • Memory\System Cache Resident Bytes
  • Memory\Transition Pages RePurposed/sec
  • Network Inspection System\Average inspection latency (sec/bytes)
  • Network Interface(*)\Bytes Received/sec
  • Network Interface(*)\Bytes Sent/sec
  • Network Interface(*)\Bytes Total/sec
  • Network Interface(*)\Current Bandwidth
  • Network Interface(*)\Output Queue Length
  • Network Interface(*)\Packets Outbound Errors
  • Network Interface(*)\Packets Received/sec
  • Network Interface(*)\Packets Sent/sec
  • Network Interface(*)\Packets/sec
  • Paging File(*)\% Usage
  • PCoIP Session Audio Statistics(PCoIP Session)\Audio Bytes Received
  • PCoIP Session Audio Statistics(PCoIP Session)\Audio Bytes Sent
  • PCoIP Session Audio Statistics(PCoIP Session)\Audio RX BW kbit/sec
  • PCoIP Session Audio Statistics(PCoIP Session)\Audio TX BW kbit/sec
  • PCoIP Session Audio Statistics(PCoIP Session)\Audio TX BW Limit kbit/sec
  • PCoIP Session General Statistics(PCoIP Session)\Bytes Received
  • PCoIP Session General Statistics(PCoIP Session)\Bytes Sent
  • PCoIP Session General Statistics(PCoIP Session)\Packets Received
  • PCoIP Session General Statistics(PCoIP Session)\Packets Sent
  • PCoIP Session General Statistics(PCoIP Session)\RX Packets Lost
  • PCoIP Session General Statistics(PCoIP Session)\Session Duration Seconds
  • PCoIP Session General Statistics(PCoIP Session)\TX Packets Lost
  • PCoIP Session Imaging Statistics(PCoIP Session)\Imaging Active Minimum Quality
  • PCoIP Session Imaging Statistics(PCoIP Session)\Imaging Bytes Received
  • PCoIP Session Imaging Statistics(PCoIP Session)\Imaging Bytes Sent
  • PCoIP Session Imaging Statistics(PCoIP Session)\Imaging Decoder Capability kbit/sec
  • PCoIP Session Imaging Statistics(PCoIP Session)\Imaging Encoded Frames/sec
  • PCoIP Session Imaging Statistics(PCoIP Session)\Imaging RX BW kbit/sec
  • PCoIP Session Imaging Statistics(PCoIP Session)\Imaging TX BW kbit/sec
  • PCoIP Session Network Statistics(PCoIP Session)\Round Trip Latency ms
  • PCoIP Session Network Statistics(PCoIP Session)\RX BW kbit/sec
  • PCoIP Session Network Statistics(PCoIP Session)\RX BW Peak kbit/sec
  • PCoIP Session Network Statistics(PCoIP Session)\RX Packet Loss %
  • PCoIP Session Network Statistics(PCoIP Session)\TX BW Active Limit kbit/sec
  • PCoIP Session Network Statistics(PCoIP Session)\TX BW kbit/sec
  • PCoIP Session Network Statistics(PCoIP Session)\TX BW Limit kbit/sec
  • PCoIP Session Network Statistics(PCoIP Session)\TX Packet Loss %
  • PCoIP Session USB Statistics(PCoIP Session)\USB Bytes Received
  • PCoIP Session USB Statistics(PCoIP Session)\USB Bytes Sent
  • PCoIP Session USB Statistics(PCoIP Session)\USB RX BW kbit/sec
  • PCoIP Session USB Statistics(PCoIP Session)\USB TX BW kbit/sec
  • PhysicalDisk(*)\Avg. Disk Queue Length
  • PhysicalDisk(*)\Avg. Disk sec/Read
  • PhysicalDisk(*)\Avg. Disk sec/Write
  • PhysicalDisk(*)\Current Disk Queue Length
  • PhysicalDisk(*)\Disk Bytes/sec
  • PhysicalDisk(*)\Disk Reads/sec
  • PhysicalDisk(*)\Disk Writes/sec
  • Process(*)\% Privileged Time
  • Process(*)\% Processor Time
  • Process(*)\Handle Count
  • Process(*)\ID Process
  • Process(*)\IO Data Operations/sec
  • Process(*)\IO Other Operations/sec
  • Process(*)\IO Read Operations/sec
  • Process(*)\IO Write Operations/sec
  • Process(*)\Private Bytes
  • Process(*)\Thread Count
  • Process(*)\Virtual Bytes
  • Process(*)\Working Set
  • Processor Information(*)\% of Maximum Frequency
  • Processor Information(*)\Parking Status
  • Processor(*)\% DPC Time
  • Processor(*)\% Interrupt Time
  • Processor(*)\% Privileged Time
  • Processor(*)\% Processor Time
  • Processor(*)\% User Time
  • Processor(*)\DPC Rate
  • Server\Pool Nonpaged Failures
  • Server\Pool Paged Failures
  • System\Context Switches/sec
  • System\Processor Queue Length
  • System\System Calls/sec
  • TCPv4\Connection Failures
  • VM Memory\Memory Active in MB
  • VM Memory\Memory Ballooned in MB
  • VM Memory\Memory Limit in MB
  • VM Memory\Memory Mapped in MB
  • VM Memory\Memory Overhead in MB
  • VM Memory\Memory Reservation in MB
  • VM Memory\Memory Shared in MB
  • VM Memory\Memory Shared Saved in MB
  • VM Memory\Memory Shares
  • VM Memory\Memory Swapped in MB
  • VM Memory\Memory Used in MB
  • VM Processor\% Processor Time
  • VM Processor\CPU stolen time
  • VM Processor\Effective VM Speed in MHz
  • VM Processor\Host processor speed in MHz
  • VM Processor\Limit in MHz
  • VM Processor\Reservation in MHz
  • VM Processor\Shares

Contadores de conexiones:

  • \VMware VDM\All Sessions
  • \VMware VDM\All Sessions High
  • \VMware VDM\Check Out VMs
  • \VMware VDM\Check Out VMs High
  • \VMware VDM\Full VM Sessions
  • \VMware VDM\Full VM Sessions High
  • \VMware VDM\Linked Clone Sessions
  • \VMware VDM\Linked Clone Sessions High
  • \VMware VDM\Other Sessions
  • \VMware VDM\Other Sessions High
  • \VMware VDM\PCoIP Gateway Sessions
  • \VMware VDM\PCoIP Gateway Sessions High
  • \VMware VDM\Secure Gateway Sessions
  • \VMware VDM\Secure Gateway Sessions High

Podréis encontrar más información así como el texto original en : VMtoday.com

Deja un comentario

Archivado bajo Virtualización

Deja un comentario