High-Availability MySQL with DR:BD and Heartbeat: MTV Japan mobile services ©2008 MTV Networks Japan K.K.

Slides:



Advertisements
Similar presentations
How We Manage SaaS Infrastructure Knowledge Track
Advertisements

Express5800/ft series servers Product Information Fault-Tolerant General Purpose Servers.
A Ridiculously Easy & Seriously Powerful SQL Cloud Database Itamar Haber AVP Ops & Solutions.
MUNIS Platform Migration Project WELCOME. Agenda Introductions Tyler Cloud Overview Munis New Features Questions.
Intel® Manager for Lustre* Lustre Installation & Configuration
Mecanismos de alta disponibilidad con Microsoft SQL Server 2008 Por: ISC Lenin López Fernández de Lara.
ITIS 3110 Jason Watson. Replication methods o Primary/Backup o Master/Slave o Multi-master Load-balancing methods o DNS Round-Robin o Reverse Proxy.
June 23rd, 2009Inflectra Proprietary InformationPage: 1 SpiraTest/Plan/Team Deployment Considerations How to deploy for high-availability and strategies.
High Availability through Virtualization
1 © Copyright 2010 EMC Corporation. All rights reserved. EMC RecoverPoint/Cluster Enabler for Microsoft Failover Cluster.
Lesson 1: Configuring Network Load Balancing
1© Copyright 2011 EMC Corporation. All rights reserved. EMC RECOVERPOINT/ CLUSTER ENABLER FOR MICROSOFT FAILOVER CLUSTER.
National Manager Database Services
High Availability Module 12.
11 SERVER CLUSTERING Chapter 6. Chapter 6: SERVER CLUSTERING2 OVERVIEW  List the types of server clusters.  Determine which type of cluster to use for.
Microsoft Load Balancing and Clustering. Outline Introduction Load balancing Clustering.
How WebMD Maintains Operational Flexibility with NoSQL Rajeev Borborah, Sr. Director, Engineering Matt Wilson – Director, Production Engineering – Consumer.
DB-12: Achieving High Availability with Clusters and OpenEdge® Replication Combining the two technologies Hugo Loera Chávez Senior Tech Support Engineer.
SANPoint Foundation Suite HA Robert Soderbery Sr. Director, Product Management VERITAS Software Corporation.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
High-Availability Methods Lesson 25. Skills Matrix.
What is (Application) Clustering and Why do you Want to Use it? February 2005 Eero Teerikorpi CEO.
Chapter 8 Implementing Disaster Recovery and High Availability Hands-On Virtual Computing.
Submitted by: Shailendra Kumar Sharma 06EYTCS049.
The Role of High Availability Software in Quality of Service Joe McFadden Vice President, Marketing, Nuasis.
Cloud Computing & Amazon Web Services – EC2 Arpita Patel Software Engineer.
High-Availability MySQL DB based on DRBD-Heartbeat Ming Yue September 27, 2007 September 27, 2007.
Module 10: Maintaining High-Availability. Overview Introduction to Availability Increasing Availability Using Failover Clustering Standby Servers and.
Clustering In A SAN For High Availability Steve Dalton, President and CEO Gadzoox Networks September 2002.
1 MONGODB: CH ADMIN CSSE 533 Week 4, Spring, 2015.
 High-Availability Cluster with Linux-HA Matt Varnell Cameron Adkins Jeremy Landes.
Slide 1 CFEngine. Slide 2 Confidential Quotes “ ” CFEngine offers a highly scalable approach with a pull-based, distributed architecture. “ ” CFEngine.
 Load balancing is the process of distributing a workload evenly throughout a group or cluster of computers to maximize throughput.  This means that.
11 CLUSTERING AND AVAILABILITY Chapter 11. Chapter 11: CLUSTERING AND AVAILABILITY2 OVERVIEW  Describe the clustering capabilities of Microsoft Windows.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 12: Planning and Implementing Server Availability and Scalability.
VMware vSphere Configuration and Management v6
Donna C. Hamby Sr. Principal Instructor Oracle University Oracle Corporation.
Ashish Prabhu Douglas Utzig High Availability Systems Group Server Technologies Oracle Corporation.
Alwayson Availability Groups
Module 7: SQL Server Special Considerations. Overview SQL Server High Availability Unicode.
CERN - IT Department CH-1211 Genève 23 Switzerland t High Availability Databases based on Oracle 10g RAC on Linux WLCG Tier2 Tutorials, CERN,
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
CNAF Database Service Barbara Martelli CNAF-INFN Elisabetta Vilucchi CNAF-INFN Simone Dalla Fina INFN-Padua.
1 CEG 2400 Fall 2012 Network Servers. 2 Network Servers Critical Network servers – Contain redundant components Power supplies Fans Memory CPU Hard Drives.
Virtual Machine Movement and Hyper-V Replica
1 Chapter Overview Using Standby Servers Using Failover Clustering.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Deploying Highly Available SQL Server in Windows Azure A Presentation and Demonstration by Microsoft Cluster MVP David Bermingham.
vSphere HA and vSphere Fault Tolerance
Your current Moodle 1.9 Minimum Requirements Ability to do a TEST RUN! Upgrading Moodle to Version 2 By Ramzan Jabbar Doncaster College for the Deaf By.
Deploying Highly Available SAP in the Cloud
Sql Server Architecture for World Domination Tristan Wilson.
MySQL HA An overview Kris Buytaert. ● Senior Linux and Open Source ● „Infrastructure Architect“ ● I don't remember when I started.
High Availability Clusters in Linux Sulamita Garcia EDS Unix Specialist
USEIMPROVEEVANGELIZE Solutions for High Availability and Disaster Recovery with MySQL ● Detlef Ulherr ● Sun Microsystems.
Introduction to Clustering
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 12: Planning and Implementing Server Availability and Scalability.
Services DFS, DHCP, and WINS are cluster-aware.
High Availability Linux (HA Linux)
N-Tier Architecture.
Lead SQL BankofAmerica Blog: SQLHarry.com
AlwaysOn Mirroring, Clustering
SQL Server High Availability Amit Vaid.
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Introduction to Clustering
SpiraTest/Plan/Team Deployment Considerations
Scalable Database Services for Physics: Oracle 10g RAC on Linux
AlwaysOn Availability Groups
High Availability/Disaster Recovery Solution
Designing Database Solutions for SQL Server
Presentation transcript:

High-Availability MySQL with DR:BD and Heartbeat: MTV Japan mobile services ©2008 MTV Networks Japan K.K.

Patrick Bolduan System Manager MTV Networks Japan K.K. ©2008 MTV Networks Japan K.K.

Let’s get started ©2008 MTV Networks Japan K.K.

About MTVNJ Company Profile Company NameMTV Networks Japan K.K. PresidentPeter Robert Bullard Address2-8-2 Jingumae, Shibuya-ku, Tokyo TEL: FAX: Business Description MTV Networks Japan K.K. (MTVNJ) operates the mobile and PC digital media services for all MTV Networks brands including MTV and Nickelodeon in Japan. In addition to digital media services, MTVNJ also operates a 24-hour Nickelodeon channel on CS/CATV, and the consumer products business for Nickelodeon's character franchises in Japan. ©2008 MTV Networks Japan K.K.

MTVNJ Mobile Brands ©2008 MTV Networks Japan K.K.

MTV Flux/MTV Mobile DB project intro ©2008 MTV Networks Japan K.K.

{database} DB Selection MTV Flux/MTV Mobile DB project ©2008 MTV Networks Japan K.K.

Database requirements: flexibility performance scalability redundancy support cost Project summary: Merge all the database services for the MTV Flux and MTV Mobile services on to a single database platform. MTV Flux/MTV Mobile DB project ©2008 MTV Networks Japan K.K. DB Selection

reqs/DB OracleMS SQL MySQL Community MySQL Enterprise flexibility △/×△/× ×○○ performance○○○○ scalability ○/△○/△ ○○○ redundancy ○/△○/△ ○○○ support○○ × ○ cost×× ◎△ MTV Flux/MTV Mobile DB project ©2008 MTV Networks Japan K.K. DB Selection

MTV Flux/MTV Mobile DB project We chose MySQL Enterprise ©2008 MTV Networks Japan K.K. DB Selection

MTV Flux/MTV Mobile DB project What we looked for: flexibility performance scalability redundancy support cost MySQL Architectures: Single/multi Master Master/Slave Cluster DR:BD/Heartbeat HA Master ©2008 MTV Networks Japan K.K. MySQL Architectures

www Single/multi Master cheap(!) easy configuration load ↑ ⇒ performance ↓ high risk (if master dies, no more DB) flexibilityperformancescalabilityredundancysupportcost ○ ○/△○/△ ××○ ◎ Master × MTV Flux/MTV Mobile DB project ©2008 MTV Networks Japan K.K. MySQL Architectures

www Master/Slave some redundancy (read/writes separate) commonly used architecture still some risk (operator needed for outage recovery) manual failover for outages MasterSlave × MTV Flux/MTV Mobile DB project ©2008 MTV Networks Japan K.K. flexibilityperformancescalabilityredundancysupportcost ○ △ ○ △ ○ ◎ MySQL Architectures

www Cluster redundant! can scale complicated configuration limited support in Japan (2007) Cluster △ MTV Flux/MTV Mobile DB project ©2008 MTV Networks Japan K.K. flexibilityperformancescalabilityredundancysupportcost ○○ ◎◎ ○/△○/△△ MySQL Architectures

www DR:BD/Heartbeat HA Master redundant (master fully redundant) can scale (add salves) reduced outage risk can use failover for maintenance tasks complicated configuration PrimarySecondary ◎ MTV Flux/MTV Mobile DB project ©2008 MTV Networks Japan K.K. flexibilityperformancescalabilityredundancysupportcost ◎ ○/△○/△ ○/△○/△◎ ○○ MySQL Architectures

MTV Flux/MTV Mobile DB project MySQL HA Master ©2008 MTV Networks Japan K.K.

MTV Flux/MTV Mobile DB project HA Master VIP /etc/my.cnf local /var/lib/mysql DRBD /var/lib/mysql DRBD /etc/my.cnf local heartbeat drbd Application PrimarySecondary ©2008 MTV Networks Japan K.K.

MTV Flux/MTV Mobile DB project VIP DRBD heartbeat Application Web site or whatever Manages/monitors DB process and mounts: provides application connection point (Virtual IP) monitors network status watches the mysqld process manages the /var/lib/mysql mount point mysqld (the database) Synchronous device layer data replication ©2008 MTV Networks Japan K.K. HA Master

MTV Flux/MTV Mobile DB project VIP /etc/my.cnf local /var/lib/mysql DRBD /var/lib/mysql DRBD /etc/my.cnf local heartbeat drbd Application PrimarySecondary × Failover process network or mysqld failure 1 – Application looses connection to mysqld 2 – heartbeat detects the problem ©2008 MTV Networks Japan K.K. HA Master 4 – Failover complete! 3 – heartbeat does: pDB mysql dir unmount DRBD switch sDB mysql dir mount sDB mysqld start drbd

2 – drbd fails over 1 – primary server fails! 3 – heartbeat detects outage MTV Flux/MTV Mobile DB project VIP /etc/my.cnf local /var/lib/mysql DRBD /var/lib/mysql DRBD /etc/my.cnf local heartbeat drbd Application PrimarySecondary ©2008 MTV Networks Japan K.K. HA Master Failover process server outage 4 – Failover complete! 3 – heartbeat does: sDB mysql dir mount sDB mysqld start

MTV Flux/MTV Mobile DB project HA MySQL install ©2008 MTV Networks Japan K.K.

MTV Flux/MTV Mobile DB project HA Master Install local disk A Master local disk B Master Master Dual MasterSingle Master Old DB architecture ©2008 MTV Networks Japan K.K.

MTV Flux/MTV Mobile DB project VIP /etc/my.cnf local /var/lib/mysql DRBD /var/lib/mysql DRBD /etc/my.cnf local heartbeat drbd New DB architecture HA Master Install PrimarySecondary ©2008 MTV Networks Japan K.K.

MTV Flux/MTV Mobile DB project HA Master Install Database migration work plan: stop production services perform full data backup ( mysqldump ) Replace MySQL architecture restore data from backup test database failover test application re-open production services ©2008 MTV Networks Japan K.K.

5 – test application connectivity local disk × MTV Flux/MTV Mobile DB project A MasterB Master Master Migration process VIP /etc/my.cnf local /var/lib/mysql DRBD /var/lib/mysql DRBD /etc/my.cnf local drbd heartbeat 1 – remove old database components 2 – install/configure drbd and mysql 3 – install heartbeat 4 – configure VIP HA Master Install PrimarySecondary × ©2008 MTV Networks Japan K.K.

MTV Flux/MTV Mobile DB project HA Master Install Actual migration work times: production services stop – 00:10 full data backup ( mysqldump ) – 00:05 MySQL architecture replacement – 01:30 data restore – 00:10 database failover test – 00:15 application test – 03:00 production services fully restored! ©2008 MTV Networks Japan K.K.

MTV Flux/MTV Mobile DB project HA MySQL lessons learned ©2008 MTV Networks Japan K.K.

MTV Flux/MTV Mobile DB project Lessons learned Heartbeat: no room for configuration mistakes pay special attention to peer connectivity run lots of tests before going to production!!! Impact on our application: essentially the same as a single master can use same HA for: single master - master/slave - multi-master failover fast enough that DB outages don’t affect application ©2008 MTV Networks Japan K.K.

MTV Flux/MTV Mobile DB project Lessons learned DR:BD: requires separate partition (can be LVM) like heartbeat – test your configurations!!! always check your DRBD status after a failover peers sometime require a manual re-sync mysqld: can take advantage of redundancy to swap out nodes never try to run both primary and secondary at once!! leave all the redundancy to heartbeat ©2008 MTV Networks Japan K.K.

MTV Flux/MTV Mobile DB project Lessons learned Overall – good points: we were able to deploy HA in a short maintenance window commercial support available (MySQL – LINBIT) MySQL consultative services were a big help also usable with MySQL Community can be part of other architectures multi-master - master/slave Overall – weak points: lots to learn, lots to test (heartbeat and DRBD) configuration and failover is complex mysqld restart requires some extra steps all admins/vendors need to understand failover basics ©2008 MTV Networks Japan K.K.

HA MySQL in other MTVNJ environments ©2008 MTV Networks Japan K.K.

Questions? ©2008 MTV Networks Japan K.K. DRBD related links MTVNJ links Patrick Bolduan MTV Networks Japan KK Jingu-mae, Shibuya-ku, Tokyo