Giter VIP home page Giter VIP logo

pxc_myisam_perf's Introduction

Vagrant + AWS + Percona Server

Walkthrough

AWS Setup

Need AWS setup with the following information in a file called ~/.aws_secrets:

access_key_id: YOUR_ACCESS_KEY
secret_access_key: THE_ASSOCIATED_SECRET_KEY
keypair_name: KEYPAIR_ID
keypair_path: PATH_TO_KEYPAIR_PEM

ALSO put your access and secret keys in environment variables in your .bashrc or similar (for packer):

export AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY
export AWS_SECRET_ACCESS_KEY=THE_ASSOCIATED_SECRET_KEY

Software Requirements

 vagrant plugin install vagrant-aws

Create your own AMI with an associated Vagrant box

  • Modify packer/ubuntu.json
  • Source AMI
  • Region
cd packer
packer validate ubuntu.json
packer build ubuntu.json
vagrant box add ubuntu-aws-us-east packer__aws.box
cd ..

Launch the box

  • Modify Vagrantfile
  • Instance size
vagrant up --provider=aws
vagrant ssh

Cleanup

Shutdown the vagrant instance

vagrant destroy -f

Packer AMIs

Packer creates an AMI on your AWS account, so you need to clean it up so you don't need to pay for it.

  • AWS Console -> Images -> AMIs -> Select AMI -> Actions -> Deregister
  • AWS Console -> Elastic Block Store -> Snapshots -> Select Snapshot -> Delete

Vagrant EBS volumes

  • AWS Console -> Elastic Block Store -> Volumes -> Select Volumes -> Actions -> Delete Volume

Future Stuff

  • Multi node coordination (need support from vagrant-aws)
  • Multi-AZ/Region coordination??
  • CentOS support (pending packer merge: hashicorp/packer#138)
  • Virtualbox support

pxc_myisam_perf's People

Contributors

jayjanssen avatar

Watchers

 avatar

Forkers

3manuek

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.