SlideShare a Scribd company logo
© 2014 EDB All rights reserved. 1
EDB Postgres with Containers
© 2016 EnterpriseDB Corporation. All rights reserved. 2
•  Who Is EnterpriseDB?
•  What Are Containers?
•  How Can I Get Started?
•  How Are Stateful Applications Managed?
•  Can I Run This With My Current Architecture?
What we will learn
© 2016 EnterpriseDB Corporation. All rights reserved. 3
About EnterpriseDB
© 2016 EnterpriseDB Corporation. All rights reserved. 4
EDB is a Recognized Leader
Magic Quadrant for Operational DBMS, Q4 ‘15
• Gartner Comments
− “EnterpriseDB is responsible for
many features of PostgreSQL,
contributing to JSON, materialized
views and partitioning. Increasing
numbers of users of Gartner’s
inquiry services recognize the
EnterpriseDB brand.”
− “Clients report that the functionality
of EnterpriseDB's Postgres Plus
Oracle compatibility feature is more
than sufficient to run both mission-
critical and non-mission critical
applications.”
− “Reference customers rated
EnterpriseDB highly for the stability
of its DBMS, and were satisfied with
its HAS/DR features.”
© 2016 EnterpriseDB Corporation. All rights reserved. 5
POSTGRES
innovation
ENTERPRISE
reliability
24/7
support
Services
& training
Enterprise-class
features & tools
Indemnification
Product
road-map
Control
Thousands
of developers
Fast
development
cycles
Low cost
No vendor
lock-in
Advanced
features
Enabling commercial
adoption of Postgres
© 2016 EnterpriseDB Corporation. All rights reserved. 6
EDB Customers
EDB currently has over 3,000 total customers including 63 of the Fortune
500 and 137 of the Forbes Global 2000
© 2016 EnterpriseDB Corporation. All rights reserved. 7
Containers Have Changed Everything
© 2016 EnterpriseDB Corporation. All rights reserved. 8
Containers	
  are	
  kind	
  of	
  old	
  news	
  
Linux	
  Containers	
  (LXC)	
  and	
  CGroups	
  and	
  namespaces	
  are	
  extensions	
  of	
  
concepts	
  that	
  started	
  with	
  Solaris	
  and	
  BSD	
  Jails	
  
But	
  projects	
  like	
  Docker	
  and	
  RKT	
  are	
  very	
  new,	
  and	
  very	
  
ac(ve.	
  
●  This	
  last	
  week,	
  Docker	
  received	
  107	
  commits	
  from	
  51	
  authors	
  on	
  github	
  
●  More	
  than	
  22,000	
  commits	
  since	
  iniPal	
  in	
  2013	
  
●  2/3	
  of	
  Companies	
  That	
  Try	
  Docker	
  Adopt	
  It (according to datadog)
https://www.datadoghq.com/docker-adoption/
Where	
  did	
  they	
  come	
  from?	
  
© 2016 EnterpriseDB Corporation. All rights reserved. 9
Developers	
  and	
  administrators	
  conPnue	
  to	
  face	
  
well	
  known	
  problems:	
  
	
  
	
  How	
  to	
  package	
  applicaPon	
  code	
  across	
  
environments	
  
	
  
How	
  to	
  get	
  the	
  best	
  performance	
  from	
  
available	
  physical	
  resources	
  
Why	
  the	
  sudden	
  popularity?	
  
© 2016 EnterpriseDB Corporation. All rights reserved. 10
Packaging	
  ApplicaPons	
  
Have	
  you	
  ever	
  moved	
  a	
  simple	
  code	
  fix	
  into	
  ProducPon	
  only	
  
to	
  have	
  problems	
  with	
  a	
  library	
  mismatch?	
  	
  
	
  
Which	
  leads	
  to	
  an	
  easy-­‐enough	
  looking	
  upgrade?	
  	
  
	
  
Which	
  suddenly	
  cascades	
  to	
  updaPng	
  mulPple	
  packages,	
  
tracing	
  dependencies,	
  and	
  hours	
  of	
  mess?	
  
	
  
. . . Well me neither :-)
© 2016 EnterpriseDB Corporation. All rights reserved. 11
Packaging	
  ApplicaPons	
  
Containers	
  provides	
  a	
  versioned	
  run-­‐Pme	
  environment.	
  
	
  
A	
  container	
  is	
  just	
  a	
  tar	
  file,	
  or	
  a	
  series	
  of	
  tar	
  files.	
  
	
  
It	
  holds:	
  
●  An	
  OperaPng	
  System	
  
●  Libraries	
  
●  All	
  dependencies	
  
Each	
  step	
  builds	
  a	
  new	
  layer,	
  making	
  the	
  finished	
  container	
  
image	
  instantly	
  runnable.	
  
© 2016 EnterpriseDB Corporation. All rights reserved. 12
• Be_er	
  performance	
  than	
  VMs	
  
• Higher	
  uPlizaPon	
  than	
  bare	
  metal	
  
• Faster	
  IOPs	
  path	
  
	
  
RunPme	
  Architecture	
  
Server
Host OS
Bins / Libs Bins / Libs
Docker
AppA
AppA’
AppA’’
AppB
AppB
AppB
© 2016 EnterpriseDB Corporation. All rights reserved. 13
A	
  container	
  wraps	
  one	
  single	
  process:	
  
• A	
  web	
  server	
  (nginx,	
  ligh_pd)	
  
• An	
  applicaPon	
  server	
  (Python,	
  Java,	
  C)	
  
• A	
  middleware	
  component	
  (RabbitMQ,	
  memcached)	
  
• A	
  stateful	
  service	
  (PostgreSQL,	
  Redis)	
  
• A	
  one-­‐off	
  job	
  (backup	
  script,	
  archiving,	
  ETL)	
  
What’s	
  in	
  the	
  container?	
  
© 2016 EnterpriseDB Corporation. All rights reserved. 14
Containers	
  Change	
  Architecture	
  
© 2016 EnterpriseDB Corporation. All rights reserved. 15© 2013 EDB All rights reserved 8.1. 15
Getting Started
© 2016 EnterpriseDB Corporation. All rights reserved. 16
Containers	
  are	
  NOT	
  Virtual	
  Machines	
  
	
  
They’re	
  just	
  tar	
  files	
  
	
  
That	
  you	
  can	
  run	
  
Keep	
  one	
  thing	
  in	
  mind	
  
© 2016 EnterpriseDB Corporation. All rights reserved. 17
EDB	
  Postgres	
  image	
  
Official	
  PostgreSQL	
  Docker	
  image	
  (DockerHub)	
  
Build	
  your	
  own	
  
	
  
Pulling	
  images	
  
© 2016 EnterpriseDB Corporation. All rights reserved. 18
Containers are cheap to create, easy to dispose
Containers wrap a single process
Containers usually do not alter state
That is to say, most containers don’t write data
Wait. What about logs?
•  manage them with a purpose-driven container
•  send them to stdout
The container mindset
© 2016 EnterpriseDB Corporation. All rights reserved. 19© 2013 EDB All rights reserved 8.1. 19
Stateful Applications
© 2016 EnterpriseDB Corporation. All rights reserved. 20
The	
  file	
  system	
  of	
  a	
  typical	
  docker	
  container	
  is	
  not	
  permanent	
  
	
  
But	
  criPcal	
  data	
  can	
  easily	
  be	
  made	
  permanent	
  by	
  using	
  
Volumes	
  
	
  
These	
  map	
  the	
  host’s	
  storage	
  directly	
  into	
  the	
  container	
  
What	
  happens	
  to	
  the	
  data?	
  
# docker run -v /my/local/volume:/container/pgdata 
--name vol_ppas ppas:9.5
© 2016 EnterpriseDB Corporation. All rights reserved. 21
Other	
  containers	
  can	
  share	
  the	
  same	
  volume,	
  or	
  mount	
  the	
  
volume	
  on	
  start.	
  	
  
	
  
What	
  happens	
  to	
  the	
  data?	
  
# docker run --name my_ppas 
--volumes-from vol_ppas 
-p 5432:5432 ppas:9.5 start
# docker run --name ppas_log_mgr 
--volumes-from vol_ppas 
--volumes-from log_dest 
ppas:9.5 log_maint
© 2016 EnterpriseDB Corporation. All rights reserved. 22
I	
  can	
  haz	
  container	
  demo?	
  
© 2016 EnterpriseDB Corporation. All rights reserved. 23© 2013 EDB All rights reserved 8.1. 23
Putting Containers Into
Production
© 2016 EnterpriseDB Corporation. All rights reserved. 24
Bringing	
  in	
  new	
  technology	
  
Containers	
  will	
  run	
  the	
  same	
  way	
  everywhere	
  
	
  
Containers	
  can	
  discover	
  exisPng	
  infrastructure	
  
	
  
	
  
© 2016 EnterpriseDB Corporation. All rights reserved. 25
Bringing	
  in	
  new	
  technology	
  
Begin	
  leveraging	
  containers	
  in	
  small	
  ways.	
  .	
  .	
  
	
  
Replace	
  a	
  single	
  process	
  (sogware	
  build)	
  
Replace	
  a	
  single	
  server	
  (load	
  balancer)	
  
Install	
  a	
  portable	
  toolset	
  (check	
  out	
  nsenter!)	
  
Replace	
  a	
  long	
  command	
  (generate	
  cerPficates)	
  
	
  
	
  
© 2016 EnterpriseDB Corporation. All rights reserved. 26© 2013 EDB All rights reserved 8.1. 26
Closing Thoughts
© 2016 EnterpriseDB Corporation. All rights reserved. 27
Infrastructure needs to scale beyond managing VM’s
Breaking apart applications into microservices helps
View infrastructure as code
Containers are just tar files
Try them in a few small places and work your way up
A	
  few	
  general	
  observaPons.	
  .	
  .	
  	
  
© 2016 EnterpriseDB Corporation. All rights reserved. 28
Performance	
  Tuning	
  
ConsulPng	
  
Training	
  &	
  CerPficaPon	
  
Remote	
  DBA	
  Services	
  
How	
  can	
  we	
  help?	
  
h_ps://enterprisedb.com/ahc	
  
● Send	
  email	
  to	
  sales@enterprisedb.com	
  
● h_ps://www.enterprisedb.com/general-­‐inquiry-­‐form	
  
● h_ps://www.enterprisedb.com/resources-­‐community	
  

More Related Content

PPTX
Introduction to Container Storage Interface (CSI)
PDF
InnoDB Performance Optimisation
PDF
Intro to GitOps & Flux.pdf
PPTX
Parsing XML & JSON in Apex
PPTX
Instant Printing of any Odoo Report or Shipping Label
PDF
Oracle to Postgres Migration - part 2
PDF
[KubeCon EU 2020] containerd Deep Dive
PPTX
Multi Stage Docker Build
Introduction to Container Storage Interface (CSI)
InnoDB Performance Optimisation
Intro to GitOps & Flux.pdf
Parsing XML & JSON in Apex
Instant Printing of any Odoo Report or Shipping Label
Oracle to Postgres Migration - part 2
[KubeCon EU 2020] containerd Deep Dive
Multi Stage Docker Build

What's hot (20)

PPTX
Cloud Native PostgreSQL
 
PDF
Introduction into Ceph storage for OpenStack
PPTX
2022 Semi-conference about WASM (Edited 3)
PDF
Introduction to Github Actions
PDF
Fury devops conf (1)
PDF
Nodeless scaling with Karpenter
PDF
DevOpsDays Taipei 2019 - Mastering IaC the DevOps Way
PDF
GitHub Actions with Node.js
PPTX
01. Kubernetes-PPT.pptx
PDF
Observability driven development
PDF
vmware-need-to-migrate-thousands-of-workloads-no-problem.pdf
PDF
Designing microservices platforms with nats
PDF
Manticore 6.pdf
PPTX
A brief study on Kubernetes and its components
PDF
Introduction to AWS
PDF
Event driven workloads on Kubernetes with KEDA
PDF
Docker & kubernetes
PDF
YAML Tips For Kubernetes by Neependra Khare
PPTX
GIT presentation
PDF
Kubernetes 101
Cloud Native PostgreSQL
 
Introduction into Ceph storage for OpenStack
2022 Semi-conference about WASM (Edited 3)
Introduction to Github Actions
Fury devops conf (1)
Nodeless scaling with Karpenter
DevOpsDays Taipei 2019 - Mastering IaC the DevOps Way
GitHub Actions with Node.js
01. Kubernetes-PPT.pptx
Observability driven development
vmware-need-to-migrate-thousands-of-workloads-no-problem.pdf
Designing microservices platforms with nats
Manticore 6.pdf
A brief study on Kubernetes and its components
Introduction to AWS
Event driven workloads on Kubernetes with KEDA
Docker & kubernetes
YAML Tips For Kubernetes by Neependra Khare
GIT presentation
Kubernetes 101
Ad

Similar to EDB Postgres with Containers (20)

PPTX
Docker 101 - High level introduction to docker
PPTX
Using MySQL Containers
PPTX
Which PostgreSQL is right for your multi cloud strategy? P2
PPTX
Automating a PostgreSQL High Availability Architecture with Ansible
 
PDF
BlackStor - World's fastest & most reliable Cloud Native Software Defined Sto...
PPTX
Containerizing GPU Applications with Docker for Scaling to the Cloud
PDF
Docker handons-workshop-for-charity
PPTX
Performance is not an Option - gRPC and Cassandra
PPTX
Docker - A high level introduction to dockers and containers
PPTX
Top 5 benefits of docker
PPTX
Containerizing Your On-Premise Environment
PDF
Dr. Strangeconfig or: How I Learned to Stop Using Chef and Puppet and Love th...
PPTX
Docker & aPaaS: Enterprise Innovation and Trends for 2015
PDF
OpenNebula Conf 2014 | Cloud Automation for OpenNebula by Kishorekumar Neelam...
PDF
OpenNebulaConf 2014 - Cloud Automation for OpenNebula - Kishorekumar Neelamegam
PDF
Introduction to Apache Mesos and DC/OS
PDF
Oracle - Continuous Delivery NYC meetup, June 07, 2018
PDF
create auto scale jboss cluster with openshift
PPTX
PostgreSQL to Accelerate Innovation
 
PDF
Reducing the Risks of Migrating Off Oracle
 
Docker 101 - High level introduction to docker
Using MySQL Containers
Which PostgreSQL is right for your multi cloud strategy? P2
Automating a PostgreSQL High Availability Architecture with Ansible
 
BlackStor - World's fastest & most reliable Cloud Native Software Defined Sto...
Containerizing GPU Applications with Docker for Scaling to the Cloud
Docker handons-workshop-for-charity
Performance is not an Option - gRPC and Cassandra
Docker - A high level introduction to dockers and containers
Top 5 benefits of docker
Containerizing Your On-Premise Environment
Dr. Strangeconfig or: How I Learned to Stop Using Chef and Puppet and Love th...
Docker & aPaaS: Enterprise Innovation and Trends for 2015
OpenNebula Conf 2014 | Cloud Automation for OpenNebula by Kishorekumar Neelam...
OpenNebulaConf 2014 - Cloud Automation for OpenNebula - Kishorekumar Neelamegam
Introduction to Apache Mesos and DC/OS
Oracle - Continuous Delivery NYC meetup, June 07, 2018
create auto scale jboss cluster with openshift
PostgreSQL to Accelerate Innovation
 
Reducing the Risks of Migrating Off Oracle
 
Ad

More from EDB (20)

PDF
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
 
PDF
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
 
PDF
Migre sus bases de datos Oracle a la nube
 
PDF
EFM Office Hours - APJ - July 29, 2021
 
PDF
Benchmarking Cloud Native PostgreSQL
 
PDF
Las Variaciones de la Replicación de PostgreSQL
 
PDF
NoSQL and Spatial Database Capabilities using PostgreSQL
 
PDF
Is There Anything PgBouncer Can’t Do?
 
PDF
Data Analysis with TensorFlow in PostgreSQL
 
PDF
Practical Partitioning in Production with Postgres
 
PDF
A Deeper Dive into EXPLAIN
 
PDF
IOT with PostgreSQL
 
PDF
A Journey from Oracle to PostgreSQL
 
PDF
Psql is awesome!
 
PDF
EDB 13 - New Enhancements for Security and Usability - APJ
 
PPTX
Comment sauvegarder correctement vos données
 
PDF
Cloud Native PostgreSQL - Italiano
 
PDF
New enhancements for security and usability in EDB 13
 
PPTX
Best Practices in Security with PostgreSQL
 
PDF
Cloud Native PostgreSQL - APJ
 
Cloud Migration Paths: Kubernetes, IaaS, or DBaaS
 
Die 10 besten PostgreSQL-Replikationsstrategien für Ihr Unternehmen
 
Migre sus bases de datos Oracle a la nube
 
EFM Office Hours - APJ - July 29, 2021
 
Benchmarking Cloud Native PostgreSQL
 
Las Variaciones de la Replicación de PostgreSQL
 
NoSQL and Spatial Database Capabilities using PostgreSQL
 
Is There Anything PgBouncer Can’t Do?
 
Data Analysis with TensorFlow in PostgreSQL
 
Practical Partitioning in Production with Postgres
 
A Deeper Dive into EXPLAIN
 
IOT with PostgreSQL
 
A Journey from Oracle to PostgreSQL
 
Psql is awesome!
 
EDB 13 - New Enhancements for Security and Usability - APJ
 
Comment sauvegarder correctement vos données
 
Cloud Native PostgreSQL - Italiano
 
New enhancements for security and usability in EDB 13
 
Best Practices in Security with PostgreSQL
 
Cloud Native PostgreSQL - APJ
 

Recently uploaded (20)

PPTX
Transform Your Business with a Software ERP System
PDF
Digital Strategies for Manufacturing Companies
PDF
System and Network Administration Chapter 2
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
history of c programming in notes for students .pptx
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
System and Network Administraation Chapter 3
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
AI in Product Development-omnex systems
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Transform Your Business with a Software ERP System
Digital Strategies for Manufacturing Companies
System and Network Administration Chapter 2
Operating system designcfffgfgggggggvggggggggg
history of c programming in notes for students .pptx
Odoo POS Development Services by CandidRoot Solutions
System and Network Administraation Chapter 3
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
VVF-Customer-Presentation2025-Ver1.9.pptx
Understanding Forklifts - TECH EHS Solution
Reimagine Home Health with the Power of Agentic AI​
AI in Product Development-omnex systems
Wondershare Filmora 15 Crack With Activation Key [2025
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Upgrade and Innovation Strategies for SAP ERP Customers
Navsoft: AI-Powered Business Solutions & Custom Software Development
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
How to Choose the Right IT Partner for Your Business in Malaysia
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free

EDB Postgres with Containers

  • 1. © 2014 EDB All rights reserved. 1 EDB Postgres with Containers
  • 2. © 2016 EnterpriseDB Corporation. All rights reserved. 2 •  Who Is EnterpriseDB? •  What Are Containers? •  How Can I Get Started? •  How Are Stateful Applications Managed? •  Can I Run This With My Current Architecture? What we will learn
  • 3. © 2016 EnterpriseDB Corporation. All rights reserved. 3 About EnterpriseDB
  • 4. © 2016 EnterpriseDB Corporation. All rights reserved. 4 EDB is a Recognized Leader Magic Quadrant for Operational DBMS, Q4 ‘15 • Gartner Comments − “EnterpriseDB is responsible for many features of PostgreSQL, contributing to JSON, materialized views and partitioning. Increasing numbers of users of Gartner’s inquiry services recognize the EnterpriseDB brand.” − “Clients report that the functionality of EnterpriseDB's Postgres Plus Oracle compatibility feature is more than sufficient to run both mission- critical and non-mission critical applications.” − “Reference customers rated EnterpriseDB highly for the stability of its DBMS, and were satisfied with its HAS/DR features.”
  • 5. © 2016 EnterpriseDB Corporation. All rights reserved. 5 POSTGRES innovation ENTERPRISE reliability 24/7 support Services & training Enterprise-class features & tools Indemnification Product road-map Control Thousands of developers Fast development cycles Low cost No vendor lock-in Advanced features Enabling commercial adoption of Postgres
  • 6. © 2016 EnterpriseDB Corporation. All rights reserved. 6 EDB Customers EDB currently has over 3,000 total customers including 63 of the Fortune 500 and 137 of the Forbes Global 2000
  • 7. © 2016 EnterpriseDB Corporation. All rights reserved. 7 Containers Have Changed Everything
  • 8. © 2016 EnterpriseDB Corporation. All rights reserved. 8 Containers  are  kind  of  old  news   Linux  Containers  (LXC)  and  CGroups  and  namespaces  are  extensions  of   concepts  that  started  with  Solaris  and  BSD  Jails   But  projects  like  Docker  and  RKT  are  very  new,  and  very   ac(ve.   ●  This  last  week,  Docker  received  107  commits  from  51  authors  on  github   ●  More  than  22,000  commits  since  iniPal  in  2013   ●  2/3  of  Companies  That  Try  Docker  Adopt  It (according to datadog) https://www.datadoghq.com/docker-adoption/ Where  did  they  come  from?  
  • 9. © 2016 EnterpriseDB Corporation. All rights reserved. 9 Developers  and  administrators  conPnue  to  face   well  known  problems:      How  to  package  applicaPon  code  across   environments     How  to  get  the  best  performance  from   available  physical  resources   Why  the  sudden  popularity?  
  • 10. © 2016 EnterpriseDB Corporation. All rights reserved. 10 Packaging  ApplicaPons   Have  you  ever  moved  a  simple  code  fix  into  ProducPon  only   to  have  problems  with  a  library  mismatch?       Which  leads  to  an  easy-­‐enough  looking  upgrade?       Which  suddenly  cascades  to  updaPng  mulPple  packages,   tracing  dependencies,  and  hours  of  mess?     . . . Well me neither :-)
  • 11. © 2016 EnterpriseDB Corporation. All rights reserved. 11 Packaging  ApplicaPons   Containers  provides  a  versioned  run-­‐Pme  environment.     A  container  is  just  a  tar  file,  or  a  series  of  tar  files.     It  holds:   ●  An  OperaPng  System   ●  Libraries   ●  All  dependencies   Each  step  builds  a  new  layer,  making  the  finished  container   image  instantly  runnable.  
  • 12. © 2016 EnterpriseDB Corporation. All rights reserved. 12 • Be_er  performance  than  VMs   • Higher  uPlizaPon  than  bare  metal   • Faster  IOPs  path     RunPme  Architecture   Server Host OS Bins / Libs Bins / Libs Docker AppA AppA’ AppA’’ AppB AppB AppB
  • 13. © 2016 EnterpriseDB Corporation. All rights reserved. 13 A  container  wraps  one  single  process:   • A  web  server  (nginx,  ligh_pd)   • An  applicaPon  server  (Python,  Java,  C)   • A  middleware  component  (RabbitMQ,  memcached)   • A  stateful  service  (PostgreSQL,  Redis)   • A  one-­‐off  job  (backup  script,  archiving,  ETL)   What’s  in  the  container?  
  • 14. © 2016 EnterpriseDB Corporation. All rights reserved. 14 Containers  Change  Architecture  
  • 15. © 2016 EnterpriseDB Corporation. All rights reserved. 15© 2013 EDB All rights reserved 8.1. 15 Getting Started
  • 16. © 2016 EnterpriseDB Corporation. All rights reserved. 16 Containers  are  NOT  Virtual  Machines     They’re  just  tar  files     That  you  can  run   Keep  one  thing  in  mind  
  • 17. © 2016 EnterpriseDB Corporation. All rights reserved. 17 EDB  Postgres  image   Official  PostgreSQL  Docker  image  (DockerHub)   Build  your  own     Pulling  images  
  • 18. © 2016 EnterpriseDB Corporation. All rights reserved. 18 Containers are cheap to create, easy to dispose Containers wrap a single process Containers usually do not alter state That is to say, most containers don’t write data Wait. What about logs? •  manage them with a purpose-driven container •  send them to stdout The container mindset
  • 19. © 2016 EnterpriseDB Corporation. All rights reserved. 19© 2013 EDB All rights reserved 8.1. 19 Stateful Applications
  • 20. © 2016 EnterpriseDB Corporation. All rights reserved. 20 The  file  system  of  a  typical  docker  container  is  not  permanent     But  criPcal  data  can  easily  be  made  permanent  by  using   Volumes     These  map  the  host’s  storage  directly  into  the  container   What  happens  to  the  data?   # docker run -v /my/local/volume:/container/pgdata --name vol_ppas ppas:9.5
  • 21. © 2016 EnterpriseDB Corporation. All rights reserved. 21 Other  containers  can  share  the  same  volume,  or  mount  the   volume  on  start.       What  happens  to  the  data?   # docker run --name my_ppas --volumes-from vol_ppas -p 5432:5432 ppas:9.5 start # docker run --name ppas_log_mgr --volumes-from vol_ppas --volumes-from log_dest ppas:9.5 log_maint
  • 22. © 2016 EnterpriseDB Corporation. All rights reserved. 22 I  can  haz  container  demo?  
  • 23. © 2016 EnterpriseDB Corporation. All rights reserved. 23© 2013 EDB All rights reserved 8.1. 23 Putting Containers Into Production
  • 24. © 2016 EnterpriseDB Corporation. All rights reserved. 24 Bringing  in  new  technology   Containers  will  run  the  same  way  everywhere     Containers  can  discover  exisPng  infrastructure      
  • 25. © 2016 EnterpriseDB Corporation. All rights reserved. 25 Bringing  in  new  technology   Begin  leveraging  containers  in  small  ways.  .  .     Replace  a  single  process  (sogware  build)   Replace  a  single  server  (load  balancer)   Install  a  portable  toolset  (check  out  nsenter!)   Replace  a  long  command  (generate  cerPficates)      
  • 26. © 2016 EnterpriseDB Corporation. All rights reserved. 26© 2013 EDB All rights reserved 8.1. 26 Closing Thoughts
  • 27. © 2016 EnterpriseDB Corporation. All rights reserved. 27 Infrastructure needs to scale beyond managing VM’s Breaking apart applications into microservices helps View infrastructure as code Containers are just tar files Try them in a few small places and work your way up A  few  general  observaPons.  .  .    
  • 28. © 2016 EnterpriseDB Corporation. All rights reserved. 28 Performance  Tuning   ConsulPng   Training  &  CerPficaPon   Remote  DBA  Services   How  can  we  help?   h_ps://enterprisedb.com/ahc   ● Send  email  to  [email protected]   ● h_ps://www.enterprisedb.com/general-­‐inquiry-­‐form   ● h_ps://www.enterprisedb.com/resources-­‐community