Top Banner
1

DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀...

May 22, 2020

Download

Documents

dariahiddleston
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: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

DATABASES? IN CONTAINERS!?

1

Crazy or not?

Michael WillerSales Engineer,EnterpriseDB

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.

Presenter
Presentation Notes
How many are using databases daily? How many are deploying to cloud on-premise or public? How many are deploying to Cloud in Production?! How many know PostgreSQL?
Page 2: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

ABOUT ENTERPRISEDB

• 4000+ customers• 300+ employees• Delivers 24/7 Support and Services on PostgreSQL• Active contributor to PostgreSQL Community • Maintains proprietary Postgres Advanced Server with extra features• Develops Enterprise-enabling tools (monitoring, failover, backup, …)• Recognised RDBMS Leader by Gartner & Forrester (Gartner Magic Quadrant 6

years)

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.2

Page 3: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

ABOUT ME

• Started my IT career in 1988.

• Been down the developer-manager road, but remained a techie in the end.

• Specialised in Java and Oracle backend (and a bit of Frontend Angular dev).

• Turned to the dark side (Sales) in May this year.

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.3

Page 4: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

AGENDA

• Benefits of Cloud in general

• Container woes

• Containers, ACID vs. BASE.

• EnterpriseDB offerings (ONE! page)

• The compulsory advice page…

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.4

Page 5: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

THE BENEFITS OF CLOUD

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.5

Page 6: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

USUAL SUSPECTS

• Economical (Lower CapEx + Higher OpEx = Better cashflow)

• Automation

• Repeatability

• Maintainability

• Abstraction layer for Dev

• Scalability

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.6

Presenter
Presentation Notes
Usual suspects are the benefits of Cloud deployment Lowered Capital Expenditure (with a high Operational expenditure) means better cashflow for the Company. With cloud deployment things tend to get automated. Which allows for repeatable deployments, higher maintainability coming from the automation (but also from improved testing, from repeatable deployment). In general Containers provide a great abstraction layer for developers. And the big one SCALABILITY.
Page 7: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

SCALABILITY – USUAL SUSPECTS

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.7

LB LB LB LB

Scaled Web server Scaled microservices

Page 8: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

CLOUD NATIVE APPLICATIONS

• Ask 4 architects

• Get 6 definitions

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.8

• Horizontally scalable

• Node anti-affinity

• Self-healing

• In short:

• “Runs until it dies. Runs faster with many copies. If it dies, you just start a new one..”

Page 9: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

CATTLE VS. PETS

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.9

Stateless Stateful

Presenter
Presentation Notes
If you have enough, you stop naming cattle… They have numbers. If you need more, you make more. “Pets” have names. There’s a limited number of them. They are nursed.. Same applies for applications. Some applications (or servers) are cattle.. If one dies, we make a new one. Some applications are pets. Even with a backup, switching is “painful”. In my view, the difference is that Stateless applications, have the potential to be “Cattle” Stateful applications can never become that. It’s not EXACTLY that clean cut – but it’s close.
Page 10: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

CONTAINER WOES

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.10

Page 11: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

SECURITY

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.11

• RunC scare

• Public Cloud data theft

• ...

• WHAT’S NEXT!?

• Cloud providers are working hard

• It’s new tech

Page 12: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

PERSISTENCY

• Database are NOT STATELESS!!

• In Cloud that means • Persistent Volume

• StatefulSet

• CSI (Container Storage Interface) is relatively new on the block.

• Killer feature ( Volume Snapshot) is in Alpha

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.12

Page 13: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

DATABASES IN CONTAINERS

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.13

Page 14: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

DATABASE TERMS

• BASE• Basic Availability

• Soft state

• Eventual consistency

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.14

• ACID• Atomicity

• Consistency

• Isolation

• Durability

Presenter
Presentation Notes
Atomicity – several statements are written or rolled back as one Consistency– system goes from one valid, consistent state to the next Isolation – any work done in one transaction is only visible to that transaction (until commit) Durability – Once data is written, it stays written. Basic Availability – It is fair to assume that at least one node is available at all times Soft state – one should not assume that the current node has all needed updates Eventual consistency – provided we wait long enough, all nodes will have the needed updates.
Page 15: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

S S

ACID DATABASE SCALABILITY

• Distributed ACID compliance is (still) very difficult to do=> ACID compliant clusters will have• one or limited number of write-

copies• several read-copies

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.15

M

FAILOVER

Page 16: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

SO WHY DEPLOY IN CONTAINERS?

• Once an organisation invests in cloud technology, they want as much as possible to deploy in the same way.

• Improvements are coming at a steady pace. We’re running out of excuses…

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.16

Page 17: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

ENTERPRISEDB OFFERINGS

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.17

Page 18: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

ENTERPRISEDB OFFERINGS

• Full tool-set for highly available databases • Bare-Metal, VM, Cloud

• Images for• Docker, Kubernetes, GKE, OpenShift

• Helm charts• Kubernetes operator

• GKE, OpenShift cert underway (20Q1).

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.18

Portable licensing

Presenter
Presentation Notes
Operator cluster features: - create, scale (standby databases), backup, monitor and delete
Page 19: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

KUBERNETES OPERATOR WEBINAR

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.19

https://www.enterprisedb.com/resources/webinars-webcasts

Page 20: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

DIY MIGRATION WEBINAR –DEC 10

• Oracle to Postgres migration

• Why migrate

• Migration targets

• Tools

• Advice on migration

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.20

Page 21: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

COMPULSORY ADVICE PAGE(S)

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.21

Page 22: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

ADVICE

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.22

Get started in development/test

Wait for the right set of features before going to production.

Build experience and know-how now.

Postgres anywhere

Page 23: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

ADVICE (2)

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.23

The technology is working.

EnterpriseDB has the images you need.

Our customers are running database containers in Production today.

Page 24: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

“The avalanche has already started. It is too late for the pebbles to vote”

-- Kosh, Babylon 5 (1993), Episode written by David Gerrold

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.24

FINAL THOUGHT

Page 25: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

http://www.linkedin.com/in/michaelwiller

QUESTIONS & DISCUSSION

25 CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.

Page 26: DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀 昀攀愀琀甀爀攀猀㨀屲- create, scale \⠀猀琀愀渀搀戀礀 搀愀琀愀戀愀猀攀猀尩,

THANK YOU

[email protected]

CONFIDENTIAL © Copyright EnterpriseDB Corporation, 2019. All rights reserved.