GithubHelp home page GithubHelp logo

query-playback's Introduction

Query Playback

© 2011-2017 Percona LLC. © 2017 Dropbox, Inc. See LICENSE for full text of the GPL.

Query Playback is a tool for replaying the load of one database server to another.

see ./bin/percona-playback --help for details

Build Dependencies

Query Playback is mostly comprised of plugins, some of which have their own build dependencies (and simply won't be built if you don't have the required libraries).

You will need the 'development' packages for all of these (often suffixed by '-devel' for RedHat or '-dev' for Debian derived distributions).

The core of Query Playback requires:

  • libtbb (Intel Threading Building Blocks)
  • Boost >= 1.53
  • pkg-config
  • cmake >= 2.8.7

The plugin that uses the MySQL client library needs:

  • libmysqlclient (MySQL Client Libraries)

Install dependencies (CentOS 7)

yum -y install tbb tbb-devel cmake boost boost-devel

Building

$ mkdir build_dir
$ cd build_dir
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
$ make

Test Suite

There are several tests included, these use a dummy database client plugin to mainly test that parsing of the logs is correct.

$ make check

Building release tarball

$ cpack ..

Building release debian package:

$ cpack -G DEB ..

Capturing everything in the slow log

To capture queries for Query Playback to play back, you will need to run MySQL, MariaDB or Percona Server with the slow query log capturing the queries you wish to run. You will need the following options to mysqld:

--slow-query-log --log-slow-admin-statements --log-slow-verbosity=microtime --long-query-time=0

Documentation

You can build the documentation by running make in the docs directory.

query-playback's People

Contributors

stewartsmith avatar vadimtk avatar vlad-lesin avatar undingen avatar hrvojem avatar vdavidoff avatar fmbiete avatar dveeden avatar jobcase-plebedev avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.