Download presentation
Presentation is loading. Please wait.
Published byMaria Dorsey Modified over 8 years ago
1
Load Testing with SQL Server Tools Neil Hambly SQL Server Practice Lead Northdoor PLC
2
SQLSaturday #467 Sponsors
3
SQLSaturday #467 Admin Raffle prizes from Sponsors Will be drawn at 17:00, you need to be here in order to win if your name is drawn. Lunch will be served in the Exhibitor Area at 12:00 with sponsor sessions taking place in session rooms. If you need to leave early can you let registration know We need to know who is still here in the event of a fire evacuation etc. Enjoy the sessions and have a great time
4
Permanent Roles Northdoor (London) Oct 2014 – Current SQL Server Practice Lead ASOS (London) Jan 2014 – July 2014 Principal Database Engineer Confio (UK/EMEA) Oct 2012 – Dec 2013 Senior System Engineer & DBA MDSL (London)July 2010 – Sept 2012 DB Architect Editions: SQL 2005 – 2008 R2 Log-shipping, Service Broker, SSRS, SSAS iProfile (London)Oct 2004 – June 2010 DB Architect | DBA | DB Developer (Database Lead ) Editions: SQL 2000 – 2005; Clustering, Service Broker, Replication, SSRS Accenture (Dublin)June 1999– Oct 2004 DBA | DB Developer (Global BI - Team Leader) Editions: SQL6.5 – 2000, Replication, DTS, OLAP Contractor Roles BBC14 Months (DB Support ) ABN AMRO 16 Months (DB Developer) Contact info @Neil_Hambly http://www.linkedin.com/in/neilhambly PASS Chapter: www.sqllondon.sqlpass.org UK UG: www.sqlserverfaq.com Blog: http://dataidol.com/NeilHambly Email: Neil.Hambly@Hotmail.co.ukNeil.Hambly@Hotmail.co.uk SQL Professional (18+ years) PASS London Chapter Leader PASS ProfDev VC Leader Organiser at UK SQL Server Conferences & User-Groups Regular UK & International presenter (>100 since 2011) PASS Summit presenter (2011, 2012, 2013, 2014, 2015) PASS BA Conference (2012) PASS Rally’s in US & Europe PASS SQLSaturdays 35+ Training Kit 70-462 Contributor
5
Southampton Agenda Baselines Comparison’s Load Testing (Replay) Activity Distributed Replay Controller (DRC) Profiler Replay HammerDB | Other Tools Profiler Demo DRC Demo
6
Load Testing – ABC’s Activity Preparing Workload, Tool choices Objectives, Capturing metrics Scenarios: Capacity Planning, Performance Baselines Scenarios: Capacity Planning, Performance, Migrations Compare to “Normal” activity levels Comparisons What’s changed (metrics) Does it work, scale
7
Quick Tool Comparisons
8
Replaying Traces
9
Profiler Demos
10
Distributed Replay Controller {preparation} Firewall Rules On the controller and client computers, you must allow inbound traffic through the firewall for the corresponding service. Specify the firewall rules for the service For the controller service, create a rule for DReplayController.exe located in the installation folder. For example, the following command enables this rule, where %InstallPath% is the installation folder of the service: netsh advfirewall firewall add rule name="allow dreplay controller" dir=in program="%InstallPath%\DReplayController\DReplayController.exe" action=allow For the client service, on each client computer, create a rule for DReplayClient.exe, located in the installation folder. For example, the following command enables this rule, where %InstallPath% is the installation folder of the service: netsh advfirewall firewall add rule name="allow dreplay client" dir=in program="%InstallPath%\DReplayClient\DReplayClient.exe" action=allow Grant each client permissions on the target server: After you have completed installing the client service on the client computers, you must manually add the client service accounts to the sysadmin role on the target instance of SQL Server.
11
Replay file output example
12
Replay against SQL Server 2012 using clients Preprocess phase has been completed. Controller will take 2 files “ReplayEvents.irf”, “TraceStats.xml” and copy them to the clients (ServerN1,ServerN3) and replay them on the clients against target server which is SQL Server 2012 called ServerN2\SQL2012. Here is the command to do so: dreplay replay -s ServerN2\sql2012rca0 -w ServerN1,ServerN3 -f 10 -o -d "C:\DRPreProcess" The -o parameter will save the trace output within At the same time open a profiler trace and connect to target server which is ServerN2\SQL2012 collect profiler trace. Then you can compare the trace file from source server and trace file from target server and check some query performance. That’s it! Hopefully we have covered the basics of Distributed Replay and how you can use it to reproduce a workload on a test system “C:\Program Files (x86)\Microsoft SQL Server\110\Tools\DReplayClient\ResultDir”
13
DRC Demos
14
HammerDB Microsoft SQL Server OLTP (Transactional) Load Testing http://hammerora.sourceforge.net/hammerdb_mssql_oltp.pdf Good Tool for loading the System and testing & identifying resourcing limits
15
Profiler vs XEvents
16
Thank You Contact me @ N eil.Hambly@Northdoor.co.uk N eil.Hambly@Northdoor.co.uk
17
SQLSaturday #467 Sponsors
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.