Supercharging MySQL and MariaDB with Plug-ins (SCaLE 12x)
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Supercharging MySQL and MariaDB with Plug-ins (SCaLE 12x)

  • 576 views
Uploaded on

Slides for the presentation at SCaLE 12x Conference (21 Feb 2014) ...

Slides for the presentation at SCaLE 12x Conference (21 Feb 2014)
A quick introduction to popular plug-ins for MySQL/MariaDB and ideas for how to use plug-ins to supercharge MySQL/MariaDB.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
576
On Slideshare
574
From Embeds
2
Number of Embeds
1

Actions

Shares
Downloads
3
Comments
0
Likes
0

Embeds 2

http://www.slideee.com 2

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Supercharging MySQL and MariaDB with Plug-ins Antony T Curtis <atcutis@gmail.com>
  • 2. Plug-ins types for MySQL / MariaDB Audit Authentication Daemon Full-text Parser Information Schema Replication Storage Engines.
  • 3. Plug-ins allow the server to be extended in a controlled manner. (third-party plugin types do exist too)
  • 4. Plug-ins for Storage InnoDB Storage Engine Everyone should be using it by default. Default in recent releases of MariaDB and MySQL TokuDB Storage Engine Supports sustained inserts better. Available in MariaDB.
  • 5. Plug-ins for Storage OQGraph Engine Search shortest path on modest graphs. More than 100k nodes/second search possible. Sphinx Engine Connects to distributed full-text search engine. Connect Engine (MariaDB) FederatedX Engine (MySQL)
  • 6. Replication Plugins: Semi-Sync Replication (multiple implementations: Google/Facebook/Oracle) Alternative replication sync options... Heartbeat/observer
  • 7. Information Schema Plugins: Easier to write than Storage Engine plugins. Can be used to bring in static data. Can be used to bring in simple dynamic data.
  • 8. Daemon Plugins: “Black Box” to plug in extra functionality into the database server.
  • 9. Audit Plugins: Designed to be installed/uninstalled at run time. Simple to write. Syslog, log to table.
  • 10. How to supercharge MySQL/MariaDB?
  • 11. How to supercharge MySQL/MariaDB? When everything else has been optimized, how to get the last extra bit of performance...
  • 12. Plug-ins for Storage Implementing a storage engine for bulk loading data. OQGraph Engine Extend OQGraph for some custom traversal.
  • 13. Audit Plugins: May be used to send logs to another machine. May be used to monitor specific users. Poor man’s replication. Triggers.
  • 14. How to supercharge MySQL/MariaDB? Reducing the number of round-trips.
  • 15. How to supercharge MySQL/MariaDB? Reducing the number of round-trips. Stored Procedures are tricky to debug.
  • 16. How to supercharge MySQL/MariaDB? Reducing the number of round-trips. Stored Procedures are tricky to debug. No external stored procedures in MySQL but ...
  • 17. Daemon Plugins: Suggested ideas: Server health watch-dog. Run a Python program. Run a node.js instance. client daemon mysqld
  • 18. Daemon Plugins: Daemon Plugin for Python Idea: gevented with pure-Python MySQL client. XML-RPC Server. Can perform multi-statement transactions.
  • 19. Daemon Plugins: Do: Lightweight processing. Data validation. Serve other protocols. Do Not: Create many threads. “number crunching”.
  • 20. Daemon Plugins: Do: Lightweight processing. Data validation. Serve other protocols. Do Not: Create many threads. “number crunching”. Database storage engines, such as InnoDB *assume* that they are the only service on a machine!
  • 21. Daemon Plugins: Limited by imagination!
  • 22. Questions? G+ page: http://goo.gl/7kev1C