Top Banner
Using Service Brokers to Manage Data Lifecycle Josh Kruck | @krujos [email protected] github.com/krujos
35

Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

Jul 25, 2015

Download

Technology

Pivotal
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

Using Service Brokers to Manage Data Lifecycle

Josh Kruck | @[email protected]

github.com/krujos

Page 2: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

2

What are the some operational problems with data?

Page 3: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

3

Primary

Primary

DR Backup

Snapshots

Business Critical Data LifecycleRTO 00:05 RPO 01:00First 12 hours

Replica

Backup

Page 4: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

4

Primary

Backup Backup

Primary

Snapshots

Replica

Backup

Business Critical Data LifecycleRTO 00:05 RPO 01:00First 24 hours

DR

Page 5: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

5

525,600 minutes

Page 6: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

6

5476 copies

Page 7: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

7

Page 8: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

8

(capex is easy, just buy more stuff)

copies aren’t really the problem!

Page 9: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

9

The real problem is

5476 copiesare…

Page 10: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

10

managed by 3 systems

[“storage”, “backup”, “rdbms”]

Page 11: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

11

and 5 teams. [

“storage”, “backup”,

“offsite provider”, “app owner”,

“dba” ]

Page 12: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

12

(you shouldn't buy more people)

opex is the problem

Page 13: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

13

what’s the read/write

load on the copy?

Page 14: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

14

0 5475 copies doing nothing

for your business

Joshua Kruck
We talk about IT as a cost center. This is why.
Page 15: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

15

Why all this talk about backups and stuff?

?

Page 16: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

16

Good code needs good tests.Good tests need good data.Good data needs… a copy.

A play in 3 acts

so lets get one!

Page 17: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

17

“I don’t think we have any copies of that”

Page 18: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

18

“I not allowed to have prod logs, much less the db”

Page 19: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

19

we can do it, this one time: file a

ticket.

Page 20: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

20

Solved! But did we create another problem?

Page 21: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

21

Once you find a copy, it needs a curatorSizing (don’t use all of 10 TB of prod to test)

But your sample must represent the entirety of the dataset.

Representative curation is futile with most datasets (unknown unknowns).

Sizing means you restrict your tests to what you left in.

Sizing hides performance issues (missing index)

So maybe it’s not worth it….

Page 22: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

22

Once you find a copy, it needs a curator

Sanitize it!

Can’t have SSN’s and CC in test

Page 23: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

23

Once you find a copy, it needs a curator

Delete!

old data smells funny.

Page 24: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

24

Once you find a copy, it needs a curator

Refresh!GOTO 10

Page 25: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

25

hard|complex

manual

infrequent

error prone

handoffs

deletion

ownership

Curation is expensive

Page 26: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

26

A manual process that starts with a

ticket is the wrong solution

Page 27: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

27

The sum of the mess is worth more than its parts

There’s 5475 secondary copies with no load, can we leverage them for testing?

Fix: Let CF manage your data.

Page 28: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

28

How?

Page 29: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

29

most copies do nothing, but when the sky is falling you need them

first do no harm

Page 30: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

30

cf create-service

Copy Data

Sanitize Data

cf push <app>

Test

cf delete app -r -f

cf delete-service

Pattern:

Page 31: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

31

How do you fill in that hand

wavy part in the middle?

Page 32: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

32

Putting the E in Enterprise

Buy a CDM Product

Actifio, Delphix, ViPR

Great if they support your workloads!

And you can consume the form factors they deliver

Page 33: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

33

Based on technology to allow layered writes

Layered FS (Docker, Docker, Docker)?

Clones, Linked Clones, VM Snaps

Writeable Snapshots (FlexClone, XtremIO, LVM Snaps)

Building is harder than buying

BYO

Page 34: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

34

cf create-service

Snap Prod VM

Spin up VM

Allocate IP

Sanitize Data in PG

cf push demo

Test

Dispose

AMI and Postgres Demo

Page 35: Cloud Foundry Summit 2015: Using Service Brokers to Manage Data Lifecycle

35

https://github.com/krujos/data-lifecycle-service-brokerplease help!