{"id":22870948,"url":"https://github.com/percona-lab/query-playback","last_synced_at":"2025-05-05T22:17:23.895Z","repository":{"id":10717801,"uuid":"12967393","full_name":"Percona-Lab/query-playback","owner":"Percona-Lab","description":"Query Playback","archived":false,"fork":false,"pushed_at":"2024-01-05T20:35:48.000Z","size":3541,"stargazers_count":106,"open_issues_count":8,"forks_count":47,"subscribers_count":74,"default_branch":"master","last_synced_at":"2025-05-05T22:17:18.186Z","etag":null,"topics":["capture-queries","mysql"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Percona-Lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING.BSD2","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-20T06:53:00.000Z","updated_at":"2024-08-30T17:40:36.000Z","dependencies_parsed_at":"2022-09-02T06:11:53.155Z","dependency_job_id":null,"html_url":"https://github.com/Percona-Lab/query-playback","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2Fquery-playback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2Fquery-playback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2Fquery-playback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percona-Lab%2Fquery-playback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Percona-Lab","download_url":"https://codeload.github.com/Percona-Lab/query-playback/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252584333,"owners_count":21771945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["capture-queries","mysql"],"created_at":"2024-12-13T13:16:40.515Z","updated_at":"2025-05-05T22:17:23.848Z","avatar_url":"https://github.com/Percona-Lab.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Query Playback\n----------------\n© 2011-2017 Percona LLC.\n© 2017 Dropbox, Inc.\nSee [LICENSE](LICENSE) for full text of the GPL.\n\nQuery Playback is a tool for replaying the load of one database server to another.\n\nsee `./bin/percona-playback --help` for details\n\nBuild Dependencies\n------------------\nQuery Playback is mostly comprised of plugins, some of which have their\nown build dependencies (and simply won't be built if you don't have the\nrequired libraries).\n\nYou will need the 'development' packages for all of these (often suffixed by\n'-devel' for RedHat or '-dev' for Debian derived distributions).\n\nThe core of Query Playback requires:\n\n * libtbb (Intel Threading Building Blocks)\n * Boost \u003e= 1.53\n * pkg-config\n * cmake \u003e= 2.8.7\n\nThe plugin that uses the MySQL client library needs:\n * libmysqlclient (MySQL Client Libraries)\n\nInstall dependencies (CentOS 7)\n-------------------------------\n\n    yum -y install tbb tbb-devel cmake boost boost-devel\n\nBuilding\n--------\n\n    $ mkdir build_dir\n    $ cd build_dir\n    $ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..\n    $ make\n\nTest Suite\n----------\nThere are several tests included, these use a dummy database client plugin to mainly test that parsing of the logs is correct.\n\n    $ make check\n\nBuilding release tarball\n------------------------\n\n    $ cpack ..\n\nBuilding release debian package:\n------------------------\n\n    $ cpack -G DEB ..\n\nCapturing everything in the slow log\n------------------------------------\nTo 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:\n\n    --slow-query-log --log-slow-admin-statements --log-slow-verbosity=microtime --long-query-time=0\n\nDocumentation\n-------------\n\nYou can build the documentation by running make in the docs directory.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercona-lab%2Fquery-playback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpercona-lab%2Fquery-playback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercona-lab%2Fquery-playback/lists"}