Commit f700fe19 authored by carplaptop's avatar carplaptop

updated README.md with SQLAzure branch details

parent 22a53bb4
......@@ -3,18 +3,30 @@ PerformanceCollector/PerformanceEngineer-in-a-Box
This utility captures a series of performance metrics and logs them to various tables. For more information see my blog series at: http://www.davewentzel.com/PerformanceCollectorSeries.
**This code is on the succinct branch. This branch has an abbreviated list of features and a simpler installer. **
Git Branches
================
# master: this code works through SQL 2016
# SQLAzure: this is the same code as master except it does not use SQL Agent nor any of the DMVs that are not available in Azure.
More on this below.
How to Install Performance Collector
=======================================
1. Ensure SQL Agent is running. If it isn't PerformanceCollector won't work correctly.
2. Ensure you run the installer script as sysadmin.
3. create the PerformanceCollector database on your server using your preferred file layouts. If you don't do this the Installer script will do this for you using the default data file and log placement.
1. Ensure SQL Agent is running. If it isn't PerformanceCollector won't work correctly. (SQLAzure branch works differently)
2. Create the PerformanceCollector database on your server using your preferred file layouts. If you don't do this the Installer script will do this for you using the default data file and log placement.
3. Run PerformanceCollectorInstaller.sql as sysadmin.
SQLAzure Branch
================
If you want to run PC on SQL Azure you need to switch to the SQLAzure branch.
Making Changes to Performance Collector
=========================================
PC is installed using PerformanceCollectorInstaller.sql. However, that's a big file to update so it's easier to add new files and change existing code in the actual .sql files in the various folders. Change whatever you need to change and then run `powershell .\BuildSQL.ps1`. This command will rebuild PerformanceCollectorInstaller.sql with your latest edits.
How Does Performance Collector Work?
=======================================
Everything is installed in the PerformanceCollector schema within the PerformanceCollector database. There are 2 sqlagent jobs that do the performance collection:
Everything is installed in the PerformanceCollector schema within the PerformanceCollector database. There are 2 SQL Agent jobs that do the performance collection:
1. PerformanceCollector.WaitAndBlockMonitor: runs in a "WHILE 1=1" loop and will rerun every 5 mins if it is stopped. Within the loop, every 15 seconds (configurable in PerformanceCollector.Config) it will collect and blocking and waiting data to PerformanceCollector.BlockAndWaitMonitor.
2. PerformanceCollector.RunAddIns: runs every 5 mins to determine what AddIns are scheduled to run. Discussed more in the next section.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment