I'm on the train home from London. Stalled at a signal waiting to move on. Here are some thoughts/facts/findings from my past 2.5 days.
- Walking from Waterloo to Kensington can be done. It's not a bad thing after a 3 hour train journey.
- Pubs in London also close at 10.30pm on a Sunday
- Don't trust the wifi near the guy with a pelicase on his shoulder
- Belgians are good peoples that love Indian food.
- Book 60 and 112 will come
- Double Decker buses go the long way around
- The MySQL community is alive
- It matters not what branch/fork you use, free beer/food/bus/OOS unites all
- MariaDB 10 soon. Stay tuned.
- "Peter in a Box" tipped as a hot favourite gift this Christmas.
- Using AWS? Spread yourself across AZ, Regions.
- System security is generally overlooked
- setenforce 1 (learn how to use selinux)
- Sysbench is not as understood as I understand. Lua.
- Henrik will not resist a MySQL conference invite :D
- Common_schema to become part of the server (one day, Shlomi!)
- Galera, PXC remains a hot topic with more and more production installs
- Fractal trees don't lose their leaves in the fall
- Unix load still misunderstood by many. See > 1, check what the CPU and IO is actually doing
- Backups are pretty important, RDBA sets the standard for backup ref. architecture. Mydumper wts.
- Oracle Engineers now available at PL events
- The Crazy Italian guy is still crazy
Now there you have it, you missed a lot if you didn't make it this year!
Part 1 - Installing Holland Backup ManagerI spoke at Percona Live Conference and Expo 2013 about backups. Part of the talk focussed on the backup products in the ecosystem that will help you make a backup of your MySQL data. This follow-up article touches on one of the frameworks from my talk, the Holland Backup Manager. I was able to have a chat with some of the guys on the Rackspace booth about Holland and had some questions regarding features answered.
Holland is a backup framework focussing mostly on MySQL backups but it is pluggable so you can write add backup providers to extend it to your own needs. Using the framework you're able to configure and deploy backup jobs of varying scope to multiple machines. The framework which was originally developed at Rackspace, currently supports mysqldump, lvm, xtrabackup and pgdump (Postgres) also sqllite. The latest version is number 1.0.8 which brings a few nice new features with it. I'll talk about the most significant of these in the third of the series.
I want to show some installation, configuration and then use of the framework. I'm a fan of this project and if you've got the need to standardise whilst being flexible then Holland could be the solution you've been looking for.
Firstly, head over to github to grab the files. https://github.com/holland-backup/holland
I've been using vagrant to provide a quick VM environment. This OS I'm using here is a CentOS 6.4 64bit host running in Virtualbox. All dependencies for Holland should be available on the popular package managers but if you're using something other then debian (apt-get) or redhat based (yum) then you might require some research elsewhere to meet the requirements of Holland.
Download the zip archive from github (the extension was lost in wget but it is a .zip file)
[vagrant@node1 ~]$ wget https://github.com/holland-backup/holland/archive/master.zip ... Saving to: `master' 100%[==================================================>] 602,186 572K/s in 1.0s (572 KB/s) - `master' saved [602186/602186]
So then proceed to unzip your archive
[vagrant@node1 ~]$ unzip ./master
ProTip: Take some time to go through the various Holland directories. Throughout the directories there README and INSTALL files that will explain more about the accompanying files.
[vagrant@node1 holland-master]$ ls -l
-rw-rw-r-- 1 vagrant vagrant 7064 May 13 17:45 CHANGES.txt
drwxrwxr-x 4 vagrant vagrant 4096 May 13 17:45 config
drwxrwxr-x 3 vagrant vagrant 4096 May 13 17:45 contrib
drwxrwxr-x 4 vagrant vagrant 4096 May 13 17:45 docs
drwxrwxr-x 7 vagrant vagrant 4096 May 13 17:45 holland
-rw-rw-r-- 1 vagrant vagrant 1782 May 13 17:45 INSTALL
-rw-rw-r-- 1 vagrant vagrant 3290 May 13 17:45 LICENSE
drwxrwxr-x 13 vagrant vagrant 4096 May 13 17:45 plugins
-rw-rw-r-- 1 vagrant vagrant 514 May 13 17:45 README
-rw-rw-r-- 1 vagrant vagrant 62 May 13 17:45 setup.cfg
-rw-rw-r-- 1 vagrant vagrant 1441 May 13 17:45 setup.py
drwxrwxr-x 2 vagrant vagrant 4096 May 13 17:45 tests
-rwxr-xr-x 1 vagrant vagrant 1782 May 13 17:45 tomsay.py
Before going any further lets take care of the dependencies. They're easily met using yum/apt or if you want to compile them yourself then go right ahead;
- mysqldb (python's mysql connector)
Now, lets take care of some directories that need to exists. These are configurable later, but for simplicity sake we'll roll forward with the Holland defaults. Your environment is likely to be different especially if you're mounting remote storage to store the backup files you make.
[vagrant@node1 config]$ sudo mkdir -p /etc/holland [vagrant@node1 plugins]$ sudo mkdir -p /var/log/holland [vagrant@node1 plugins]$ sudo mkdir -p /var/spool/holland
Now the directories we've created will only be writable to root since we needed elevated privileges to make them. You might choose to chmod the directories if you're going to use a specific backup user to run your backup jobs. Now we're ready to run the python setup file from the root of the unarchived directory
[vagrant@node1 holland-master]$ sudo python ./setup.py install running install running bdist_egg running egg_info creating holland.egg-info writing holland.egg-info/PKG-INFO ... Installing holland script to /usr/bin Installed /usr/lib/python2.6/site-packages/holland-1.0.8-py2.6.egg Processing dependencies for holland==1.0.8 Finished processing dependencies for holland==1.0.8
Without any errors in the previous output it's safe to assume we're installed.
[vagrant@node1 config]$ holland --version Holland Backup v1.0.8 Copyright (c) 2008-2010 Rackspace US, Inc. More info available at http://hollandbackup.org
Lets review what is in the plugin directory. These are the providers. Some are core libraries for the use of particular providers. There's also an example and random directory which we will reference in the next article on config.
[vagrant@node1 plugins]$ ls -w1 ACTIVE holland.backup.example holland.backup.mysqldump holland.backup.mysqlhotcopy holland.backup.mysql_lvm holland.backup.pgdump holland.backup.random holland.backup.sqlite holland.backup.xtrabackup holland.lib.common holland.lib.lvm holland.lib.mysql README