github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

adamhjk / ec2_mysql

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 12
    • 4
  • Source
  • Commits
  • Network (4)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

EC2 MySQL Master->Slave management with Elastic Block Devices made easy — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Should have ot_keep as an integer 
adamhjk (author)
Thu Dec 04 15:55:32 -0800 2008
commit  0026b91b85c36c0d380d8f080cc2a006d30c38f8
tree    4363b057afbd756ebfc045e0ee93675498ff1ae8
parent  6868f2a70f9b0b34b8f2e64762f69b64a47f42b9
ec2_mysql /
name age
history
message
file History.txt Thu Sep 25 18:03:40 -0700 2008 First commit [adamhjk]
file LICENSE Thu Sep 25 18:03:40 -0700 2008 First commit [adamhjk]
file Manifest.txt Thu Sep 25 18:03:40 -0700 2008 First commit [adamhjk]
file NOTICE Thu Sep 25 18:03:40 -0700 2008 First commit [adamhjk]
file README.txt Fri Sep 26 13:06:55 -0700 2008 whitespace changes [adamhjk]
file Rakefile Thu Sep 25 18:03:40 -0700 2008 First commit [adamhjk]
directory bin/ Thu Sep 25 18:03:40 -0700 2008 First commit [adamhjk]
directory lib/ Thu Dec 04 15:55:32 -0800 2008 Should have ot_keep as an integer [adamhjk]
directory test/ Thu Sep 25 18:03:40 -0700 2008 First commit [adamhjk]
README.txt
= Ec2Mysql

== DESCRIPTION:

Simplifies setting up new MySQL slaves using EC2 with Elastic Block Devices

== FEATURES/PROBLEMS:

* Snapshot a master with slave creation information saved as JSON
  * Keep N backups
* Create a slave from a given snapshot (or the latest, given a Volume ID)
  * Deal with both regular and LVM block devices
  
== SYNOPSIS:

It's a two step process.  Run the backup on the Master, then run the build on your Slave.

=== Master Backup:

On your master EC2 Node:

  $ sudo ./ec2_mysql -a 'AWS_ID' -s 'AWS_SECRET_KEY' -p 'MYSQL_ROOT' master

=== Slave Creation:

On your slave EC2 Node:

  $ sudo ./ec2_mysql -a 'AWS_ID' -s 'AWS_SECRET_KEY' -U 'MYSQL_REPL_USER' -P 'MYSQL_REPL_PASS' -p 'MYSQL_ROOT' -h 
  'MYSQL_MASTER_IP_ADDRESS' -v 'MYSQL_MASTER_EBS_VOLUME_ID' slave

== REQUIREMENTS:

* DBI
* DBD::Mysql
* Right AWS
* JSON

== INSTALL:

Haven't made a gem yet or any packages. :)

== BONUS POINTS:

Use Capistrano to dynamically build 100 slaves at the same time.  Watch magic scaling.  Celebrate.

== LICENSE:

See the LICENSE file, but:

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server