Let Robots Manage Your Schema Without Killing All Humans. Jenni

Size: px
Start display at page:

Download "Let Robots Manage Your Schema Without Killing All Humans. Jenni"

Transcription

1 Let Robots Manage Your Schema Without Killing All Humans Jenni

2 Yelp s Mission Connecting people with great local businesses.

3 Yelp Stats As of Q M 95M 70% 32

4 Database Yelp 300+ Engineers 3 Database Engineers 100+ MySQL servers ~75 DBs/Schemas

5 Schema Change is Good New features Fix bugs Speed things up

6 Schema Yelp - History Devs run ALTER TABLE at will #yoloops 2011 Replication delay becomes a thing ALTER TABLE during "maintenance windows" Tables getting bigger More TZs means no "quiet time"

7 Schema Yelp - History pt-online-schema-change Dev makes change in dev DBA uses pt-online-schema-change in stages prod

8 History of Schema Yelp environments: 2 dev, 2 stage, 1 prod environments: 2 dev, 2 CI, 2 stage, and 1 prod environments: 3 dev, 3 CI, 4 stage, 1 prod

9 HOW DID WE LET IT COME TO THIS?!

10 SAD DEVELOPERS

11 SAD DBAs

12 Solution: Automation

13 What We Were Already Doing Right Schema conventions Rollback safety Reviewboard GrossQueryChecker Killing long queries & transactions

14 But, We Can't Kill our Queries!

15 We Can't Kill our Queries!

16 Rollback Safety De-couple schema changes from code DEFAULT NULL NOT NULL DEFAULT something Backfill with code New column if data must be transformed

17 We Already Had These Tools pt-online-schema-change Liquibase Python Jenkins

18 Intro to pt-online-schema-change

19 More on pt-online-schema-change Works pretty good out of the box Deployed w/ puppet Configs go in /etc/percona-toolkit End result: pt-online-schema-change $DSN --alter "ADD KEY (woot)"

20 # pt-online-schema-change.cnf: config file # This file is managed by Puppet. Please do not edit locally. chunk-time=0.5 critical-load=threads_running=175 max-lag=4 no-check-replication-filters no-drop-old-table set-vars=lock_wait_timeout=5 statistics # we only create the slave_lag plugin that uses # repl_delay_reporter (by way of smartstack on Ubuntu hosts) recurse=0 plugin=/etc/percona-toolkit/pt-online-schema-change-plugin.pl

21 Pt-online-schema-change - Dangers Waiting for table metadata lock This version of MySQL doesn't yet support multiple triggers with the same action time and event for one table Bugs

22 Plugins at Yelp Verify read_only Replication delay IRC notifications Replication coordinates

23 # sample plugin code here # pt-online-schema-change-plugin.pl use strict ; package pt_online_schema_change_plugin ; sub init { my ($self, %args) my $dbh = $self->{aux_cxn}->dbh; = $dbh->selectrow_array("select DATABASE()") ; if ( $self->{execute} ) { `/nail/sys/bin/nodebot dba "pt-online-schema-change starting alter in $dbname[0]: $self->{alter}"` ; } }

24 sub before_create_new_table { my ($self, %args) # connect to the database, and verify that read_only==0 my $dbh = $self->{aux_cxn}->dbh; = $dbh->selectrow_array("select \@\@read_only") ; if ( $is_read_only[0]!= 0 ) { print "\nerror: MySQL is running in read-only mode, bailing out!\n\n" ; exit 0 ; } else { return ; } }

25 Replication Delay Reporter Service Returns JSON or single number Uses app's client config

26 Why Not Have Devs Run It? Issues are rare, but serious DBAs prefer to resolve Hard to share right info

27 Liquibase Already had it in house yaml format Extension support, liquibase-percona

28 Liquibase - Files and Tables Change file - SQL Change log file - yaml Bookkeeping table in each database

29 cat pushplans/db_yelp/2015/08/ testing-liquibase.sql --liquibase formatted sql --changeset author:jsnyder failonerror:true -- new table test, this is our first attempt at a liquibase changeset CREATE TABLE `test` ( `id` int(11) NOT NULL AUTO_INCREMENT, `a` varchar(32) DEFAULT NULL, `b` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;

30 $ cat databasechangelog.yaml databasechangelog: - relativetochangelog:true - include: file: pushplans/db_yelp/2015/08/ testingliquibase.sql - include: file: pushplans/db_yelp/2015/08/ testingliquibase2.sql

31 CREATE TABLE `DATABASECHANGELOG` ( `ID` varchar(255) NOT NULL, `AUTHOR` varchar(255) NOT NULL, `FILENAME` varchar(255) NOT NULL, `DATEEXECUTED` datetime NOT NULL, `ORDEREXECUTED` int(11) NOT NULL, `EXECTYPE` varchar(10) NOT NULL, `MD5SUM` varchar(35) DEFAULT NULL, `DESCRIPTION` varchar(255) DEFAULT NULL, `COMMENTS` varchar(255) DEFAULT NULL, `TAG` varchar(255) DEFAULT NULL, `LIQUIBASE` varchar(20) DEFAULT NULL, `CONTEXTS` varchar(255) DEFAULT NULL, `LABELS` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1

32 Liquibase - Drawbacks yaml syntax not fully supported liquibase-percona still adding ALTER types

33 Some Duct Tape Wrapper script for Liquibase Generate changes as yaml for Liquibase Collect information about environment Because, logging

34 Jenkins Polls repos for changes Runs jobs Notifies of the output Jenkins Job Builder

35 Jenkins - How we use it Detects new schema change(s) Knows about each environment Runs job

36

37 In Practice: Developer Follows checklist to develop SQL Runs wrapper to develop/test locally Code Review Push to stage, prod Code merged to master

38 In Practice: Automation Jenkins Runs wrapper Push to all other environments Idempotence FTW

39 Where We Are Now Not 100% automated Edge cases Manual resolution of issues Ready to use pt-kill more >:) Experimenting with Anemometer Pretty Happy

40

41 engineeringblog.yelp.com github.com/yelp

If Only I Could Find My Databases-Service Discovery with SmartStack and MySQL. Susanne Lehmann, Yelp

If Only I Could Find My Databases-Service Discovery with SmartStack and MySQL. Susanne Lehmann, Yelp If Only I Could Find My Databases-Service Discovery with SmartStack and MySQL Susanne Lehmann, Yelp susanne@yelp.com Me I ve been a DBA for 16 years I ve been working with all kinds of relational and NoSQL

More information

Next Generation Monitoring: Moving Beyond Nagios

Next Generation Monitoring: Moving Beyond Nagios Next Generation Monitoring: Moving Beyond Nagios Intro - Us who are we? why do we care about this? Intro - You do you like your servers? Nagios "It was here when I got here" initially released 1999 What

More information

PostgreSQL to MySQL A DBA's Perspective. Patrick

PostgreSQL to MySQL A DBA's Perspective. Patrick PostgreSQL to MySQL A DBA's Perspective Patrick King @mr_mustash Yelp s Mission Connecting people with great local businesses. My Database Experience Started using Postgres 7 years ago Postgres 8.4 (released

More information

Mesos at Yelp: Building a production ready PaaS. Rob Johnson

Mesos at Yelp: Building a production ready PaaS. Rob Johnson Mesos at Yelp: Building a production ready PaaS Rob Johnson robj@yelp.com/@rob_johnson_ Who Am I: - Rob Johnson - Operations Team at Yelp - Spend most of my time working on PaaSTA Yelp s Mission: Connecting

More information

Distributed CI: Scaling Jenkins on Mesos and Marathon. Roger Ignazio Puppet Labs, Inc. MesosCon 2015 Seattle, WA

Distributed CI: Scaling Jenkins on Mesos and Marathon. Roger Ignazio Puppet Labs, Inc. MesosCon 2015 Seattle, WA Distributed CI: Scaling Jenkins on Mesos and Marathon Roger Ignazio Puppet Labs, Inc. MesosCon 2015 Seattle, WA About Me Roger Ignazio QE Automation Engineer Puppet Labs, Inc. @rogerignazio Mesos In Action

More information

Liquibase Version Control For Your Schema. Nathan Voxland April 3,

Liquibase Version Control For Your Schema. Nathan Voxland April 3, Liquibase Version Control For Your Schema Nathan Voxland April 3, 2014 nathan@liquibase.org @nvoxland Agenda 2 Why Liquibase Standard Usage Tips and Tricks Q&A Why Liquibase? 3 You would never develop

More information

Tips from the Trenches Preventing downtime for the over extended DBA. Andrew Moore Senior Remote DBA Percona Managed Services

Tips from the Trenches Preventing downtime for the over extended DBA. Andrew Moore Senior Remote DBA Percona Managed Services Tips from the Trenches Preventing downtime for the over extended DBA Andrew Moore Senior Remote DBA Percona Managed Services Your Presenter Andrew Moore @mysqlboy on twitter 1+ year in Manager Services

More information

MySQL Installation Guide (Windows)

MySQL Installation Guide (Windows) Step1- Install MySQL MySQL Installation Guide (Windows) The following description is based on MySQL 5.7.17 for Windows. Go to MySQL download page ( http://dev.mysql.com/downloads/mysql/ ). Click the Go

More information

Upgrading MySQL Best Practices. Apr 11-14, 2011 MySQL Conference and Expo Santa Clara,CA by Peter Zaitsev, Percona Inc

Upgrading MySQL Best Practices. Apr 11-14, 2011 MySQL Conference and Expo Santa Clara,CA by Peter Zaitsev, Percona Inc Upgrading MySQL Best Practices Apr 11-14, 2011 MySQL Conference and Expo Santa Clara,CA by Peter Zaitsev, Percona Inc MySQL Upgrade How many of you have performed MySQL upgrade? Home many of you have done

More information

OKC MySQL Users Group

OKC MySQL Users Group OKC MySQL Users Group OKC MySQL Discuss topics about MySQL and related open source RDBMS Discuss complementary topics (big data, NoSQL, etc) Help to grow the local ecosystem through meetups and events

More information

MySQL Installation Guide (Windows)

MySQL Installation Guide (Windows) Step1- Install MySQL MySQL Installation Guide (Windows) The following description is based on MySQL 5.7.10 for Windows. Go to MySQL download page (http://dev.mysql.com/downloads/mysql/). Click the Windows

More information

XA Transactions in MySQL

XA Transactions in MySQL XA Transactions in MySQL An overview and troubleshooting guide to distributed transactions Dov Endress Senior MySQL DBA July 25th 2018 1 2016 Percona ACID Compliant Distributed Transactions Distributed

More information

Firefox Crash Reporting.

Firefox Crash Reporting. Firefox Crash Reporting laura@ mozilla.com @lxt Webtools @ Mozilla Crash reporting Localization Performance measurement Code search and static analysis Other stuff: product delivery and updates, plugins

More information

MySQL Utilities, part 1. Sheeri Cabral. Senior DB Admin/Architect,

MySQL Utilities, part 1. Sheeri Cabral. Senior DB Admin/Architect, MySQL Utilities, part 1 Sheeri Cabral Senior DB Admin/Architect, Mozilla @sheeri www.sheeri.com A set of tools What are they? What are they? A set of tools Like Percona toolkit, Open Ark Kit What are they?

More information

Manage MySQL like a devops sysadmin. Frédéric Descamps

Manage MySQL like a devops sysadmin. Frédéric Descamps Manage MySQL like a devops sysadmin Frédéric Descamps Webinar Oct 2012 Who am I? Frédéric Descamps @lefred http://about.be/lefred Managing MySQL since 3.23 (as far as I remember) devops believer www.percona.com

More information

MySQL 101. Designing effective schema for InnoDB. Yves Trudeau April 2015

MySQL 101. Designing effective schema for InnoDB. Yves Trudeau April 2015 MySQL 101 Designing effective schema for InnoDB Yves Trudeau April 2015 About myself : Yves Trudeau Principal architect at Percona since 2009 With MySQL then Sun, 2007 to 2009 Focus on MySQL HA and distributed

More information

Dealing with schema changes on large data volumes. Danil Zburivsky MySQL DBA, Team Lead

Dealing with schema changes on large data volumes. Danil Zburivsky MySQL DBA, Team Lead Dealing with schema changes on large data volumes Danil Zburivsky MySQL DBA, Team Lead Why Companies Trust Pythian Recognized Leader: Global industry-leader in remote database administration services and

More information

Stored procedures - what is it?

Stored procedures - what is it? For a long time to suffer with this issue. Literature on the Internet a lot. I had to ask around at different forums, deeper digging in the manual and explain to himself some weird moments. So, short of

More information

GitHub's online schema migrations for MySQL

GitHub's online schema migrations for MySQL GitHub's online schema migrations for MySQL Jonah Berquist @github/database-infrastructure engineering manager Illustrated with ghosts (and product placement) How people build software 1 GitHub The world

More information

G a l e r a C l u s t e r Schema Upgrades

G a l e r a C l u s t e r Schema Upgrades G a l e r a C l u s t e r Schema Upgrades Seppo Jaakola Codership Agenda Galera Cluster Overview DDL vs DML Demo of DDL Replication in Galera Cluster Rolling Schema Upgrade (RSU) Total Order Isolation

More information

Backup & Restore. Maximiliano Bubenick Sr Remote DBA

Backup & Restore. Maximiliano Bubenick Sr Remote DBA Backup & Restore Maximiliano Bubenick Sr Remote DBA Agenda Why backups? Backup Types Raw Backups Logical Backups Binlog mirroring Backups Locks Tips Why Backups? Why Backups? At some point something will

More information

CO 2 DAS Data Ingestion System Design Version 1.0 Charles J Antonelli 1 April 2011

CO 2 DAS Data Ingestion System Design Version 1.0 Charles J Antonelli 1 April 2011 CO 2 DAS Data Ingestion System Design Version 1.0 Charles J Antonelli 1 April 2011 Introduction The CO2DAS Data Ingestion System (DIS) is responsible for discovering and remembering sources of data, and

More information

MariaDB 10.3 vs MySQL 8.0. Tyler Duzan, Product Manager Percona

MariaDB 10.3 vs MySQL 8.0. Tyler Duzan, Product Manager Percona MariaDB 10.3 vs MySQL 8.0 Tyler Duzan, Product Manager Percona Who Am I? My name is Tyler Duzan Formerly an operations engineer for more than 12 years focused on security and automation Now a Product Manager

More information

Automatic MySQL Schema Management with Skeema. Evan Elias Percona Live, April 2017

Automatic MySQL Schema Management with Skeema. Evan Elias Percona Live, April 2017 Automatic MySQL Schema Management with Skeema Evan Elias Percona Live, April 2017 What is Schema Management? Organize table schemas in a repo Execution of all DDL, on the correct MySQL instances, with

More information

Seagull: A distributed, fault tolerant, concurrent task runner. Sagar Patwardhan

Seagull: A distributed, fault tolerant, concurrent task runner. Sagar Patwardhan Seagull: A distributed, fault tolerant, concurrent task runner Sagar Patwardhan sagarp@yelp.com Yelp s Mission Connecting people with great local businesses. Yelp scale Outline What is Seagull? Why did

More information

GitHub's online schema migrations for MySQL

GitHub's online schema migrations for MySQL GitHub's online schema migrations for MySQL Tom Krouper, Shlomi Noach GitHub Illustrated with ghosts How people build software 1 GitHub The world s largest Octocat T-shirt and stickers store And water

More information

Copyright 2014 Oracle and/or its affiliates. All rights reserved.

Copyright 2014 Oracle and/or its affiliates. All rights reserved. Copyright 2014 Oracle and/or its affiliates. All rights reserved. Howdy, I m Blaine Carter Oracle Developer Advocate for Open Source Oracle Corporation Email: blaine.carter@oracle.com Blog: learncodeshare.net

More information

One System To Fit Them All:

One System To Fit Them All: One System To Fit Them All: Shared MySQL Hosting At Facebook Andrew Regner Production Engineer MySQL Infrastructure Data choices @Facebook Everyone has data to persist Also have: ZippyDB, ODS, Scuba,

More information

Manual Trigger Sql Server Update Column Changed

Manual Trigger Sql Server Update Column Changed Manual Trigger Sql Server Update Column Changed You can rename a table column in SQL Server 2016 by using SQL Server Topic Status: Some information in this topic is preview and subject to change in You

More information

#jenkinsconf. Managing jenkins with multiple components project. Jenkins User Conference Israel. Presenter Name Ohad Basan

#jenkinsconf. Managing jenkins with multiple components project. Jenkins User Conference Israel. Presenter Name Ohad Basan Jenkins User Conference Israel #jenkinsconf Managing jenkins with multiple components project Presenter Name Ohad Basan Presenter Company Www.redhat.com July 16, 2014 #jenkinsconf Who am I Ohad Basan CI

More information

DISQUS. Continuous Deployment Everything. David

DISQUS. Continuous Deployment Everything. David DISQUS Continuous Deployment Everything David Cramer @zeeg Continuous Deployment Shipping new code as soon as it s ready (It s really just super awesome buildbots) Workflow Commit (master) Integration

More information

Online Schema Changes for Maximizing Uptime. David Turner - Dropbox Ben Black - Tango

Online Schema Changes for Maximizing Uptime. David Turner - Dropbox Ben Black - Tango Online Schema Changes for Maximizing Uptime David Turner - Dropbox Ben Black - Tango About us Dropbox Tango Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share

More information

Database Systems. phpmyadmin Tutorial

Database Systems. phpmyadmin Tutorial phpmyadmin Tutorial Please begin by logging into your Student Webspace. You will access the Student Webspace by logging into the Campus Common site. Go to the bottom of the page and click on the Go button

More information

Alter Change Default Schema Oracle Sql Developer

Alter Change Default Schema Oracle Sql Developer Alter Change Default Schema Oracle Sql Developer Set default schema in Oracle Developer Tools in Visual STudio 2013 any other schema's. I can run alter session set current_schema=xxx Browse other questions

More information

Scaling the Yelp s logging pipeline with Apache Kafka. Enrico

Scaling the Yelp s logging pipeline with Apache Kafka. Enrico Scaling the Yelp s logging pipeline with Apache Kafka Enrico Canzonieri enrico@yelp.com @EnricoC89 Yelp s Mission Connecting people with great local businesses. Yelp Stats As of Q1 2016 90M 102M 70% 32

More information

Immutable Servers. Building a deployment pipeline and deploying to EC2 Spot

Immutable Servers. Building a deployment pipeline and deploying to EC2 Spot Immutable Servers Building a deployment pipeline and deploying to EC2 Spot Instances @james_ridgway Who am I? My name is James Ridgway I work on the Dev side of DevOps Head of Platform and Data Science

More information

Automating Schema. Changes using

Automating Schema. Changes using Automating Schema Changes using Percona Live Open Source Database Conference 2017-04-27 12:50 PM - 1:40 PM Ballroom D " How people build software Tom Krouper @CaptainEyesight @tomkrouper Database Infrastructure

More information

TM DevOps Use Case. 2017TechMinfy All Rights Reserved

TM DevOps Use Case. 2017TechMinfy All Rights Reserved Document Details Use Case Name TMDevOps Use Case03 First Draft 01 st Dec 2017 Author Reviewed By Prabhakar D Pradeep Narayanaswamy Contents Scope... 4 About Customer... 4 Use Case Description... 4 Primary

More information

TM DevOps Use Case. 2017TechMinfy All Rights Reserved

TM DevOps Use Case. 2017TechMinfy All Rights Reserved Document Details Use Case Name TMDevOps Use Case04 First Draft 10 th Dec 2017 Author Reviewed By Amrendra Kumar Pradeep Narayanaswamy Contents Scope... 4 About Customer... 4 Pre-Conditions/Trigger... 4

More information

SQL (and MySQL) Useful things I have learnt, borrowed and stolen

SQL (and MySQL) Useful things I have learnt, borrowed and stolen SQL (and MySQL) Useful things I have learnt, borrowed and stolen MySQL truncates data MySQL truncates data CREATE TABLE pets ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, type CHAR(3) NOT NULL, PRIMARY KEY

More information

Pl Sql Copy Table From One Schema To Another

Pl Sql Copy Table From One Schema To Another Pl Sql Copy Table From One Schema To Another I know how to do this using MS SQL Server. you want to copy a table from one schema to another, or from one database to another, and keep the same table name.

More information

TINYINT[(M)] [UNSIGNED] [ZEROFILL] A very small integer. The signed range is -128 to 127. The unsigned range is 0 to 255.

TINYINT[(M)] [UNSIGNED] [ZEROFILL] A very small integer. The signed range is -128 to 127. The unsigned range is 0 to 255. MySQL: Data Types 1. Numeric Data Types ZEROFILL automatically adds the UNSIGNED attribute to the column. UNSIGNED disallows negative values. SIGNED (default) allows negative values. BIT[(M)] A bit-field

More information

ITS. MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA)

ITS. MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA) MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA) Prerequisites Have some experience with relational databases and SQL What will you learn? The MySQL for Database Administrators

More information

Get Table Schema In Sql Server 2008 To Add Column If Not Exists >>>CLICK HERE<<<

Get Table Schema In Sql Server 2008 To Add Column If Not Exists >>>CLICK HERE<<< Get Table Schema In Sql Server 2008 To Add Column If Not Exists IF NOT EXISTS ( SELECT * FROM sys.columns WHERE object_id = OBJECT_ID(N'(dbo). Also try catch is easily possible to use in sql serverand

More information

MySQL usage of web applications from 1 user to 100 million. Peter Boros RAMP conference 2013

MySQL usage of web applications from 1 user to 100 million. Peter Boros RAMP conference 2013 MySQL usage of web applications from 1 user to 100 million Peter Boros RAMP conference 2013 Why MySQL? It's easy to start small, basic installation well under 15 minutes. Very popular, supported by a lot

More information

Run your own Open source. (MMS) to avoid vendor lock-in. David Murphy MongoDB Practice Manager, Percona

Run your own Open source. (MMS) to avoid vendor lock-in. David Murphy MongoDB Practice Manager, Percona Run your own Open source Click alternative to edit to Master Ops-Manager title style (MMS) to avoid vendor lock-in David Murphy MongoDB Practice Manager, Percona Who is this Person and What Does He Know?

More information

Manual Trigger Sql Server 2008 Insert Update Delete Select

Manual Trigger Sql Server 2008 Insert Update Delete Select Manual Trigger Sql Server 2008 Insert Update Delete Select Since logon triggers are server-scoped objects, we will create any necessary additional objects in master. WHERE dbs IN (SELECT authenticating_database_id

More information

Bitte decken Sie die schraffierte Fläche mit einem Bild ab. Please cover the shaded area with a picture. (24,4 x 7,6 cm)

Bitte decken Sie die schraffierte Fläche mit einem Bild ab. Please cover the shaded area with a picture. (24,4 x 7,6 cm) Bitte decken Sie die schraffierte Fläche mit einem Bild ab. Please cover the shaded area with a picture. (24,4 x 7,6 cm) Continuous Integration / Continuous Testing Seminary IIC Requirements Java SE Runtime

More information

System Admin Manual <SNAPVALET> <Team No- 03>

System Admin Manual <SNAPVALET> <Team No- 03> System Admin Manual Name Brian Vanover Brian Bousman Ditong Ding Molly Karcher Patrick Horng Ridhima Manjrekar Role Project Manager, Developer Operational Concept Engineer, Developer

More information

Schema Migrations Table Does Not Exist Yet

Schema Migrations Table Does Not Exist Yet Schema Migrations Table Does Not Exist Yet You can create the schema_migrations table yourself, or you can do it with a rake task. then the rake task to setup the database (including the schema migrations

More information

What's New in MySQL 5.7?

What's New in MySQL 5.7? What's New in MySQL 5.7? Norvald H. Ryeng Software Engineer norvald.ryeng@oracle.com Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information

More information

Best Practices for a Mission- Critical Jenkins

Best Practices for a Mission- Critical Jenkins Best Practices for a Mission- Critical Jenkins Mike Rooney Jenkins Connoisseur http://linkedin.com/in/mcrooney Jenkins Uses! Genius.com staging deployment, code reviews, automated branching and merging,

More information

10 Percona Toolkit tools every MySQL DBA should know about

10 Percona Toolkit tools every MySQL DBA should know about 10 Percona Toolkit tools every MySQL DBA should know about Fernando Ipar - Percona Webinar Dec/2012 2 About me Fernando Ipar Consultant @ Percona fernando.ipar@percona.com 3 About this presentation Introductory

More information

IEMS 5722 Mobile Network Programming and Distributed Server Architecture Semester 2

IEMS 5722 Mobile Network Programming and Distributed Server Architecture Semester 2 IEMS 5722 Mobile Network Programming and Distributed Server Architecture 2016-2017 Semester 2 Assignment 3: Developing a Server Application Due Date: 10 th March, 2017 Notes: i.) Read carefully the instructions

More information

Automatically deploy Schema Changes with Ansible and Liquibase

Automatically deploy Schema Changes with Ansible and Liquibase Automatically deploy Schema Changes with Ansible and Liquibase Robert Marz Robert Marz Client Senior Technical Architect with database centric view of the world its-people Portfolio Manager Database Technologies

More information

CloudCenter for Developers

CloudCenter for Developers DEVNET-1198 CloudCenter for Developers Conor Murphy, Systems Engineer Data Centre Cisco Spark How Questions? Use Cisco Spark to communicate with the speaker after the session 1. Find this session in the

More information

Manual Trigger Sql Server 2008 Examples Insert Update

Manual Trigger Sql Server 2008 Examples Insert Update Manual Trigger Sql Server 2008 Examples Insert Update blog.sqlauthority.com/2011/03/31/sql-server-denali-a-simple-example-of you need to manually delete this trigger or else you can't get into master too

More information

Perl Dbi Insert Hash Into Table >>>CLICK HERE<<<

Perl Dbi Insert Hash Into Table >>>CLICK HERE<<< Perl Dbi Insert Hash Into Table How to insert values in PostgreSQL faster than insert() value() functions? At the moment I am using DBI in Perl to connect to IQ(Sybase) then load the values into a hash,

More information

A never-ending database migration

A never-ending database migration A never-ending database migration Charles Delort IT-DB November 20, 2017 Table of Contents Years ago, decisions were made A few years later PostgreSQL Foreign Data Wrappers First step of Migration Apiato

More information

OpenStack Infrastructure tools

OpenStack Infrastructure tools Coordination and OpenStack Infrastructure tools you will want to borrow Thierry Carrez Carrez (@tcarrez) Thierry (@tcarrez) Release Manager, OpenStack Crazy loads every day 000 patchsets are proposed

More information

MySQL Test Framework for Troubleshooting. February, 04, 2018 Sveta Smirnova

MySQL Test Framework for Troubleshooting. February, 04, 2018 Sveta Smirnova MySQL Test Framework for Troubleshooting February, 04, 2018 Sveta Smirnova What my Family Thinks I Do 2 What my Boss Thinks I Do 3 What I Really Do 4 I Investigate Why customer s SQL works wrongly 5 I

More information

MySQL Online Schema Changes at Uber and Tango. Ben Black and David Turner

MySQL Online Schema Changes at Uber and Tango. Ben Black and David Turner MySQL Online Schema Changes at Uber and Tango Ben Black and David Turner Who are we? Ben Black - DBA Tango, talks to himself thinking it is expert advice, herded cats at PalominoDB, tracked users at Garmin,

More information

MySQL 5.1 Past, Present and Future MySQL UC 2006 Santa Clara, CA

MySQL 5.1 Past, Present and Future MySQL UC 2006 Santa Clara, CA MySQL 5.1 Past, Present and Future jan@mysql.com MySQL UC 2006 Santa Clara, CA Abstract Last year at the same place MySQL presented the 5.0 release introducing Stored Procedures, Views and Triggers to

More information

Mastering phpmyadmiri 3.4 for

Mastering phpmyadmiri 3.4 for Mastering phpmyadmiri 3.4 for Effective MySQL Management A complete guide to getting started with phpmyadmin 3.4 and mastering its features Marc Delisle [ t]open so 1 I community experience c PUBLISHING

More information

Mysql Manually Set Auto Increment To 1000

Mysql Manually Set Auto Increment To 1000 Mysql Manually Set Auto Increment To 1000 MySQL: Manually increment a varchar for one insert statement Auto Increment only works for int values, but i'm not at liberty here to change the data type. If

More information

Why Choose Percona Server For MySQL? Tyler Duzan

Why Choose Percona Server For MySQL? Tyler Duzan Why Choose Percona Server For MySQL? Tyler Duzan Product Manager Who Am I? My name is Tyler Duzan Formerly an operations engineer for more than 12 years focused on security and automation Now a Product

More information

Change-sets. Basavaraj Karadakal

Change-sets. Basavaraj Karadakal Change-sets Basavaraj Karadakal (bkrdkl@juniper.net) Development environment Component based development model. Developers spread across multiple sites. Over 800 components. Over 500 repos. Repos nested

More information

Manual Trigger Sql Server 2008 Insert Update Delete Selection

Manual Trigger Sql Server 2008 Insert Update Delete Selection Manual Trigger Sql Server 2008 Insert Update Delete Selection Since logon triggers are server-scoped objects, we will create any necessary additional objects in master. WHERE dbs IN (SELECT authenticating_database_id

More information

MySQL 5.0 Certification Study Guide

MySQL 5.0 Certification Study Guide MySQL 5.0 Certification Study Guide Paul DuBois, Stefan Hinz, and Carsten Pedersen MySQC Press 800 East 96th Street, Indianapolis, Indiana 46240 USA Table of Contents Introduction 1 About This Book 1 Sample

More information

... Fisheye Crucible Bamboo

... Fisheye Crucible Bamboo Sander Soo MSc Computer Science Oracle Certified Professional (Java SE) Nortal (email: sander.soo@nortal.com) Mercurial Java Spring Framework AngularJS Atlassian stack... Fisheye Crucible Bamboo 2 Make

More information

Creating a Best-in-Class Backup and Recovery System for Your MySQL Environment. Akshay Suryawanshi DBA Team Manager,

Creating a Best-in-Class Backup and Recovery System for Your MySQL Environment. Akshay Suryawanshi DBA Team Manager, Creating a Best-in-Class Backup and Recovery System for Your MySQL Environment Akshay Suryawanshi DBA Team Manager, 2015-07-15 Agenda Why backups? Backup Types Binary or Raw Backups Logical Backups Binlog

More information

Practical Orchestrator

Practical Orchestrator Practical Orchestrator Shlomi Noach GitHub Percona Live 2017 How people build software 1 Agenda Setting up orchestrator Backend Discovery Refactoring Detection & recovery Scripting HA Roadmap How people

More information

Schema Management with Flyway

Schema Management with Flyway Schema Management with Flyway Scott Mead scottm@openscg.com Sr. Architect OpenSCG & BigSQL PGConf US 2017 1 Strategies Single File Application Managed (ORM) Migration 2 Single File 3 Single File Easiest

More information

T-sql Grant View Definition Example

T-sql Grant View Definition Example T-sql Grant View Definition Example View the Definition of a Stored Procedure View the For more information, see GRANT Object Permissions (Transact-SQL). Arrow icon used with Back This example grants EXECUTE

More information

APACHE COTTON. MySQL on Mesos. Yan Xu xujyan

APACHE COTTON. MySQL on Mesos. Yan Xu xujyan APACHE COTTON MySQL on Mesos Yan Xu xujyan 1 SHORT HISTORY Mesos: cornerstone of Twitter s compute platform. MySQL: backbone of Twitter s data platform. Mysos: started as a hackweek project @twitter. Apache

More information

Mysql Create Table Example Primary Key Foreign

Mysql Create Table Example Primary Key Foreign Mysql Create Table Example Primary Key Foreign Key Now, i want to connect this two table by the use of id primary key of girls and want to make it See: How to create a Minimal, Complete, and Verifiable

More information

WHMCS DNS.be Module. - Installation and Userguide. WHMCS DNS.be Module Version 2.8

WHMCS DNS.be Module. - Installation and Userguide. WHMCS DNS.be Module Version 2.8 WHMCS DNS.be Module - Installation and Userguide WHMCS DNS.be Module Version 2.8 Table of contents 1. Introduction WHMCS DNS.be Module... 3 1.1 Functions WHMCS DNS.be Module... 3 1.2System requirements...

More information

Automatically deploy Schema Changes with Ansible and Liquibase

Automatically deploy Schema Changes with Ansible and Liquibase Automatically deploy Schema Changes with Ansible and Liquibase Robert Marz Robert Marz Client Senior Technical Architect with database centric view of the world its-people Portfolio Manager Database Technologies

More information

Migrating To MySQL The Live Database Upgrade Guide

Migrating To MySQL The Live Database Upgrade Guide Migrating To MySQL 5.7 - The Live Database Upgrade Guide October 4, 2016 Krzysztof Książek Severalnines krzysztof@severalnines.com 1 Agenda! Why upgrading to MySQL 5.7?! Preparing an upgrade - changes

More information

Mysql Performance Schema Has The Wrong Structure

Mysql Performance Schema Has The Wrong Structure Mysql Performance Schema Has The Wrong Structure events_waits_summary_by_instance' has the wrong structure 141006 As for the performance schema problems they sound as though they are quite broken. events_waits_history_long'

More information

MICHIEL ROOK DATABASE MIGRATIONS WITHOUT DOWN TIME

MICHIEL ROOK DATABASE MIGRATIONS WITHOUT DOWN TIME MICHIEL ROOK DATABASE MIGRATIONS WITHOUT DOWN TIME @michieltcs Developer, consultant, trainer, speaker @michieltcs ABOUT DATABASE MIGRATIONS ABOUT SCHEMA MIGRATIONS SQL UP @michieltcs UP DOWN @michieltcs

More information

Mysql Tutorial Show Table Like Name Not >>>CLICK HERE<<<

Mysql Tutorial Show Table Like Name Not >>>CLICK HERE<<< Mysql Tutorial Show Table Like Name Not SHOW TABLES LIKE '%shop%' And the command above is not working as Table name and next SHOW CREATE TABLEcommand user889349 Apr 18. If you do not want to see entire

More information

MySQL Installation Guide (OS X)

MySQL Installation Guide (OS X) Step1- Install MySQL MySQL Installation Guide (OS X) Go to MySQL download page (http://dev.mysql.com/downloads/mysql/). Download the DMG archive version. Select the correct installer based on your system.

More information

We are ready to serve Latest Testing Trends, Are you ready to learn?? New Batches Info

We are ready to serve Latest Testing Trends, Are you ready to learn?? New Batches Info We are ready to serve Latest Testing Trends, Are you ready to learn?? New Batches Info START DATE : TIMINGS : DURATION : TYPE OF BATCH : FEE : FACULTY NAME : LAB TIMINGS : PH NO: 9963799240, 040-40025423

More information

MySQL Cluster An Introduction

MySQL Cluster An Introduction MySQL Cluster An Introduction Geert Vanderkelen O Reilly MySQL Conference & Expo 2010 Apr. 13 2010 In this presentation we'll introduce you to MySQL Cluster. We ll go through the MySQL server, the storage

More information

OpenNCP Weblogic / Oracle Database Porting Notes

OpenNCP Weblogic / Oracle Database Porting Notes OpenNCP Weblogic / Oracle Database Porting Notes Introduction The purpose of this document is to detail the modifications / changes to deploy the OpenNCP architecture on Weblogic 12.2.1 and an Oracle Database.

More information

Oral Questions and Answers (DBMS LAB) Questions & Answers- DBMS

Oral Questions and Answers (DBMS LAB) Questions & Answers- DBMS Questions & Answers- DBMS https://career.guru99.com/top-50-database-interview-questions/ 1) Define Database. A prearranged collection of figures known as data is called database. 2) What is DBMS? Database

More information

MySQL 5.0 Stored Procedures, VIEWs and Triggers MySQL UC 2005, Santa Clara

MySQL 5.0 Stored Procedures, VIEWs and Triggers MySQL UC 2005, Santa Clara MySQL 5.0 Stored Procedures, VIEWs and Triggers jan@mysql.com MySQL UC 2005, Santa Clara Trees in SQL The problem of how to handle trees in SQL has been talked about alot. The basic 3 ways are: store the

More information

MySQL Schema Review 101

MySQL Schema Review 101 MySQL Schema Review 101 How and What you should be looking at... Mike Benshoof - Technical Account Manager, Percona Agenda Introduction Key things to consider and review Tools to isolate issues Common

More information

NEW TOOLS. ngage vaping. MATT GRISWOLD

NEW TOOLS. ngage vaping. MATT GRISWOLD NEW TOOLS ngage vaping MATT GRISWOLD grizz@20c.com WHAT IS NGAGE? Command line tool to interface with network devices, evolved from internal tools. https://github.com/20c/ngage http://ngage.readthedocs.io/en/latest/

More information

How to Use JSON in MySQL Wrong

How to Use JSON in MySQL Wrong How to Use JSON in MySQL Wrong Bill Karwin, Square Inc. October, 2018 1 Me Database Developer at Square Inc. MySQL Quality Contributor Author of SQL Antipatterns: Avoiding the Pitfalls of Database Programming

More information

Load Data Fast! BILL KARWIN PERCONA LIVE OPEN SOURCE DATABASE CONFERENCE 2017

Load Data Fast! BILL KARWIN PERCONA LIVE OPEN SOURCE DATABASE CONFERENCE 2017 Load Data Fast! BILL KARWIN PERCONA LIVE OPEN SOURCE DATABASE CONFERENCE 2017 Bill Karwin Software developer, consultant, trainer Using MySQL since 2000 Senior Database Architect at SchoolMessenger SQL

More information

Treating Deployments as Code with Puppet and the Atlassian Toolsuite Puppet Camp, Geneva

Treating Deployments as Code with Puppet and the Atlassian Toolsuite Puppet Camp, Geneva Treating Deployments as Code with Puppet and the Atlassian Toolsuite Christoph Leithner Who is celix? Puppet Labs Partner Atlassian Expert IT Service Management (ITSM) Continuous Deployment und DevOps

More information

Mysql Create Table With Multiple Index Example

Mysql Create Table With Multiple Index Example Mysql Create Table With Multiple Index Example The same process can be applied to all data types, for example numeric data will be CREATE TABLE 'students' ( 'id' int(11) NOT NULL AUTO_INCREMENT, a little

More information

Manual Script Windows Batch If Condition. Statement Examples >>>CLICK HERE<<<

Manual Script Windows Batch If Condition. Statement Examples >>>CLICK HERE<<< Manual Script Windows Batch If Condition Statement Examples IF DEFINED MyVar (ECHO MyVar IS defined) ELSE (ECHO MyVar is NOT defined). The following code, which works in batch files for all MS-DOS, Windows.

More information

Configuration Management

Configuration Management Configuration Management A True Life Story October 16, 2018 Page 1 Configuration Management: A True Life Story John E. Picozzi Senior Drupal Architect Drupal Providence 401-228-7660 oomphinc.com 72 Clifford

More information

When EMG starts, the shared library that contains the plugin is loaded and the API function create_config() is called:

When EMG starts, the shared library that contains the plugin is loaded and the API function create_config() is called: EMG 6 C Plugin API Overview The functionality in EMG can be extended by writing a plugin. For example, plugins can be used to reject messages (spam filtering, blacklisting etc), implementing custom routing

More information

Instant ALTER TABLE in MariaDB Marko Mäkelä Lead Developer InnoDB

Instant ALTER TABLE in MariaDB Marko Mäkelä Lead Developer InnoDB Instant ALTER TABLE in MariaDB 10.3+ Marko Mäkelä Lead Developer InnoDB History of ALTER TABLE in MySQL/MariaDB The old way (also known as ALGORITHM=COPY starting with MySQL 5.6) CREATE TABLE ; INSERT

More information

ALTER TABLE Improvements in MARIADB Server. Marko Mäkelä Lead Developer InnoDB MariaDB Corporation

ALTER TABLE Improvements in MARIADB Server. Marko Mäkelä Lead Developer InnoDB MariaDB Corporation ALTER TABLE Improvements in MARIADB Server Marko Mäkelä Lead Developer InnoDB MariaDB Corporation Generic ALTER TABLE in MariaDB CREATE TABLE ; INSERT SELECT; RENAME ; DROP TABLE ; Retroactively named

More information

Manual Trigger Sql Server 2008 Insert Multiple Rows At Once

Manual Trigger Sql Server 2008 Insert Multiple Rows At Once Manual Trigger Sql Server 2008 Insert Multiple Rows At Once Adding SQL Trigger to update field on INSERT (multiple rows) However, if there are multiple records inserted (as in the user creates several

More information