GithubHelp home page GithubHelp logo

yoshinorim / replication-booster-for-mysql Goto Github PK

View Code? Open in Web Editor NEW
72.0 11.0 17.0 128 KB

A Tool for Prefetching MySQL Slave Relay Logs, to make SQL Thread faster

License: GNU General Public License v2.0

C 3.53% C++ 96.47%

replication-booster-for-mysql's Introduction

Replication Booster -- A Tool for Prefetching MySQL Slave Relay Logs, to make SQL Thread faster

How to use:
* Install boost if not installed (recommended version is 1.39 or higher)
 (On RHEL/CentOS5, you can get boost 1.39+ from ATrpms repository)
* Install Binlog API (https://code.launchpad.net/mysql-replication-listener)
* cmake .
* make
* make install
* Run replication_booster

If you have a Replication Listener in a non-standard path (for
example, it is not installed), you can add a search prefix when
executing CMake in the following way:

  cmake . -DCMAKE_PREFIX_PATH=<path to replication listener>

This will find the library in the "lib" directory and the include
files in the "include" directory of the repository.

Limitations:
* This project has just been started and code quality and performance should be improved more.
* Replication Booster uses Binlog API. Binlog API is currently (Oct 2011) pre-alpha so make sure to intensively test by yourself, though Replication Booster uses limited features of Binlog API. For example, you may fail to build Replication Booster when Binlog API interface has been changed.

License: GNU General Public License version 2

Author: DeNA Co.,Ltd. <[email protected]>
Got contribution from Mats Kindahl <[email protected]> (supporting cmake)
Got contribution from Davi Arnaut (Twitter patches)

replication-booster-for-mysql's People

Contributors

mkindahl avatar yoshinorim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

replication-booster-for-mysql's Issues

Booster fails to switch to new relay log file after deletion by mysql

  Is SQL thread running: true
2014-12-03 16:30:32: Reading relay log file: /var/lib/relaylog/mysqld3306/mysql-relay-bin.000250 from relay log pos: 252205526
2014-12-03 16:30:32: Replication Booster started.
terminate called after throwing an instance of 'std::ios_base::failure'
  what():  basic_ios::clear
Aborted

When mysql has finished reading its relay log file, it deletes it, replication booster fails on this and does not try to ask mysql for the new relaylog file.

Replication Booster gives special character errors

I have read blog and got Replication Booster.
I am getting Special Characters and facing error while running it please check below lines

2014-10-31 14:03:19: Reading relay log file: /relaylog/relay.012290 from relay log pos: 113512241
2014-10-31 14:03:19: Replication Booster started.
2014-10-31 14:03:19: ERROR: Got error on query. Error code:1064 message:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Îù' at line 1. query:select * from [TABLENAME] WHERE [COLUMNNAME] = '(null)'Îù
2014-10-31 14:03:19: ERROR: Got error on query. Error code:1064 message:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ÒÊÅ' at line 1. query:select isnull(coalesce( [COLUMNNAME] = [COLUMNNAME] + 0.013000)) from [TABLENAME] where [COLUMNNAME] = "11"ÒÊÅ

Please help me as i want to use this feature on my production servers.
Waiting for your positive reply.

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.