Managing Databases with Chef - ChefConf 2015
-
Upload
chef -
Category
Technology
-
view
32 -
download
0
Transcript of Managing Databases with Chef - ChefConf 2015
MANAGING DATABASES WITH CHEFMichael Hedgpeth, NCR
2
About NCR :: Pioneered Cash Register
3
About NCR :: Hospitality
04/15/2023 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 a photographer
5
About me :: Michael Hedgpeth
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
Configuration
13
Schema Management
14
Our new process will be consistentBUT we are in debt with our old processWe’ve made schema consistency a separate initiativeREDGATE is a great start to this effort
04/15/2023 15
Schema Consistency Is Separate
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/1DqxTz5Cookbook: http://bit.ly/1NBc5BPSupermarket: http://bit.ly/1Dqy3qa
23
Introducing…The Database
Upgrader
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 Confidential04/15/2023 42
Epiphany
What else?
43
04/15/2023 44