0.0
No commit activity in last 3 years
No release in over 3 years
When you've just created new slave instance, first requests to DB (with InnoDB storage engine) will be hit on disk instead of buffer poll. So, the requests will be slow down. You can use this tool for warming up buffer poll before the first requests come. Please see document for other cases.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

>= 0
 Project Readme

mysql_warmup

Simple mysql-wamup command tool for warming up mysql server after create/reboot
Github
RubyGems

Benchmark

From 7.562 seconds to 2.132 seconds

Background

With InnoDB storage engine, when you've just created new slave instance, first requests to DB will be hit on disk instead of buffer poll. So, the requests will be slow down. You can use this tool for warming up buffer poll before the first requests come. Detail

Usage

  1. When?
  1. How?
  • Install this tool (please see Install section below)
  • Usage as below syntax
    Usage: mysql-warmup -u username <options>

    Input options:
    -h host      : Host or ip of mysql instance
    -u username  : Username to access mysql instance
    -d database  : Database to warmup.
                   Default to all databases exclude information_schema, mysql, performance_schema, sys
    -p port      : Port to connect. Default to 3306
    --help       : Show help message
    --version    : Show mysql-warmup version

Install

  • Directly with command: $gem install mysql-warmup

  • Or with Gemfile by adding line 'gem 'mysql-warmup' to your Gemfile then $bundle install

TODO

  • RDoc

Development

  • All PR are welcome.
  • Be sure all test cases are passed by command: $rake test

Changelog

Please ref to Changelog

License

MIT