Optimizing The Database
 SQL and NoSQL Alike
    August 31st, 2010 @ 11AM PST
              Brian Doll
   Application Perf...
Monitoring Data Stores in RPM




                          NewRelic.com
Monitoring Data Stores in RPM



                                       *

                  * Requires rpm_contrib




  ...
“SQL Instrumentation”
 ==
“NoSQL Instrumentation”

=> true


                      NewRelic.com
Add rpm_contrib and go!

#Gemfile
gem 'rpm_contrib'
Contribute at http://github.com/newrelic/rpm_contrib




             ...
Easy Instrumentation
Learn more @ http://bit.ly/custom-instrumentation




                                              N...
Easy Instrumentation
Learn more @ http://bit.ly/custom-instrumentation



add_method_tracer :find, ‘Database/#{self.name}/fi...
So what does RPM tell us
about the database tier?



                      NewRelic.com
How much time are we in there?




                          NewRelic.com
NewRelic.com
DB vs. Cache: Fight!




                       NewRelic.com
Database Overview




                    NewRelic.com
NewRelic.com
Generic SELECTs




                  NewRelic.com
Table#find




            NewRelic.com
Web Transaction Detail




                         NewRelic.com
NewRelic.com
EXPLAIN PLAN




               NewRelic.com
But does it scale?




                     NewRelic.com
Database Report




                  NewRelic.com
What have we learned?

RPM provides detailed database metrics

RPM provides high-level database scalability metrics

RPM i...
Any Questions?

Live Q&A during the webinar

http://support.newrelic.com/

Email: brian@newrelic.com / support@newrelic.co...
Upcoming SlideShare
Loading in …5
×

New Relic: Optimizing The Database SQL and NoSQL Alike

3,973 views
3,826 views

Published on

0 Comments
6 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,973
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
37
Comments
0
Likes
6
Embeds 0
No embeds

No notes for slide

New Relic: Optimizing The Database SQL and NoSQL Alike

  1. 1. Optimizing The Database SQL and NoSQL Alike August 31st, 2010 @ 11AM PST Brian Doll Application Performance Engineer
  2. 2. Monitoring Data Stores in RPM NewRelic.com
  3. 3. Monitoring Data Stores in RPM * * Requires rpm_contrib NewRelic.com
  4. 4. “SQL Instrumentation” == “NoSQL Instrumentation” => true NewRelic.com
  5. 5. Add rpm_contrib and go! #Gemfile gem 'rpm_contrib' Contribute at http://github.com/newrelic/rpm_contrib NewRelic.com
  6. 6. Easy Instrumentation Learn more @ http://bit.ly/custom-instrumentation NewRelic.com
  7. 7. Easy Instrumentation Learn more @ http://bit.ly/custom-instrumentation add_method_tracer :find, ‘Database/#{self.name}/find’ #Database/Post/find NewRelic.com
  8. 8. So what does RPM tell us about the database tier? NewRelic.com
  9. 9. How much time are we in there? NewRelic.com
  10. 10. NewRelic.com
  11. 11. DB vs. Cache: Fight! NewRelic.com
  12. 12. Database Overview NewRelic.com
  13. 13. NewRelic.com
  14. 14. Generic SELECTs NewRelic.com
  15. 15. Table#find NewRelic.com
  16. 16. Web Transaction Detail NewRelic.com
  17. 17. NewRelic.com
  18. 18. EXPLAIN PLAN NewRelic.com
  19. 19. But does it scale? NewRelic.com
  20. 20. Database Report NewRelic.com
  21. 21. What have we learned? RPM provides detailed database metrics RPM provides high-level database scalability metrics RPM is db agnostic: SQL or NoSQL = no problem It’s easy to instrument fancy new database engines if its not covered yet You can’t scale without metrics NewRelic.com
  22. 22. Any Questions? Live Q&A during the webinar http://support.newrelic.com/ Email: brian@newrelic.com / support@newrelic.com Twitter: @NewRelic IRC: #NewRelic on Freenode NewRelic.com

×