Make my day Distributed Replay
Meet the speakers Raoul Illyés Raoul Illyés is a SQL Server MVP, CEO and Mentor at SolidQ Denmark. He is a recognized lecturer and teacher known for his passion and ability to go into depth. His high energy level and enthusiasm has been appreciated by many customers over the years. Raoul is an expert in performance optimization and consolidation, and by merging the two together, he has achieved innovative solutions for his customers. Erling Skaale Erling Skaale is a Senior consultant at SolidQ Denmark. He has over 11 years of experience with SQL Server and over 20 years of experience with relational databases and application development in general. He worked his way from MVS(mainframe) as a System Programmer, over UNIX and Tandem, and landed on the Microsoft platform as a SQL Server System Programmer. He now specializes in Query Tuning, Development, SAN Performance, Architecture and Mentoring.
Agenda The world today (profiler) A case study Demo –The world tomorrow (Distributed replay) Introduction Demo
A case study A little customer – Laserdisken.dk Big issues about performance WEB programming interface - WebCatalog –Bad bad bad SQL –Eks…
A case study [!] TJEKKER OM DER ER COLLECTIONS MED TITLEN I [/!] [text]titler=[/text] [SQL dsn=[unurl][dsn][/unurl]&statement=SELECT ID from vare where DB_TITEL = '[titel]'] [foundItems] [SQL dsn=[unurl][dsn][/unurl]&statement=select DB_TITEL from vare join vare_titel on id=fk_vareid where fk_db_titelnr='[ID]'] [foundItems][text]titler=[titler],'[DB_TITEL]'[/text][/foundItems] [/sql] [/foundItems] [/sql] [text]titler=[hideif [titler]=][getchars start=2][titler][/getchars],[/hideif]'[titel]'[/text] [include file=includes/titelsog.inc] [/showIf]
A case study [!] TJEKKER OM DER ER COLLECTIONS MED TITLEN I [/!] [text]titler=[/text] [SQL dsn=[unurl][dsn][/unurl]&statement=select DB_TITEL from vare join vare_titel on id=fk_vareid where fk_db_titelnr in (SELECT cast(ID as varchar(255)) from vare where DB_TITEL = '[titel]')] [foundItems][text]titler=[titler],'[DB_TITEL]'[/text][/foundItems] [/sql] [text]titler=[hideif [titler]=][getchars start=2][titler][/getchars],[/hideif]'[titel]'[/text] [include file=includes/titelsog.inc] [/showIf]
A case study Lost 2/3 of the customers because of bad response time No test environment A bigger customer –Merge of orders failed in productions because of locks
A case study Profiler today – how can it help –Trouble shooting performance –Fix problem and replay
A case study –Development and ‘real world’ testing Backup database Run Profiler in 2 hours –Replay template
A case study Restore backup at test environment Copy trace file to test server –Create users –DB_id must match Open trace file and set replay settings
DEMO
Distributed replay Distributed replay is a scalable solution and unlike SQL Server Profiler, it is not limited to replaying from a single computer. This makes it great for: Running stress tests on a system. Capacity Planning, evaluate benefits of hardware / software changes.
Distributed replay Enviroment Distributed replay consist of: Replay administration tool Replay controler Replay clients (16) Target server
Configure Distributed Replay Distributed replay consist of the following configuration files and services: FILES : Controller configuration file Client configuration file Preprocess configuration file Replay configuration file SERVICES: SQL Server Distributed Replay Client (Manual) SQL Server Distributed Replay Controler (Manual)
Prepare the Input Trace Data 1.Make sure that the trace data has been captured with a version of SQL Server that is compatible with Distributed Replay. Input SQL Server 2012 SQL Server 2008 R2 SQL Server 2008 SQL Server 2005 Target SQL Server 2012 SQL Server 2008 R2 SQL Server 2008 *Input only works on targets with equal or greater skew. 2.Make sure that the trace data has been captured using the TSQL_Replay template
Replay Trace Data 1.Prepare the files 2.Run the Dreplay
DEMO
THANK YOU! For attending this session and PASS SQLRally Nordic 2011, Stockholm