VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
High Availability Redundancy vs Backup vs Archiving Databases
1. High Availability
Redundancy vs Backup vs Archiving
Databases (MySQL, PostgreSQL, MongoDB), Data
Rafał Gołąb <rafal.golab@codibly.com>
Kraków, 19.02.2015r.
3. Redundancy, backup, archiving theory
● Redundancy
- establishes a straight copy of an entire system, ready to take over if the original
system fails
● Backup
- create a second copy of data at specific points in time
- ideally keeping multiple historic copies
- must be consistent
● Archiving
- makes a primary copy of selected data with the aim of retaining data in the long-
term
6. Objectives
● understanding how big is a problem
● sleep well
● extend knowledge
● know the differences
● increase data safety
7. What will can happen?
● location
● networking
● hardware
● operating system
● data storage
● app layer
What can we do?
● load balancing
● fail-over
● disaster recovery
8. Detailed problem solving
● DNS problems
- round robin
- low ttl
- gslb (dnsmadeeasy.com, akamai)
● HTTP problems
- HAproxy, nginx (LB algorithms)
- memcache servers
- failover ip addresses
● MAIL problems
- few MX servers
- LB SMTP servers
● DATABASES & STORAGE problems
- next part of presentation
19. LVM - snapshots
LVM snapshots allow for a consistent backup even if files are open during the backup. The
snapshot volume needs enough space to store changes that occur during the backup.
100GB
5GB
100GB
21. MySQL Backup Tools (real examples)
● mylvmbackup
● xtrabackup
- no tables locks
- only for innodb
● mysqldump
- tables locks
- long time recovery
- for small databases
23. Conclusions
● High Availability is complex problem and different on each organisation.
● The best practice when it comes to protecting your data is using all of
solutions (redundancy, backup and archiving) when possible.
● Redundancy isn’t backup
● Backup is more important than redundancy
● Using LVM is the best solution for preparation DBs backups
24. Thank you for your attention. Questions?
Rafał Gołąb
Linux System Administrator
E-mail: rafal.golab@codibly.com
Mob.: (+48) 506 514 543
www.codibly.com