Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
MANAGING
DATABASES
WITH CHEF
Michael Hedgpeth, NCR
2
About NCR :: Pioneered Cash Register
3
About NCR :: Hospitality
6/2/2015 4
NCR’s Biggest Challenge ::
High Availability With A Side Of
Fries
 2008: Darkness
 Automation and CI not
enough
 Influence Deployment
and Delivery
 Blog at hedge-
ops.com
 Married to ...
6
But what about the
databases?
Answer was: Snowflakes
7
The Database Question
Answer: Simple and
Repeatable approach
8
The Database Question
9
Problem
Scope
::
 Installing Databases  Backup & Restore
 Schema Management Database Configuration
NCR Confidential 10
Problem
Scope ::
Installing
Databases
Problem
Scope ::
Backup &
Restore
11
Problem
Scope ::
Schema
Management
12
Problem
Scope ::
Database
Configuratio
n
13
Schema Management
14
Our new process will be consistent
BUT we are in debt with our old process
We’ve made schema consistency a separate ini...
16
Our Schema Management Strategy ::
Don’t reinvent the wheel
17
Our Schema Management Strategy ::
Make It Chef-Friendly
18
Requirements ::
Persisted in the
database
19
Requirements ::
Knows if changes
are required
20
Requirements ::
Execute those
changes
21
Requirements ::
Accessible through
Automation
22
Application: http://bit.ly/1DqxTz5
Cookbook: http://bit.ly/1NBc5BP
Supermarket: http://bit.ly/1Dqy3qa
23
Introducing…
T...
24
Requirements ::
Persisted
25
Requirements ::
Persisted
26
Requirements ::
Persisted
27
Requirements ::
Changes
28
Requirements ::
Executes
29
Requirements ::
Resource
30
Requirements ::
Resource
31
Requirements ::
Resource
32
Requirements ::
Resource
33
Requirements ::
Missed
34
Challenges :: Long-running updates
35
Challenges :: Internal vs. External
changes
36
Database Configuration
Add Linked
Server
Memory in
SQL Server
Accept RPC
call
37
Strategy
Matters
When
Gaining
Allies
::
 Other Nodes  Preproduction
 Cattle, Not Pets  Culturally Automated
Strategy Matters :: Other Nodes
38
Strategy Matters :: Preproduction
39
Strategy Matters :: Cattle, Not Pets
40
Strategy Matters :: Culturally Automated
41
NCR Confidential6/2/2015 42
Epiphany
What else?
43
6/2/2015 44
Upcoming SlideShare
Loading in …5
×

Managing Databases with Chef - ChefConf 2015

1,133 views

Published on

The easy part of implementing chef is getting applications and OS configuration within the system. But how do you deal with databases? We'll talk through the patterns that are out there and give some examples of how NCR Hospitality is approaching the problem.

https://youtu.be/DYSvbcFC2ck

Published in: Technology
  • Be the first to comment

Managing Databases with Chef - ChefConf 2015

  1. 1. MANAGING DATABASES WITH CHEF Michael Hedgpeth, NCR
  2. 2. 2 About NCR :: Pioneered Cash Register
  3. 3. 3 About NCR :: Hospitality
  4. 4. 6/2/2015 4 NCR’s Biggest Challenge :: High Availability With A Side Of Fries
  5. 5.  2008: Darkness  Automation and CI not enough  Influence Deployment and Delivery  Blog at hedge- ops.com  Married to a photographer 5 About me :: Michael Hedgpeth
  6. 6. 6
  7. 7. But what about the databases? Answer was: Snowflakes 7 The Database Question
  8. 8. Answer: Simple and Repeatable approach 8 The Database Question
  9. 9. 9 Problem Scope ::  Installing Databases  Backup & Restore  Schema Management Database Configuration
  10. 10. NCR Confidential 10 Problem Scope :: Installing Databases
  11. 11. Problem Scope :: Backup & Restore 11
  12. 12. Problem Scope :: Schema Management 12
  13. 13. Problem Scope :: Database Configuratio n 13
  14. 14. Schema Management 14
  15. 15. Our new process will be consistent BUT we are in debt with our old process We’ve made schema consistency a separate initiative REDGATE is a great start to this effort 6/2/2015 15 Schema Consistency Is Separate
  16. 16. 16 Our Schema Management Strategy :: Don’t reinvent the wheel
  17. 17. 17 Our Schema Management Strategy :: Make It Chef-Friendly
  18. 18. 18 Requirements :: Persisted in the database
  19. 19. 19 Requirements :: Knows if changes are required
  20. 20. 20 Requirements :: Execute those changes
  21. 21. 21 Requirements :: Accessible through Automation
  22. 22. 22
  23. 23. Application: http://bit.ly/1DqxTz5 Cookbook: http://bit.ly/1NBc5BP Supermarket: http://bit.ly/1Dqy3qa 23 Introducing… The Database Upgrader
  24. 24. 24 Requirements :: Persisted
  25. 25. 25 Requirements :: Persisted
  26. 26. 26 Requirements :: Persisted
  27. 27. 27 Requirements :: Changes
  28. 28. 28 Requirements :: Executes
  29. 29. 29 Requirements :: Resource
  30. 30. 30 Requirements :: Resource
  31. 31. 31 Requirements :: Resource
  32. 32. 32 Requirements :: Resource
  33. 33. 33 Requirements :: Missed
  34. 34. 34 Challenges :: Long-running updates
  35. 35. 35 Challenges :: Internal vs. External changes
  36. 36. 36 Database Configuration Add Linked Server Memory in SQL Server Accept RPC call
  37. 37. 37 Strategy Matters When Gaining Allies ::  Other Nodes  Preproduction  Cattle, Not Pets  Culturally Automated
  38. 38. Strategy Matters :: Other Nodes 38
  39. 39. Strategy Matters :: Preproduction 39
  40. 40. Strategy Matters :: Cattle, Not Pets 40
  41. 41. Strategy Matters :: Culturally Automated 41
  42. 42. NCR Confidential6/2/2015 42 Epiphany
  43. 43. What else? 43
  44. 44. 6/2/2015 44

×