+ All Categories
Home > Technology > Database Containerization Platform Checklist

Database Containerization Platform Checklist

Date post: 11-Feb-2017
Category:
Upload: robinsystems
View: 28 times
Download: 0 times
Share this document with a friend
35
ROBIN SYSTEMS Database Containerization Platform Checklist Adeesh Fulay Director of Products @AdeeshF [email protected]
Transcript
Page 1: Database Containerization Platform Checklist

ROBINSYSTEMS

DatabaseContainerizationPlatformChecklist

AdeeshFulayDirectorofProducts

@[email protected]

Page 2: Database Containerization Platform Checklist

Agenda

› DataManagementChallenges› WhyContainers?› TheFeatureChecklist› RobinSolutionandDemos› Summary

Page 3: Database Containerization Platform Checklist

DataManagementLandscapeandChallenges

Traditional ModernDataPlatforms

§ CostContainmento Highsoftwarelicense&supportcosts

§ DevOpsAgilityo Quickdatabaseclone,snapshotand

time-travel

§ PerformancePredictabilityo Unpredictableperformancein

consolidatedenvironments

§ OperationalComplexityo Painfuldistributedapplication

deployment,scalingandongoingmanagement

§ HighHardwareCAPEXo Clustersprawl,DataDuplication

§ EnterpriseGradeRobustnesso Backup,restore,failover,security

Page 4: Database Containerization Platform Checklist

ExistingInfrastructureChoicesareInadequate 4

Bare-Metal VMs Purpose-BuiltAppliances

Containers

Inefficient

Complex

PerformanceOverhead

VM,DBsoftwareSprawl

VeryExpensive

Applicationspecific

Page 5: Database Containerization Platform Checklist

Containers– WHAT?

› NextGenerationofVirtualizationtechnology› OS-based,anddeliversbaremetalperformance› OperationallyverysimilartoVirtualMachines› DedicatedIPaddress,filesystems,separateuserspace,etc.

› Agile› Containerscanbelaunchedinseconds

› Betterhardwareconsolidation› 10xormorehigherconsolidationbenefits

› EliminateOSduplicationandapplicationsoftwaresprawl

0

20000

40000

60000

80000

100000

120000

RandomReads RandomWrites RandomMixed

IOPS

BareMetal Container VM

Source:IBMResearchhttp://domino.research.ibm.com/library/cyberdig.nsf/papers/0929052195DD819C85257D2300681E7B/$File/rc25482.pdf

Containers– 2xFasterthanVMs

Page 6: Database Containerization Platform Checklist

PoorDockerAdoptionforDatabases

Dockerprimarilydesignedforstatelessapplications› Ignoresmostimportantcomponent– storage

OrchestrationtoolstreatDatabasesasstatelessaswell

https://goto.docker.com/Docker-Survey-2016.html

Page 7: Database Containerization Platform Checklist

CattlevsPets!

› Petsaregivennameslikepussinboots.acme.com› Theyareunique,lovinglyhandraisedandcaredfor› Whentheygetill,younursethembacktohealth› Examples:Databases,bigdata,andotherstateful apps

› Cattlearegivennumberslikeinst0042.acme.com› Theyarealmostidenticaltoothercattle› Whentheygetill,yougetanotherone› Examples:Allstatelessapplications

FutureapplicationarchitecturesshoulduseCattle,butPetswithstrongconfigurationmanagementareviableandstillneeded

*OriginalslidefromCern regardingdifferentservicemodels

Page 8: Database Containerization Platform Checklist

TheDatabaseContainerizationPlatformChecklist

MultipleContainerFormats

Application-aware

infrastructure

Data Persistence(volume)

management

Snapshot,clone,restore

QualityofService

As-isfailover Networkautomation

Multi-tenancy&Isolation

Easeofsetupand

management

GuidingPrinciple:Dowhat’srightfortheapplication/database!

OriginalBlog: http://www.robinsystems.com/blog/stateful-database-containerization-platform-checklist/

Page 9: Database Containerization Platform Checklist

TheDatabaseContainerizationPlatformChecklist

MultipleContainerFormats

Application-aware

infrastructure

Data Persistence(volume)

management

Snapshot,clone,restore

QualityofService

As-isfailover Networkautomation

Multi-tenancy&Isolation

Easeofsetupand

management

GuidingPrinciple:Dowhat’srightfortheapplication/database!

Page 10: Database Containerization Platform Checklist

1.MultipleContainerTypes(andmaybeevenVMs)

• TheNgnix• Node.js• Postgres

• Redis• MariaDB• Node.js

• ElasticSearch• Wordpress• Node.js

SYSTEMCONTAINERS

• Eachcontainerrunsanentireservicestack(multipleapplicationspercontainer)

• MeanttobeusedaslightweightVM

• Filesystemneutral

• Examples– LXC,OpenVZ,SolarisZones

• Supportsin-placepatch/upgrade&SSHaccess

GreatforTraditionalApplications

Ngnix

Node.js

Postgres

Redis

MariaDB

Node.js

ElasticSearch

Wordpress

Ngnix

APPLICATIONCONTAINERS

• Eachcontainerrunsasingleapplication(singleconcernpercontainerphilosophy)

• Meanttobeusedasapplicationpackage

• Containersuselayeredfilesystems(Overlayfs,AUFS,etc)

• Examples– Docker,Rocket

• Patch/Upgradeentailsreplacingcontainerimage

GreatforModernApplications

Page 11: Database Containerization Platform Checklist

TheDatabaseContainerizationPlatformChecklist

MultipleContainerFormats

Application-aware

infrastructure

Data Persistence(volume)

management

Snapshot,clone,restore

QualityofService

As-isfailover Networkautomation

Multi-tenancy&Isolation

Easeofsetupand

management

GuidingPrinciple:Dowhat’srightfortheapplication/database!

Page 12: Database Containerization Platform Checklist

2.Application-awareInfrastructureCURRENT

DBAburdenedwithmanydecisions

DESIREDSimplifiedApplicationManagement,

InvisibleInfrastructure

Fluid,Elastic,HighPerformanceInfrastructurePlatform

Deploy

Scale

SnapshotClone

Restore

Capacityplanning

Storage

NetworkMemory CloudPerformance

Page 13: Database Containerization Platform Checklist

TheDatabaseContainerizationPlatformChecklist

MultipleContainerFormats

Application-aware

infrastructure

Data Persistence(volume)

management

Snapshot,clone,restore

QualityofService

As-isfailover Networkautomation

Multi-tenancy&Isolation

Easeofsetupand

management

GuidingPrinciple:Dowhat’srightfortheapplication/database!

Page 14: Database Containerization Platform Checklist

3.DataPersistenceManagement

› Application=multiplecontainers

› Storageallocatedpercontainer,andnotperhostorVM

› MultipleVolumes/container› Blockstorage:formattoxfs,ext4,orraw› Eachcontainercanbindtomultiplevolumes

– HDD,SSD,NVMe

› Rapidcreate/destroy› Millisecondsresponsetimetocreate/delete

tokeepupw/containers

› Highervolume› 10-100xmorecontainersbeingcreatedthan

VMs

› Diskrepair,replication,compression,…

Page 15: Database Containerization Platform Checklist

TheDatabaseContainerizationPlatformChecklist

MultipleContainerFormats

Application-aware

infrastructure

Data Persistence(volume)

management

Snapshot,clone,restore

QualityofService

As-isfailover Networkautomation

Multi-tenancy&Isolation

Easeofsetupand

management

GuidingPrinciple:Dowhat’srightfortheapplication/database!

Page 16: Database Containerization Platform Checklist

4.CloningProdtoTest/Dev

PROD Test Master

Downstream environments Dev & Test

Storage Usage for one application

› FullClonesofyourproductiondatabase

› Timeconsuming

› ResultsinDataSprawl

› CreateTestmastertoavoidperformancepenalty

› Needawaytocreateasmanyenvironmentsbutnotpaythestoragepenalty?

Page 17: Database Containerization Platform Checklist

4.Snapshot,Clone,andRestore 17

ProdCluster

FullCluster,DistributedApplicationSnapshotsOS+DBsoftware+DBconfiguration+data

InstantClusterClone

ProdScaleTestEnv inMinutes

Need to test a change? Corruption or data loss?

2xstorageLongdatacopyManualre-configuration

ErasecommitlogsErasedatafilesRestorebackupRestartcluster

Lotmorethanjuststoragesnapshots

ProdCluster ProdCluster ProdCluster ProdCluster ProdCluster

VirtualTestCluster

InstantRestore

Page 18: Database Containerization Platform Checklist

TheDatabaseContainerizationPlatformChecklist

MultipleContainerFormats

Application-aware

infrastructure

Data Persistence(volume)

management

Snapshot,clone,restore

QualityofService

As-isfailover Networkautomation

Multi-tenancy&Isolation

Easeofsetupand

management

GuidingPrinciple:Dowhat’srightfortheapplication/database!

Page 19: Database Containerization Platform Checklist

5.DatabaseWorkloadTypes

DataWarehousing(OLAP,Reporting,PredictiveAnalytics)

OLTP(Highlytransactionalsystem)

› LowLatency› Impactsuserexperience› SSDssuperiortoHDDs

› HighBandwidthi.e.Throughput› (Throughput=IOPSxBlocksize)› Dealwithlargevolumesofdata

› Multipledatabaseshittingthesamedisks› SustainedhighIOPS&PredictablelowlatencyConsolidated

=

Page 20: Database Containerization Platform Checklist

5.NeedforQualityofService(QoS)

› NoisyNeighborproblem› Containersgiveprocessisolationbutnotperformanceisolation

› Predictableperformance› GuaranteedIOPSforapplication/container

› Scaleup/down› Traditionaldatabasesscaleup;moderndistributeddatabasesscaleout› Buthowdowecatertotransientspikes?› Containersonlyallowforcpu andmemory,butwhataboutIOPS?

Compute

Disk1 Disk2 DiskN

Consolidationw/containers

Compute

Disk1 Disk2 DiskN

Page 21: Database Containerization Platform Checklist

TheDatabaseContainerizationPlatformChecklist

MultipleContainerFormats

Application-aware

infrastructure

Data Persistence(volume)

management

Snapshot,clone,restore

QualityofService

As-isfailover Networkautomation

Multi-tenancy&Isolation

Easeofsetupand

management

GuidingPrinciple:Dowhat’srightfortheapplication/database!

Page 22: Database Containerization Platform Checklist

6.As-IsFailover

ContainerFailover,Migration

APPLICATIONCLUSTERStatelessfailoverpolicieswillnotNOTworkfordatabases✔Containerrescheduledtoadifferenthostx ContainergetsanewIPx Losesdataasthevolumeisnotremountedonthenewhost

KeyUseCases:› Automaticfailover› Manualnodeevacuationforplannedmaintenance(e.g.OSorhardwareupgrades)› Clusterrebalance

22

Page 23: Database Containerization Platform Checklist

TheDatabaseContainerizationPlatformChecklist

MultipleContainerFormats

Application-aware

infrastructure

Data Persistence(volume)

management

Snapshot,clone,restore

QualityofService

As-isfailover Networkautomation

Multi-tenancy&Isolation

Easeofsetupand

management

GuidingPrinciple:Dowhat’srightfortheapplication/database!

Page 24: Database Containerization Platform Checklist

7.NetworkAutomation

› Dockernetworkingisearlystageanddiverse(bridge,host,overlay,n/wdriver)› Applicationshavetochoosethebestoption› Docker,bydefault,usesLinuxEthernetBridgesforbasicrouting.Thishasalotofperformanceissues.SamewithOverlaynetwork.› Usethehostnetworkstackinstead(-net=host)

Databasesnetworkrequirements:› Spanmultiplehostsi.e.clustered› Eachcontainershouldhaveuniquename&IPaddresses› PurposefulDBnames(appdb.us.acme.com)registeredinDNS› Exposewellknownports(MySQL:3306,Oracle:1521)› Minimalnetworkperformanceimpact

Page 25: Database Containerization Platform Checklist

TheDatabaseContainerizationPlatformChecklist

MultipleContainerFormats

Application-aware

infrastructure

Data Persistence(volume)

management

Snapshot,clone,restore

QualityofService

As-isfailover Networkautomation

Multi-tenancy&Isolation

Easeofsetupand

management

GuidingPrinciple:Dowhat’srightfortheapplication/database!

Page 26: Database Containerization Platform Checklist

8.Multi-Tenancy&Isolation

Tenant1 Tenant2

Tenant2

Tenant1

HardIsolation

SoftIsolation

› Sharednothing;eachtenantgetsdedicatedcompute

› DedicateddiskIOcapacity

› Addhardwareforextracapacity

› Poorconsolidationduetosilos

› Sharedcompute,multi-tenancyprovidedbycontainers

› Shareddisk,butdedicatedIOcapacity

› Containersresizedforextracapacity

› Higherconsolidation

Page 27: Database Containerization Platform Checklist

TheDatabaseContainerizationPlatformChecklist

MultipleContainerFormats

Application-aware

infrastructure

Data Persistence(volume)

management

Snapshot,clone,restore

QualityofService

As-isfailover Networkautomation

Multi-tenancy&Isolation

Easeofsetupand

management

GuidingPrinciple:Dowhat’srightfortheapplication/database!

Page 28: Database Containerization Platform Checklist

9.EaseofSetupandManagement

7CLUSTERMANAGER(mesos,kubernates)

8SCHEDULER

(marathon,cronos)

2STORAGEcapacitytier

(ceph,gluster,..)

4NETWORKING

(openvswitch,socketplane)

10MONITORING(graphite,sensu)

5CONFIGURATION(zookeeper,etcd)

9UI

(custom)

1SERVERHARDWARE(supermicro,dell,…)

3STORAGE

performancetier(SSD,Flash,NVMe)

11TROUBLESHOOTING

(splunk,logstash)

6CONTAINERS(docker,LXC)

1. Whensomethingbreaks,hardtoidentifytherootcause

2. Ifperformancedegrades,hardtoidentifyhotspots

3. Extendingtheplatform requiresconfiguring multiplecomponents

4. Keepingitoperationalrequiresknowledgeofallcomponents

11ComponentAssembly

Page 29: Database Containerization Platform Checklist

WhatisRobin? 29

Industry’sFirst

APPLICATION-DEFINEDDATACENTERSoftware

Container-based,Software-definedInfrastructureforData-CentricApplicationsContainers+Storage+Networking+ApplicationOrchestration

SimplifyApplicationManagement

GuaranteePredictablePerformance

MaximizeCapacityUtilization

Page 30: Database Containerization Platform Checklist

HowRobinWorks 30

Application-definedCompute

Application-definedStorage

EXISTINGCOMMODITYHARDWARE

ROBINCONTAINER-AWARE,STORAGEANDDATAPLANE

ROBINCONTAINER-BASEDCOMPUTEPLANE

Cloud-extendCompute&Storage

ROBINFABRIC

CONTROLLER

Fluid,Elastic,HighPerformanceInfrastructurePlatform

APPLICATIONORCHESTRATIONNETWORKING DATALIFECYCLEMANAGEMENT

Page 31: Database Containerization Platform Checklist

HowRobinWorks 31

Application-definedCompute

Application-definedStorage

EXISTINGCOMMODITYHARDWARE

ROBINCONTAINER-AWARE,STORAGEANDDATAPLANE

ROBINCONTAINER-BASEDCOMPUTEPLANE

Cloud-extendCompute&Storage

ROBINFABRIC

CONTROLLER

Fluid,Elastic,HighPerformanceInfrastructurePlatform

DramaticallyAgile,SimpleApplicationManagement

Elastic,GuaranteedQoS

ConsolidatewithBareMetalPerformance

Deploy

Scale

SnapshotClone

Restore

APPLICATIONORCHESTRATIONQoS GUARANTEEDATALIFECYCLEMANAGEMENT

Page 32: Database Containerization Platform Checklist

PlatformforALLDatabase&BigDataApplications

Stateless Stateful DataApps EnterpriseApps

Page 33: Database Containerization Platform Checklist

Demos

› ClusterLifecycleManagement› Initialdeploy&scaleout

› QualityofService› Dynamic&real-timecontrolofCPU,Memory,&IOPS

› DataLifecycleManagement› Snapshot,clone,andrestore

Page 34: Database Containerization Platform Checklist

› Reducehardwarefootprintby50%ormore

› Baremetalperformance

› GuaranteedApplication-to-SpindleQoS

Business

Benefits

ReduceCAPEX

› Simplifiedapplicationdeployment

› Self-servicedatalifecyclemanagement

ImproveProductivity

› 10xfasterapplicationdeployment

› Improvedapplicationuptime

ReduceOPEX

Page 35: Database Containerization Platform Checklist

www.robinsystems.com [email protected]

THANKYOU


Recommended