DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀...

1

Transcript of DATABASES? IN CONTAINERS!?...Portable licensing \爀伀瀀攀爀愀琀漀爀 挀氀甀猀琀攀爀...

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?

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

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

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

THE BENEFITS OF CLOUD

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

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.

SCALABILITY – USUAL SUSPECTS

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

LB LB LB LB

Scaled Web server Scaled microservices

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..”

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.

CONTAINER WOES

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

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

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

DATABASES IN CONTAINERS

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

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.

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

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

ENTERPRISEDB OFFERINGS

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

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

KUBERNETES OPERATOR WEBINAR

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

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

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

COMPULSORY ADVICE PAGE(S)

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

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

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.

“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

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

QUESTIONS & DISCUSSION

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

THANK YOU

[email protected]

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