how database devops will help you - redgate · how database devops will help you to stay ahead of...

45

Upload: others

Post on 21-May-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development
Page 2: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

How Database DevOps Will Help You

To Stay Ahead Of The Competition

Bob Walker, Solutions Architect at Octopus Deploy

Page 3: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Agenda

• Problem to solve

• DevOps

• Benefits

• Roadblocks

• Questions

Page 4: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

What is DevOps trying

to Solve?

Page 5: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Previous Work Experience

• Lifting Controls for Oil Terminals

• Loan Origination System

• Electronic Pollbook

Page 6: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Software Development Life Cycle

Page 7: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Development Team

Page 8: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Operations Team

Page 9: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Knowledge Silos

• Development Team• Creates roadmap• Feature requirements• Knows how to fix the application

• Operations Team• Performance statistics• Support tickets submitted• Incidents

Page 10: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Typical Communication Between Teams

• “This service is down please restart it”

• “Your service is consuming 16 GB of RAM, fix it now”

• “I have a call from a customer and they say your

application is slow”

• “I got paged last night because this SQL Job

failed. Fix it.”

Page 11: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Developer’s Mindset

Page 12: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

A Lack of Trust

Page 13: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Lack Of Trust

Slows Everything

Down

Page 14: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Real-World Example

• Loan Origination System

• Used Redgate Schema compare to compare test

and prod

• Scripts dropped into shared folder to be ran

• 2ish hour deployment

Page 15: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Real-World Example

• Lifting Controls Application

• Manually Written Database Scripts

• Manual Deployments

• 2 AM Saturday Morning Deployments

• 2 – 4 hour deployments on average

Page 16: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Expected

Perfection

Page 17: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Big Bang Deployments

• Multiple Sprints prior to going to production

• Multiple KanBan cards bundled together prior to

going to production

• Long Waterfall release cycles (quarter or months)

Page 18: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Perfect Storm

• Lifting Control Application: Quarterly Release with

six month rotation

• Loan Origination System: Quarterly Release

• Electronic Pollbook: Three Month - Eight Month

Release

Page 19: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Everyone Is Unhappy

• Business Owners• “This isn’t going to work now, we need to add the following features to

make this viable”• “Fine. Fine. Fine. Deploy it as is. I’ll add it my next release doc”

• Users• “This isn’t what I wanted”• How long until the application is no longer relevant• Head to competitors

• Security• Data Compliance• Patches

Page 20: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

DevOps to the rescue!

Right?!?!? Right?!?!?!

Page 21: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

DevOps: Development

and Operations Teams

Working Together

Towards a Common

Goal

Page 22: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Common Goal Examples

• 1 deployment a month

• 1 deployment a week

• Zero Downtime Deployments

• 10 deployments a day

• Fixing all critical bugs within 2 business days

• Performance tests before each release

• Decrease deployment time

• Increase response time on critical methods

• Decrease resource usage

Page 23: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Benefits

Page 24: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Automated Database Deployments

• Loan Origination System

• Database Developer, Lead Developer, DBA, Architect and Redgate Consultants collaborate on a initial process

• Pilot Team adopted process and tooling

• Iterate through the process

• 2ish hour deployments went down to 10ish minute deployments

Page 25: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Less Time Fixing Bugs

• 3200 schema objects

• 2 to 3 emergency fixes post release

• Missed views, stored proc updates, tables, etc

• Post automation this went down to zero

Page 26: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Multi-tenant Database Deployments

• Electronic Pollbook Reporting Application

• 100+ jurisdictions with unique databases

• Unique delta script per jurisdiction

• Prep-work minimum two days

• Deployment minimum four hours

• Post Automation 20 – 30 minutes of prep, 30 minute deployment

Page 27: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Fixing Critical Bug

• Customer reported bug to their process through

support channels at Octopus Deploy Tuesday

morning

• Discussed bug during the day

• Fix released late Tuesday night

• In customer’s hands by Wednesday morning

Page 28: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Better Performance

• Loan Origination System

• Endpoint averaging 2000 requests per minute

• After deployment average response time went

from 20 ms to 200 ms

• Identify slow performance and deploy release

before first support ticket came in

Page 29: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Staying Ahead Of Competition

• Respond to customer feedback

• Fix critical bugs

• Experiment and A/B testing

• Keep company relevant

Page 30: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Higher Employee Utilization

Page 31: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Getting Started

Page 32: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Octopus Deploy and Redgate to the

rescue!

Page 33: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Hold your horses…

Page 34: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Start Small

• Attend meetings

• Discuss issues and complaints

• Listen and Learn

• Pick a common problem

• Use existing tooling

Page 35: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Go Bigger

• Solve a larger problem

• Pilot Application / Group

• New Tooling

• New Processes

Page 36: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Tooling

• Build: TeamCity / VSTS / Jenkins / Bamboo

• Unit Testing: NUnit / MSTest / XUnit

• Integration Testing: Selenium / Postman

• Deploy: Octopus Deploy / Redgate (for DBs) / VSTS Release / DACPAC

• Monitoring: NewRelic / DataDog / DynaTrace / SQL Sentry

• Error Logging: Splunk / Seq / PaperTrail

Page 37: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

DevOps is

Both People

and Tools

Page 38: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Roadblocks

Page 39: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

People

• “We’ve been doing it this way for 10 years”

• “Sure what we have is a little bumpy, but it works”

• “I’m too busy to change”

• “This was tried once before and it failed”

• “What you proposed won’t work for me or my

team, we’re special”

Page 40: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

And some people…

Page 41: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Time

• Time to implement changes

• Each new change requires multiple iterations

• Deadlines and other conflicting priorities

Page 42: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Cost

• Tools cost money

• Cost per development hour

• Consultants

• Months or years before an ROI

Page 43: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Breaking Through Roadblocks

• Technology is the easy part

• Pilot team / project

• Small changes

• Don’t shoot for perfection at first

• Provide clear and measurable stats

• Be Transparent

Page 44: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Anyquestions?

Page 45: How Database DevOps Will Help You - Redgate · How Database DevOps Will Help You To Stay Ahead Of The Competition Bob Walker, Solutions Architect at Octopus Deploy. ... DevOps: Development

Thank You!