Database Stalls, From the Ordinary to the Obscure
Preetam Jinka (@PreetamJinka)
Software Engineer Percona Live 2017
Database Stalls, From the Ordinary to the Obscure Preetam Jinka - - PowerPoint PPT Presentation
Database Stalls, From the Ordinary to the Obscure Preetam Jinka (@PreetamJinka) Software Engineer Percona Live 2017 VividCortexs database monitoring application is the best way to improve your database performance, efficiency, and uptime.
Software Engineer Percona Live 2017
VividCortex’s database monitoring application is the best way to improve your database performance, efficiency, and uptime. Supporting MySQL, PostgreSQL, Redis, MongoDB, and Amazon Aurora, VividCortex uses patented algorithms to reveal key insights, helping users fix performance problems before they impact customers. Say hello and see a demo, Booth #205.
3
Come to the O’Reilly booth after the talk to pick up a free copy of
4
5
○ The secret sauce: we have a model.
6
Little’s Law
In MySQL:
○ There’s one thread per query. ○ From SHOW STATUS
7
8
More queries in progress Fewer being completed
9
All of the stalled queries are completing after the fault ends.
10
○ “If a transparent huge page isn’t available, the application will stall to let memory compaction run to free a page.”
11
12
13
14
15
16
Work
○ Large scans Waiting
17
18
19
20
21
22
23
24
25
26
27
28
Clients
29
APIs
Database System
30
*Totally untested hypothesis. :)
31
32
50 ms shift
33
50 ms shift
~1 sec queries stay ~1 sec queries (1x) ~1 ms queries become ~50 ms queries (50x)
34
35
Come find me at the O’Reilly booth!
36
Twitter: @PreetamJinka Email: preetam@vividcortex.com