SlideShare una empresa de Scribd logo
1 de 35
Descargar para leer sin conexión
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.
Zero to Hero
Running Postgres in Kubernetes
Taylor Graham : Field CTO
Twitter: @thecloudslayer
1
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.2
WHO IS RUNNING K8S ON LAPTOP?
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.3
WHO
2019 Container Adoption Survey - Diamanti
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.4
WHAT
2019 Container Adoption Survey - Diamanti
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.5
WHERE
2019 Container Adoption Survey - Diamanti
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.6
WHY
• Business: Kubernetes is a system for deploying applications that
can save money because it takes less IT manpower to manage
and helps more efficiently utilize the infrastructure. It helps
make your apps a more portable, so you can move them more
easily between different clouds and internal environments or
laptop to laptop.
• Tech: Agility in development, deployment, and operations
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.7
BASIC CONCEPTS
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.8
CLUSTER
• Doc: I could not find a
definition.
• Taylor: A Kubernetes
cluster is everything.
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.9
MASTER
• DOC: The Kubernetes Master is a collection of three processes
that run on a single node in your cluster, which is designated as
the master node. Those processes are: kube-apiserver, kube-
controller-manager and kube-scheduler.The Kubernetes master
is responsible for maintaining the desired state for your cluster.
• Taylor: I would call it the
brains / command and control.
I would think of it like vCenter
coming from that world.
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.10
CLUSTER COMMANDS
Kubectl cluster-info
Kubectl version
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.11
NAMESPACE
• Doc: Namespaces are a way to divide
cluster resources between multiple users.
Namespace provide a scope for names.
Names of resources need to be unique
within a namespace, but not across
namespaces. Namespaces can not be
nested inside one another and each
Kubernetes resource can only be in one
namespace.
• Taylor: It’s a good way not to blow
everything up ASAP.
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.12
NAMESPACE COMMANDS
helm install edb-2.4.2.tgz -f myvalues.yaml –namespace anotherfailwhale
Kubectl create namespace anotherfailwhale
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.13
NODES
• Doc: A node is a worker machine in Kubernetes, previously known
as a minion. A node may be a VM or physical machine, depending
on the cluster. Each node contains the services necessary to
run pods and is managed by the master components. The services
on a node include the container runtime, kubelet and kube-proxy
• Taylor: The physical server
or virtual machine running
all the magic.
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.14
NODE COMMANDS
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.14
NODE COMMANDS
Kubectl get nodes
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.15
POD
• Doc: A Pod is the basic execution unit of a Kubernetes
application–the smallest and simplest unit in the
Kubernetes object model that you create or deploy. A Pod
represents processes running on your Cluster.
• Taylor: Because they
share a local host with
all containers in pod I
think of it like docker-
compose on your
laptop.
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.16
POD COMMANDS
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.17
AND MORE POD COMMANDS
kubectl describe pod
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.18
SERVICE
• Doc: a Service is an abstraction which defines a
logical set of Pods and a policy by which to
access them. The set of Pods targeted by a
Service is usually determined by a selector.
• Taylor: what the doc said….
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.19
PV/PVC
• Doc: A PersistentVolume (PV) is a piece of storage in the cluster that
has been provisioned by an administrator or dynamically provisioned
using Storage Classes. A PersistentVolumeClaim (PVC) is a request
for storage by a user. It is similar to a pod. Pods consume node
resources and PVCs consume PV resources.
• Taylor: LUN and VMDK
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.20
PV
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.21
DEPLOYMENT / REPLICASET
• A Deployment controller provides declarative updates
for Pods and ReplicaSets.
• A ReplicaSet’s purpose is to maintain a stable set of replica Pods
running at any given time. As such, it is often used to guarantee the
availability of a specified number of identical Pods.
• Taylor:
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.22
STATEFULSET
• Doc: StatefulSet is the workload API object used to manage
stateful applications. Manages the deployment and scaling
of a set of Pods , and provides guarantees about the
ordering and uniqueness of these Pods.
• Taylor: Where you run a
database.
Stable, unique network identifiers. $(statefulset name)-$(ordinal)
Stable, persistent storage.
Ordered, graceful deployment and scaling.
Ordered, automated rolling updates.
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.23
DESIGN PATTERNS
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.24
SINGLE NODE
Postgres
Data
Application Database
Stand alone Postgres server
basic configuration
Containers
Pods
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.
metrics
25
HA REFERENCE ARCHITECTURE
Postgres
HA
Agent
Proxy
Mon
Agent
Data
Application
EDB-Service
Postgres
HA
Agent
Mon
Agent
Data
Postgres
HA
Agent
DR
Tool
Proxy
Mon
Agent
Data
Admin
Tool
read/write
readread
redundant
streaming
replication
streaming
replication
Shared or Local Storage
Database, Tools, Agents
Containers
Pods
Application Application
Master Standby 2Standby 1
Proxy
Postgres cluster
with application scale-out
Backup
© Copyright EnterpriseDB Corporation, 2019. All rights reserved.
metrics
26
On-Prem In-Memory Compute Nodes
Postgres
HA
Agent
Proxy
Mon
Agent
EDB-Service
Postgres
HA
Agent
Mon
AgentPostgres
HA
Agent
DR
Tool
Proxy
Mon
Agent
Admin
Tool
read/write
readread
redundant
streaming
replication
Database, Tools, Agents
Containers
Pods
Master Standby 2Standby 1
Proxy
NODE POOL DB PREFORMANCE NODE 2 NODE 3
Volume Claim Volume Claim Volume Claim
Data Data DataBackup
Nodes
ApplicationApplication Application
streaming
replication
17k TPS
PgBench
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.27
OK LETS DEPLOY
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.28
KUBECTL
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.29
HELM
• helm install edb-2.4.2.tgz -f myvalues.yaml
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.30
OPENSHIFT
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.31
RANDOM THOUGHTS
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.32
MONITORING THOUGHTS
Old way
Utilization (U): The percentage of time a resource is in use.
Saturation (S): The amount of work the resource must (the “queue” of work).
Errors (E): A count of errors.
RED methodology
Rate (R): The number of requests per second.
Errors (E): The number of failed requests.
Duration (D): The amount of time to process a request.
RED is actually derived from The Four Golden Signals
Latency: The time it takes to service a request.
Traffic: A measure of how much demand on the system.
Errors: The rate of failed requests.
Saturation: A measure of how “full” a service is, often measured by latency.
OOM KILLER
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.33
EVERYTHING ELSE
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.
QUESTIONS & DISCUSSION
34
CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.
THANK YOU
info@enterprisedb.com
www.enterprisedb.com
35

Más contenido relacionado

La actualidad más candente

Where Should You Deliver Database Services From?
Where Should You Deliver Database Services From?Where Should You Deliver Database Services From?
Where Should You Deliver Database Services From?EDB
 
Managing Postgres at Scale With Postgres Enterprise Manager
Managing Postgres at Scale With Postgres Enterprise ManagerManaging Postgres at Scale With Postgres Enterprise Manager
Managing Postgres at Scale With Postgres Enterprise ManagerEDB
 
Best Practices for Monitoring Postgres
Best Practices for Monitoring Postgres Best Practices for Monitoring Postgres
Best Practices for Monitoring Postgres EDB
 
Whats New in Postgres 12
Whats New in Postgres 12Whats New in Postgres 12
Whats New in Postgres 12EDB
 
Running Highly Available Postgres Databases in Containers
Running Highly Available Postgres Databases in ContainersRunning Highly Available Postgres Databases in Containers
Running Highly Available Postgres Databases in ContainersEDB
 
New Enterprise Cloud Database Options for 2019
New Enterprise Cloud Database Options for 2019New Enterprise Cloud Database Options for 2019
New Enterprise Cloud Database Options for 2019EDB
 
New Strategies for Database Modernization
New Strategies for Database ModernizationNew Strategies for Database Modernization
New Strategies for Database ModernizationEDB
 
Automating a PostgreSQL High Availability Architecture with Ansible
Automating a PostgreSQL High Availability Architecture with AnsibleAutomating a PostgreSQL High Availability Architecture with Ansible
Automating a PostgreSQL High Availability Architecture with AnsibleEDB
 
No Time to Waste: Migrate from Oracle to EDB Postgres in Minutes
No Time to Waste: Migrate from Oracle to EDB Postgres in MinutesNo Time to Waste: Migrate from Oracle to EDB Postgres in Minutes
No Time to Waste: Migrate from Oracle to EDB Postgres in MinutesEDB
 
Public Sector Virtual Town Hall
Public Sector Virtual Town HallPublic Sector Virtual Town Hall
Public Sector Virtual Town HallEDB
 
Creating a Multi-Layered Secured Postgres Database
Creating a Multi-Layered Secured Postgres DatabaseCreating a Multi-Layered Secured Postgres Database
Creating a Multi-Layered Secured Postgres DatabaseEDB
 
Not all open source is the same
Not all open source is the sameNot all open source is the same
Not all open source is the sameEDB
 
Cloud Native PostgreSQL
Cloud Native PostgreSQLCloud Native PostgreSQL
Cloud Native PostgreSQLEDB
 
New Approaches to Integrating Oracle and Postgres Database Strategies
New Approaches to Integrating Oracle and Postgres Database StrategiesNew Approaches to Integrating Oracle and Postgres Database Strategies
New Approaches to Integrating Oracle and Postgres Database StrategiesEDB
 
Discover PostGIS: Add Spatial functions to PostgreSQL
Discover PostGIS: Add Spatial functions to PostgreSQLDiscover PostGIS: Add Spatial functions to PostgreSQL
Discover PostGIS: Add Spatial functions to PostgreSQLEDB
 
Exploring Postgres with Bruce Momjian
Exploring Postgres with Bruce MomjianExploring Postgres with Bruce Momjian
Exploring Postgres with Bruce MomjianEDB
 
Remote DBA Service: Powering your DBA needs
Remote DBA Service: Powering your DBA needsRemote DBA Service: Powering your DBA needs
Remote DBA Service: Powering your DBA needsEDB
 
Kubernetes with Docker Enterprise for multi and hybrid cloud strategy
Kubernetes with Docker Enterprise for multi and hybrid cloud strategyKubernetes with Docker Enterprise for multi and hybrid cloud strategy
Kubernetes with Docker Enterprise for multi and hybrid cloud strategyAshnikbiz
 
Automating Postgres Deployments on AWS and VMware, with Terraform and Ansible
Automating Postgres Deployments on AWS and VMware, with Terraform and AnsibleAutomating Postgres Deployments on AWS and VMware, with Terraform and Ansible
Automating Postgres Deployments on AWS and VMware, with Terraform and AnsibleEDB
 
New Integration Options with Postgres Enterprise Manager 8.0
New Integration Options with Postgres Enterprise Manager 8.0New Integration Options with Postgres Enterprise Manager 8.0
New Integration Options with Postgres Enterprise Manager 8.0EDB
 

La actualidad más candente (20)

Where Should You Deliver Database Services From?
Where Should You Deliver Database Services From?Where Should You Deliver Database Services From?
Where Should You Deliver Database Services From?
 
Managing Postgres at Scale With Postgres Enterprise Manager
Managing Postgres at Scale With Postgres Enterprise ManagerManaging Postgres at Scale With Postgres Enterprise Manager
Managing Postgres at Scale With Postgres Enterprise Manager
 
Best Practices for Monitoring Postgres
Best Practices for Monitoring Postgres Best Practices for Monitoring Postgres
Best Practices for Monitoring Postgres
 
Whats New in Postgres 12
Whats New in Postgres 12Whats New in Postgres 12
Whats New in Postgres 12
 
Running Highly Available Postgres Databases in Containers
Running Highly Available Postgres Databases in ContainersRunning Highly Available Postgres Databases in Containers
Running Highly Available Postgres Databases in Containers
 
New Enterprise Cloud Database Options for 2019
New Enterprise Cloud Database Options for 2019New Enterprise Cloud Database Options for 2019
New Enterprise Cloud Database Options for 2019
 
New Strategies for Database Modernization
New Strategies for Database ModernizationNew Strategies for Database Modernization
New Strategies for Database Modernization
 
Automating a PostgreSQL High Availability Architecture with Ansible
Automating a PostgreSQL High Availability Architecture with AnsibleAutomating a PostgreSQL High Availability Architecture with Ansible
Automating a PostgreSQL High Availability Architecture with Ansible
 
No Time to Waste: Migrate from Oracle to EDB Postgres in Minutes
No Time to Waste: Migrate from Oracle to EDB Postgres in MinutesNo Time to Waste: Migrate from Oracle to EDB Postgres in Minutes
No Time to Waste: Migrate from Oracle to EDB Postgres in Minutes
 
Public Sector Virtual Town Hall
Public Sector Virtual Town HallPublic Sector Virtual Town Hall
Public Sector Virtual Town Hall
 
Creating a Multi-Layered Secured Postgres Database
Creating a Multi-Layered Secured Postgres DatabaseCreating a Multi-Layered Secured Postgres Database
Creating a Multi-Layered Secured Postgres Database
 
Not all open source is the same
Not all open source is the sameNot all open source is the same
Not all open source is the same
 
Cloud Native PostgreSQL
Cloud Native PostgreSQLCloud Native PostgreSQL
Cloud Native PostgreSQL
 
New Approaches to Integrating Oracle and Postgres Database Strategies
New Approaches to Integrating Oracle and Postgres Database StrategiesNew Approaches to Integrating Oracle and Postgres Database Strategies
New Approaches to Integrating Oracle and Postgres Database Strategies
 
Discover PostGIS: Add Spatial functions to PostgreSQL
Discover PostGIS: Add Spatial functions to PostgreSQLDiscover PostGIS: Add Spatial functions to PostgreSQL
Discover PostGIS: Add Spatial functions to PostgreSQL
 
Exploring Postgres with Bruce Momjian
Exploring Postgres with Bruce MomjianExploring Postgres with Bruce Momjian
Exploring Postgres with Bruce Momjian
 
Remote DBA Service: Powering your DBA needs
Remote DBA Service: Powering your DBA needsRemote DBA Service: Powering your DBA needs
Remote DBA Service: Powering your DBA needs
 
Kubernetes with Docker Enterprise for multi and hybrid cloud strategy
Kubernetes with Docker Enterprise for multi and hybrid cloud strategyKubernetes with Docker Enterprise for multi and hybrid cloud strategy
Kubernetes with Docker Enterprise for multi and hybrid cloud strategy
 
Automating Postgres Deployments on AWS and VMware, with Terraform and Ansible
Automating Postgres Deployments on AWS and VMware, with Terraform and AnsibleAutomating Postgres Deployments on AWS and VMware, with Terraform and Ansible
Automating Postgres Deployments on AWS and VMware, with Terraform and Ansible
 
New Integration Options with Postgres Enterprise Manager 8.0
New Integration Options with Postgres Enterprise Manager 8.0New Integration Options with Postgres Enterprise Manager 8.0
New Integration Options with Postgres Enterprise Manager 8.0
 

Similar a Zero-to-Hero: Running Postgres in Kubernetes

Zero-to-hero: Running Postgres in Kubernetes, Enterprise Postgres Day
Zero-to-hero: Running Postgres in Kubernetes, Enterprise Postgres DayZero-to-hero: Running Postgres in Kubernetes, Enterprise Postgres Day
Zero-to-hero: Running Postgres in Kubernetes, Enterprise Postgres DayEDB
 
Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to KubernetesSamuel Dratwa
 
Running Stateful Apps on Kubernetes
Running Stateful Apps on KubernetesRunning Stateful Apps on Kubernetes
Running Stateful Apps on KubernetesYugabyte
 
01282016 Aerospike-Docker webinar
01282016 Aerospike-Docker webinar01282016 Aerospike-Docker webinar
01282016 Aerospike-Docker webinarAerospike, Inc.
 
prodops.io k8s presentation
prodops.io k8s presentationprodops.io k8s presentation
prodops.io k8s presentationProdops.io
 
Kubernetes for the VI Admin
Kubernetes for the VI AdminKubernetes for the VI Admin
Kubernetes for the VI AdminKendrick Coleman
 
Best practices: running high-performance databases on Kubernetes
Best practices: running high-performance databases on KubernetesBest practices: running high-performance databases on Kubernetes
Best practices: running high-performance databases on KubernetesMariaDB plc
 
20200113 - IBM Cloud Côte d'Azur - DeepDive Kubernetes
20200113 - IBM Cloud Côte d'Azur - DeepDive Kubernetes20200113 - IBM Cloud Côte d'Azur - DeepDive Kubernetes
20200113 - IBM Cloud Côte d'Azur - DeepDive KubernetesIBM France Lab
 
The ultimate Kubernetes Deployment Checklist - Infra to Microservices
The ultimate Kubernetes Deployment Checklist - Infra to MicroservicesThe ultimate Kubernetes Deployment Checklist - Infra to Microservices
The ultimate Kubernetes Deployment Checklist - Infra to MicroservicesPrakarsh -
 
20191201 kubernetes managed weblogic revival - part 2
20191201 kubernetes managed weblogic revival - part 220191201 kubernetes managed weblogic revival - part 2
20191201 kubernetes managed weblogic revival - part 2makker_nl
 
Overpowered Kubernetes: CI/CD for K8s on Enterprise IaaS
Overpowered Kubernetes: CI/CD for K8s on Enterprise IaaSOverpowered Kubernetes: CI/CD for K8s on Enterprise IaaS
Overpowered Kubernetes: CI/CD for K8s on Enterprise IaaSJ On The Beach
 
The Kubernetes WebLogic revival (part 2)
The Kubernetes WebLogic revival (part 2)The Kubernetes WebLogic revival (part 2)
The Kubernetes WebLogic revival (part 2)Simon Haslam
 
Accelerate Digital Transformation with IBM Cloud Private
Accelerate Digital Transformation with IBM Cloud PrivateAccelerate Digital Transformation with IBM Cloud Private
Accelerate Digital Transformation with IBM Cloud PrivateMichael Elder
 
Operating Kubernetes at Scale (Australia Presentation)
Operating Kubernetes at Scale (Australia Presentation)Operating Kubernetes at Scale (Australia Presentation)
Operating Kubernetes at Scale (Australia Presentation)Mesosphere Inc.
 
Federated Kubernetes: As a Platform for Distributed Scientific Computing
Federated Kubernetes: As a Platform for Distributed Scientific ComputingFederated Kubernetes: As a Platform for Distributed Scientific Computing
Federated Kubernetes: As a Platform for Distributed Scientific ComputingBob Killen
 
Data-Centric Infrastructure for Agile Development
Data-Centric Infrastructure for Agile DevelopmentData-Centric Infrastructure for Agile Development
Data-Centric Infrastructure for Agile DevelopmentDATAVERSITY
 
InfluxDB Roadmap: What’s New and What’s Coming
InfluxDB Roadmap: What’s New and What’s ComingInfluxDB Roadmap: What’s New and What’s Coming
InfluxDB Roadmap: What’s New and What’s ComingInfluxData
 
Http Services in Rust on Containers
Http Services in Rust on ContainersHttp Services in Rust on Containers
Http Services in Rust on ContainersAnton Whalley
 
A hitchhiker‘s guide to the cloud native stack
A hitchhiker‘s guide to the cloud native stackA hitchhiker‘s guide to the cloud native stack
A hitchhiker‘s guide to the cloud native stackQAware GmbH
 

Similar a Zero-to-Hero: Running Postgres in Kubernetes (20)

Zero-to-hero: Running Postgres in Kubernetes, Enterprise Postgres Day
Zero-to-hero: Running Postgres in Kubernetes, Enterprise Postgres DayZero-to-hero: Running Postgres in Kubernetes, Enterprise Postgres Day
Zero-to-hero: Running Postgres in Kubernetes, Enterprise Postgres Day
 
Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to Kubernetes
 
Running Stateful Apps on Kubernetes
Running Stateful Apps on KubernetesRunning Stateful Apps on Kubernetes
Running Stateful Apps on Kubernetes
 
01282016 Aerospike-Docker webinar
01282016 Aerospike-Docker webinar01282016 Aerospike-Docker webinar
01282016 Aerospike-Docker webinar
 
prodops.io k8s presentation
prodops.io k8s presentationprodops.io k8s presentation
prodops.io k8s presentation
 
Kubernetes for the VI Admin
Kubernetes for the VI AdminKubernetes for the VI Admin
Kubernetes for the VI Admin
 
Best practices: running high-performance databases on Kubernetes
Best practices: running high-performance databases on KubernetesBest practices: running high-performance databases on Kubernetes
Best practices: running high-performance databases on Kubernetes
 
20200113 - IBM Cloud Côte d'Azur - DeepDive Kubernetes
20200113 - IBM Cloud Côte d'Azur - DeepDive Kubernetes20200113 - IBM Cloud Côte d'Azur - DeepDive Kubernetes
20200113 - IBM Cloud Côte d'Azur - DeepDive Kubernetes
 
The ultimate Kubernetes Deployment Checklist - Infra to Microservices
The ultimate Kubernetes Deployment Checklist - Infra to MicroservicesThe ultimate Kubernetes Deployment Checklist - Infra to Microservices
The ultimate Kubernetes Deployment Checklist - Infra to Microservices
 
20191201 kubernetes managed weblogic revival - part 2
20191201 kubernetes managed weblogic revival - part 220191201 kubernetes managed weblogic revival - part 2
20191201 kubernetes managed weblogic revival - part 2
 
Overpowered Kubernetes: CI/CD for K8s on Enterprise IaaS
Overpowered Kubernetes: CI/CD for K8s on Enterprise IaaSOverpowered Kubernetes: CI/CD for K8s on Enterprise IaaS
Overpowered Kubernetes: CI/CD for K8s on Enterprise IaaS
 
The Kubernetes WebLogic revival (part 2)
The Kubernetes WebLogic revival (part 2)The Kubernetes WebLogic revival (part 2)
The Kubernetes WebLogic revival (part 2)
 
Accelerate Digital Transformation with IBM Cloud Private
Accelerate Digital Transformation with IBM Cloud PrivateAccelerate Digital Transformation with IBM Cloud Private
Accelerate Digital Transformation with IBM Cloud Private
 
Operating Kubernetes at Scale (Australia Presentation)
Operating Kubernetes at Scale (Australia Presentation)Operating Kubernetes at Scale (Australia Presentation)
Operating Kubernetes at Scale (Australia Presentation)
 
Federated Kubernetes: As a Platform for Distributed Scientific Computing
Federated Kubernetes: As a Platform for Distributed Scientific ComputingFederated Kubernetes: As a Platform for Distributed Scientific Computing
Federated Kubernetes: As a Platform for Distributed Scientific Computing
 
Data-Centric Infrastructure for Agile Development
Data-Centric Infrastructure for Agile DevelopmentData-Centric Infrastructure for Agile Development
Data-Centric Infrastructure for Agile Development
 
InfluxDB Roadmap: What’s New and What’s Coming
InfluxDB Roadmap: What’s New and What’s ComingInfluxDB Roadmap: What’s New and What’s Coming
InfluxDB Roadmap: What’s New and What’s Coming
 
Kubernetes basics and hands on exercise
Kubernetes basics and hands on exerciseKubernetes basics and hands on exercise
Kubernetes basics and hands on exercise
 
Http Services in Rust on Containers
Http Services in Rust on ContainersHttp Services in Rust on Containers
Http Services in Rust on Containers
 
A hitchhiker‘s guide to the cloud native stack
A hitchhiker‘s guide to the cloud native stackA hitchhiker‘s guide to the cloud native stack
A hitchhiker‘s guide to the cloud native stack
 

Más de EDB

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

Más de EDB (20)

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

Último

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 

Último (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 

Zero-to-Hero: Running Postgres in Kubernetes

  • 1. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved. Zero to Hero Running Postgres in Kubernetes Taylor Graham : Field CTO Twitter: @thecloudslayer 1
  • 2. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.2 WHO IS RUNNING K8S ON LAPTOP?
  • 3. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.3 WHO 2019 Container Adoption Survey - Diamanti
  • 4. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.4 WHAT 2019 Container Adoption Survey - Diamanti
  • 5. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.5 WHERE 2019 Container Adoption Survey - Diamanti
  • 6. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.6 WHY • Business: Kubernetes is a system for deploying applications that can save money because it takes less IT manpower to manage and helps more efficiently utilize the infrastructure. It helps make your apps a more portable, so you can move them more easily between different clouds and internal environments or laptop to laptop. • Tech: Agility in development, deployment, and operations
  • 7. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.7 BASIC CONCEPTS
  • 8. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.8 CLUSTER • Doc: I could not find a definition. • Taylor: A Kubernetes cluster is everything.
  • 9. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.9 MASTER • DOC: The Kubernetes Master is a collection of three processes that run on a single node in your cluster, which is designated as the master node. Those processes are: kube-apiserver, kube- controller-manager and kube-scheduler.The Kubernetes master is responsible for maintaining the desired state for your cluster. • Taylor: I would call it the brains / command and control. I would think of it like vCenter coming from that world.
  • 10. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.10 CLUSTER COMMANDS Kubectl cluster-info Kubectl version
  • 11. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.11 NAMESPACE • Doc: Namespaces are a way to divide cluster resources between multiple users. Namespace provide a scope for names. Names of resources need to be unique within a namespace, but not across namespaces. Namespaces can not be nested inside one another and each Kubernetes resource can only be in one namespace. • Taylor: It’s a good way not to blow everything up ASAP.
  • 12. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.12 NAMESPACE COMMANDS helm install edb-2.4.2.tgz -f myvalues.yaml –namespace anotherfailwhale Kubectl create namespace anotherfailwhale
  • 13. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.13 NODES • Doc: A node is a worker machine in Kubernetes, previously known as a minion. A node may be a VM or physical machine, depending on the cluster. Each node contains the services necessary to run pods and is managed by the master components. The services on a node include the container runtime, kubelet and kube-proxy • Taylor: The physical server or virtual machine running all the magic.
  • 14. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.14 NODE COMMANDS CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.14 NODE COMMANDS Kubectl get nodes
  • 15. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.15 POD • Doc: A Pod is the basic execution unit of a Kubernetes application–the smallest and simplest unit in the Kubernetes object model that you create or deploy. A Pod represents processes running on your Cluster. • Taylor: Because they share a local host with all containers in pod I think of it like docker- compose on your laptop.
  • 16. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.16 POD COMMANDS
  • 17. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.17 AND MORE POD COMMANDS kubectl describe pod
  • 18. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.18 SERVICE • Doc: a Service is an abstraction which defines a logical set of Pods and a policy by which to access them. The set of Pods targeted by a Service is usually determined by a selector. • Taylor: what the doc said….
  • 19. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.19 PV/PVC • Doc: A PersistentVolume (PV) is a piece of storage in the cluster that has been provisioned by an administrator or dynamically provisioned using Storage Classes. A PersistentVolumeClaim (PVC) is a request for storage by a user. It is similar to a pod. Pods consume node resources and PVCs consume PV resources. • Taylor: LUN and VMDK
  • 20. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.20 PV
  • 21. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.21 DEPLOYMENT / REPLICASET • A Deployment controller provides declarative updates for Pods and ReplicaSets. • A ReplicaSet’s purpose is to maintain a stable set of replica Pods running at any given time. As such, it is often used to guarantee the availability of a specified number of identical Pods. • Taylor:
  • 22. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.22 STATEFULSET • Doc: StatefulSet is the workload API object used to manage stateful applications. Manages the deployment and scaling of a set of Pods , and provides guarantees about the ordering and uniqueness of these Pods. • Taylor: Where you run a database. Stable, unique network identifiers. $(statefulset name)-$(ordinal) Stable, persistent storage. Ordered, graceful deployment and scaling. Ordered, automated rolling updates.
  • 23. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.23 DESIGN PATTERNS
  • 24. © Copyright EnterpriseDB Corporation, 2019. All rights reserved.24 SINGLE NODE Postgres Data Application Database Stand alone Postgres server basic configuration Containers Pods
  • 25. © Copyright EnterpriseDB Corporation, 2019. All rights reserved. metrics 25 HA REFERENCE ARCHITECTURE Postgres HA Agent Proxy Mon Agent Data Application EDB-Service Postgres HA Agent Mon Agent Data Postgres HA Agent DR Tool Proxy Mon Agent Data Admin Tool read/write readread redundant streaming replication streaming replication Shared or Local Storage Database, Tools, Agents Containers Pods Application Application Master Standby 2Standby 1 Proxy Postgres cluster with application scale-out Backup
  • 26. © Copyright EnterpriseDB Corporation, 2019. All rights reserved. metrics 26 On-Prem In-Memory Compute Nodes Postgres HA Agent Proxy Mon Agent EDB-Service Postgres HA Agent Mon AgentPostgres HA Agent DR Tool Proxy Mon Agent Admin Tool read/write readread redundant streaming replication Database, Tools, Agents Containers Pods Master Standby 2Standby 1 Proxy NODE POOL DB PREFORMANCE NODE 2 NODE 3 Volume Claim Volume Claim Volume Claim Data Data DataBackup Nodes ApplicationApplication Application streaming replication 17k TPS PgBench
  • 27. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.27 OK LETS DEPLOY
  • 28. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.28 KUBECTL
  • 29. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.29 HELM • helm install edb-2.4.2.tgz -f myvalues.yaml
  • 30. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.30 OPENSHIFT
  • 31. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.31 RANDOM THOUGHTS
  • 32. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.32 MONITORING THOUGHTS Old way Utilization (U): The percentage of time a resource is in use. Saturation (S): The amount of work the resource must (the “queue” of work). Errors (E): A count of errors. RED methodology Rate (R): The number of requests per second. Errors (E): The number of failed requests. Duration (D): The amount of time to process a request. RED is actually derived from The Four Golden Signals Latency: The time it takes to service a request. Traffic: A measure of how much demand on the system. Errors: The rate of failed requests. Saturation: A measure of how “full” a service is, often measured by latency. OOM KILLER
  • 33. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.33 EVERYTHING ELSE
  • 34. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved. QUESTIONS & DISCUSSION 34
  • 35. CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved. THANK YOU info@enterprisedb.com www.enterprisedb.com 35