data center design / microservices

48
Data Center Design Microservices Bob Wise Samsung SDS Research America Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 2

Upload: bob-wise

Post on 13-Jan-2017

2.350 views

Category:

Software


5 download

TRANSCRIPT

Page 1: Data Center Design / Microservices

DataCenterDesignMicroservices

BobWise

SamsungSDSResearchAmerica

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved

2

Page 2: Data Center Design / Microservices

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved

This presentation is intended to provide information concerning Samsung’s efforts around containers and container orchestration. We do our best to make sure that information presented is accurate and fully up-to-date. However, the presentation may be subject to technical inaccuracies, information that is not up-to-date or typographical errors. As a consequence, Samsung does not in any way guarantee the accuracy or completeness of information provided on this presentation. Samsung reserves the right to make improvements, corrections and/or changes to this presentation at any time.

The information in this presentation or accompanying oral statements may include forward-looking statements. These forward-looking statements include all matters that are not historical facts, statements regarding the Samsung Data System' intentions, beliefs or current expectations concerning, among other things, market prospects, growth, strategies, and the industry in which Samsung operates. By their nature, forward-looking statements involve risks and uncertainties, because they relate to events and depend on circumstances that may or may not occur in the future. Samsung cautions you that forward looking statements are not guarantees of future performance and that the actual developments of Samsung, the market, or industry in which Samsung operates may differ materially from those made or suggested by the forward-looking statements contained in this presentation or in the accompanying oral statements. In addition, even if the information contained herein or the oral statements are shown to be accurate, those developments may not be indicative developments in future periods.

Logos remain the property of their respective owners. So there.

3

Page 3: Data Center Design / Microservices

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved

This presentation is intended to provide information concerning Samsung’s efforts around containers and container orchestration. We do our best to make sure that information presented is accurate and fully up-to-date. However, the presentation may be subject to technical inaccuracies, information that is not up-to-date or typographical errors. As a consequence, Samsung does not in any way guarantee the accuracy or completeness of information provided on this presentation. Samsung reserves the right to make improvements, corrections and/or changes to this presentation at any time.

The information in this presentation or accompanying oral statements may include forward-looking statements. These forward-looking statements include all matters that are not historical facts, statements regarding the Samsung Data System' intentions, beliefs or current expectations concerning, among other things, market prospects, growth, strategies, and the industry in which Samsung operates. By their nature, forward-looking statements involve risks and uncertainties, because they relate to events and depend on circumstances that may or may not occur in the future. Samsung cautions you that forward looking statements are not guarantees of future performance and that the actual developments of Samsung, the market, or industry in which Samsung operates may differ materially from those made or suggested by the forward-looking statements contained in this presentation or in the accompanying oral statements. In addition, even if the information contained herein or the oral statements are shown to be accurate, those developments may not be indicative developments in future periods.Logos remain the property of their respective owners. So there!

4

Page 4: Data Center Design / Microservices

ClassicITusuallystartshere…

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 5

Page 5: Data Center Design / Microservices

ContainersFuelingPaceofReinven4on“TheNewIT”

Containersallowdevstobuildcomplex,distributedappsandservicesontheirnotebook,whichcanthenrun,unmodified,onpublicorprivateinfrastructure

•  Theyprovideisolation•  Theyarehighlyefficient(lowmemoryfootprint,lowstartuptime,rapidscaleup/down–often10Xoverallimprovement)

Anentireecosystemisrapidlybuilding…• Operationsautomation•  Lifecyclemanagement• Homogenous,super-efficientdatacenters

Page 6: Data Center Design / Microservices

ContainersFuelingPaceofReinven4on“TheNewIT”

Containersallowdevstobuildcomplex,distributedappsandservicesontheirnotebook,whichcanthenrun,unmodified,onpublicorprivateinfrastructure

•  Theyprovideisolation•  Theyarehighlyefficient(lowmemoryfootprint,lowstartuptime,rapidscaleup/down–often10Xoverallimprovement)

Anentireecosystemisrapidlybuilding…• Operationsautomation•  Lifecyclemanagement• Homogenous,super-efficientdatacenters

Page 7: Data Center Design / Microservices

DisrupCveEffectsonClassicIT

•  LowEntryBarrier•  ServerlessStartups•  ShadowIT

•  Deprecatesexis4ngtechnologies•  Sharedblockstorage(SANs)•  Sharedfilesystems(NAS)•  Legacynetworking,e.g.h/wfirewalls

•  LessLabor(TinierEmpire!!!)•  Automateddeployment,scaling,repair,teardown

•  Cheaperserversandnetworkh/w•  Strictlyregimented,homogenous•  CaQle,notpets.

•  Keytechnologiesopensourced

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 8

Page 8: Data Center Design / Microservices

ContainerUseMovingToEnterprises…fast!

• Usagemovingfromthebigserviceproviders(Google,Twitter,etc.)toenterprises.

• Evenverytraditionalenterprisesareadoptingthenewtechnology-CiscoITusingRedHatOpenshift,KubernetesandContainersforproductionworkloads.

Page 9: Data Center Design / Microservices

DANGER!

ThesecompaniesareNOTjustmovingtoDocker!Theyarereworkingsystemsarchitectures,enablingsmallproducCveteams,automaCngoperaCons,sharingclusters,andautomaCngtesCng,i.e.:Movingtomicroservicesanddevopsapproaches.DOCKER(andcontainerorchestra4on)arekeyenablers,nottheendgame.

Page 10: Data Center Design / Microservices

TheWideningGap

DedicatedPhysicalServers

FullVirtualizaCon

ContainerizaCon

Docker

OrchestraCon

AdHoc

Waterfall

Agile,Monolithic

Agile,Microservices

AdHoc

Epochal

ConCnuousIntegraCon

ConCnuousDeployment

ConCnuousQAChaosMonkey

50Servers/Op

40,000Servers/Op

DedicatedServers

DedicatedClusters

SharedClusters

“OldSchool”BigIT

Google,AWS,FB

1.6PUEDCs

1.1PUEDCsCloudInfra

(orjustusepublic!)

EnergyRecovery

Licensed&In-HouseSW

Lurk&ForkOpenSource

OpenSource

Contribute&LeadOpenSource

Page 11: Data Center Design / Microservices

Copyright©2016SamsungSDSAllrightsreserved|ConfidenCal 12 15

Source:AdrianCockroghQp://www.slideshare.net/adriancockcrog/dockercon-state-of-the-art-in-microservices/3

Page 12: Data Center Design / Microservices

MonolithicComplexDependencies

GoldPlated,ReliableHardwareExpensiveProprietaryDesigntoPreventFailure

Large,CentrallyControlledTeamsMonthstoProducConWaterfallProcessPonderous,ManualQAQualityIssuesCostly

MicroservicesLotsofSimple,IndependentParts

Small,IndependentTeamsConCnuousIntegraConConCnuousDeploymentChangesMadeinMinutesHighQualityUbiquitousAutomaConEfficient

CommodityHardwareSogwareReliabilityOpenSourceDesignedtoFailChaosMonkey

ClassicIT TheNewBar

Page 13: Data Center Design / Microservices

What’saMicroservice???

•  Not:10-100linesofcode.AckPhQQ!•  Looselycoupledarchitecture•  Piecesindependently…

– Upgradeable– Scalable– Developed

•  Ifyouhavetoupgradeeverythingyouaredoingitwrong.

•  Mostly,singleteam(oreven,dev)

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 14

Page 14: Data Center Design / Microservices

OrgImpacts

•  Microservices=Reorg•  Devops=Reorg•  Highpremiumonproductmanagement•  Highpremiumondevopsengineering,pipeline,andinternalplanorm

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 15

Page 15: Data Center Design / Microservices

ThoughtProcess…MicroservicesapproachiscriCcalContainersareakeyenablerDevopsapproachiscriCcalContainersareakeyenablerMicroservicesandDevopsrequireadifferentorgWeshouldbetourfutureonthefutureWe’dliketohelplegacyservicesmoveforward

StrategicOutline:ProvideconsulCnghelpfororgissuesDesignanewcontainercentricdatacenterAddsupportforlegacy-styleapplicaCons

Page 16: Data Center Design / Microservices

Automated,Container-CentricDatacenter

TheService

Containers

“Model”(Howtheapplicationshouldbedeployed,connected,protected,scaled,repairedandtorndown)

Servers

Network&StorageServices

Page 17: Data Center Design / Microservices

Here’safuturethatsucks…•  DeploysomeOpenstack•  DeploysomeVMware•  DeploysomeMesosforHadoopandSpark•  DeploysomeCloudFoundryonOpenstack•  DeploysomeCloudFoundryonmetal•  UseAWSbutgetlockedintotheirveryniceservices•  UsesomeGCE•  DeploydedicatedUnix/Windows/Linux•  Throwswarm,kubernetes,GKE,andECSintothemixforgoodmeasure.RunsomeonMesos,someonOpenstack.

•  RunsomeMesosonOpenstackforgoodmeasure.

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 18

Page 18: Data Center Design / Microservices

Moresuck…•  BuildexperCseonallofthosesystems…$$$,ifyoucanevendoit.

•  Paylotsforsupportsinceyouhavetoomanydifferentdistributedsystems

•  Trytofigureouthowtolog,alarm,debugallofthat.

•  Trytofigureouthowsecureallofthat•  Trytomanagecomplexitybyassigningeachsystemit’sowndedicatedcluster

•  Enjoy<10%systemuClizaCon•  HaveunsaCsfiedcustomersduetoreliabilityandperformanceissues.

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 19

Page 19: Data Center Design / Microservices

•  70%DatacenteruClizaCon

•  MulCplereleasesaday/CD

•  10,000-40,000serversperadmin

•  DestrucCvetesCnginproducCon

•  No-ops(Selfservicedeployment)

•  Goveryfastandbreaknothing

•  Commodityhardware

•  Extremelylowlicensingspend(opensource)

•  ComprehensiveAutomaCon

•  ExtensiveAnalyCcs

HighBar-IndustrialGradeCompute

#GIFEE

Page 20: Data Center Design / Microservices

Yeah,wewantthat!

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 21

Page 21: Data Center Design / Microservices

ControlandRiskRiskreducConisaboutcontrolVendorlock-inislossofcontrolMorecontrolleadstolowercost

OpenSource+SamsungEngineers=Control

Page 22: Data Center Design / Microservices

Goal…

23

Standardize,Containerize,Deploy

…toSamsungDataCenters.

…todevelopersystemsforagilityandproducCvity.

…topublicvirtualmachineclouds.…tonewandevenmoreefficientpubliccontainerclouds.

Page 23: Data Center Design / Microservices

OpenSourceContainerizaCon•  BreakingvendorlocktoexpensiveproprietarysoluCons•  MoreefficiencyindatacenteruClizaCon

•  Easierpathtocommoditycompute/whiteboxinfrastructure

•  Greaterportabilitytoandfrompubliccloudsystems

•  Moreagilityindevelopmentanddeployment

•  Rapiddevelopmentanddeployment

•  Deploymentfreedom/portability

•  Scaleup/Scaledown•  Lowestpossiblecostdeployments(capexandopex)

Page 24: Data Center Design / Microservices

StrategicElements•  Thededicatedclusterisdead.•  Collorary:Weneedlargesharedclusters.•  OnlyonekindofturtleattheboQom

– AWSTurtlesorGoogleTurtles?–  StandardizaCon–  CommodiCzaCon– AutomaCon– Doonethingwell,keepitassimpleaspossible

•  NeedtosupportlegacyapplicaConporCngandcloudnaCve

•  Control:Opensource,nolock-in

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 25

Page 25: Data Center Design / Microservices

ExecuCon

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 26

Page 26: Data Center Design / Microservices

Target Data Center Stack

BareMetal

Container-opCmizedhost

ContainerMgr

ContainerOpCmizedClusteringandResourceAllocaCon

PaaSappsJava/Scala

RubyWebDev

Non-PaaSAppsBackendprocessing

LegacyApps3rdParty

PublicCloud BareMetal

Container-opCmizedhost

ContainerMgr

PublicCloud BareMetal

Container-opCmizedhost

ContainerMgr

PublicCloud

PaaSCluster

PaaSCluster

RelaConalDB

BigDataDB

AnalyCcsCluster

BigDataDB

AnalyCcsCluster

Apps

Apps

DatabasesandAnaly4csHadoop

Non-SQLDB(Cassandra,Mongo,etc)SQLDB(MySQL,Postgress,etc)

ContainerOpCmizedNetwork

Page 27: Data Center Design / Microservices

Target Data Center Stack

BareMetal

Container-opCmizedhost

ContainerMgr

ContainerOpCmizedClusteringandResourceAllocaCon

PaaSappsJava/Scala

RubyWebDev

Non-PaaSAppsBackendprocessing

LegacyApps3rdParty

PublicCloud BareMetal

Container-opCmizedhost

ContainerMgr

PublicCloud BareMetal

Container-opCmizedhost

ContainerMgr

PublicCloud

PaaSCluster

PaaSCluster

RelaConalDB

BigDataDB

AnalyCcsCluster

BigDataDB

AnalyCcsCluster

Apps

Apps

DatabasesandAnaly4csHadoop

Non-SQLDB(Cassandra,Mongo,etc)SQLDB(MySQL,Postgress,etc)

ContainerOpCmizedNetwork

Page 28: Data Center Design / Microservices

ContainerOpCmized•  ContainerOpCmizedHosts

–  Verysmallfootprint–onlywhatisneededtoruncontainers–  VeryfastbooCng–  Veryfastupdate–securityrequiresup-to-dateinfrastructure–  Examples:–  CoreOS–  Atomic(Redhat)–  Snappy(Ubuntu)–  RancherOS

•  ContainerOpCmizedNetwork–  ExplosionofIPaddresses:IPAddresspercontainer–  IPV6

•  ContainerOpCmizedOrchestraCon–  Highrateofcontainerstart/stop–  Higherdensityperserver

Page 29: Data Center Design / Microservices

“Opinionated”CatsAhead…

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 30

Page 30: Data Center Design / Microservices

WrongTurtlesattheBoQom

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 31

Openstack

Kubernetes

Page 31: Data Center Design / Microservices

UpsideDown

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 32

Kubernetes

Swarm

Page 32: Data Center Design / Microservices

MuchMoreSensible

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 33

Swarm

Kubernetes

Page 33: Data Center Design / Microservices

TurtlesStackedTooDeep

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 34

Openstack

Kubernetes

Mesos

KubernetesisnotaPaaS.

TypeIKubernetesUser:WantstomanageasingleappTypeIIKubernetesUser:Wantstomanagedatacenters

Page 34: Data Center Design / Microservices

BeQer

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 35

Openstack

Kubernetes Mesos

Page 35: Data Center Design / Microservices

BeQersCll…

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 36

Mesos

Openstack Kubernetes

Page 36: Data Center Design / Microservices

Whereweareheaded…

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 37

TheVMs,too.Incontainers.

MesosOpenstackSwarm

Kubernetes

PaaS

Page 37: Data Center Design / Microservices

StrategicConclusion

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 38

ThereCanBeOnlyOne*

*Foreachenterprise.IFyoureallywantGIFEE.

Page 38: Data Center Design / Microservices

OpCon:Openstack•  MulCplesupportopCons–nosupportlockin.•  Wrongtypeofturtle•  BurdenedbyfeaturiCs

–  Collorary:Notkeepingitsimple

•  Lackofstrongtechnicalleadership•  Knownissuesatscale•  Toomuchreligiousfervor

– NobodyexpectsthePythonistas!•  Haveusedthisinproduc6on,opinionisqualified.

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 39

Page 39: Data Center Design / Microservices

OpCon:Mesos•  Adecentchoice,proventrackrecordatscale•  Singlevendorcontributorecosystem

–  Feelslikelock-intoMesosphereifyouwantcommercialsupport

–  ConfusingposiConfromMesospherevsDCOS•  ComplexandneedingsignificantexperCsetoconfigure

operate–  …butbeQerthanopenstack!

•  Goodecosystemaroundbigdata(Spark,Hadoop)•  RootsinscienCficcompuCng,notmodernservice

development….–  Containernetworking–  Servicediscovery

•  Havenotusedthisinproduc6on.

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 40

Page 40: Data Center Design / Microservices

OpCon:Swarm•  Notreallyinthesamecategoryastheseothersystems,butDockerseemsheadedthatway

•  Reallyadeploymenttool,notaclustermanagementsystem

•  Notsuitableforlargescale•  Singlevendordominated•  SupportforAPCC,RKT,etcseemschallenged.•  Verysmallcontributorbase•  Wouldn’tconsiderusingthisinproduc6onatscale,soopinionisunlikelytochangeforawhile.

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 41

Page 41: Data Center Design / Microservices

Choice:Kubernetes•  Gooddesignbyavibrant,healthycommunity

–  MulC-contributor•  Builtfromscratchformodernservicedevelop/deploy

–  PodsaretherightabstracCon•  Rapidpaceofimprovement

–  BehindMesosatpointinCme,buthighervelocity–  Our“BestFuture”bet

•  MulC-vendorsupportopCons(nosupportlock-in)–  SCllnascent.

•  Greatcontributorswiththerightexperience•  BesthighscalepubliccloudcontaineropCon

–  GoogleContainerEngine•  SupportsmulCplecontainerspecs:DockerandAPCC

42

Page 42: Data Center Design / Microservices

KubernetesConcerns•  CNCFistherightdirecCon,butslowge|ngofftheground.•  Featuri6sriskiseverpresent.•  Weareconcernedandwillcon6nuetopushaspriori6es:

–  HA–  Scaling–  Reliability–  OperaConstooling

•  AccessibilityfornewusersiscriCcaltoecosystemhealth:–  Quickstart–  DocumentaCon–  UIs

•  Lookingforwardtomorecompaniesinthedirectsupportecosystem.

43

Page 43: Data Center Design / Microservices

AFewWordsAboutPaaS

•  WeneedtosupportmulCplePaaSframeworks.

•  WedonotwanttodedicateclusterstoeachPaaSsystem.– CloudFoundry/Diego/BOSH

•  PaaSworkloadneedstosharedwithotherworkloads

•  APaaSshouldnotbeinthecontainerschedulingbusiness!

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 44

Page 44: Data Center Design / Microservices

AFewMoreWordsAboutPaaS

•  CloudFoundryneedstorebasetoKubernetes(andMesos)toliveinthisworld.– DitchBOSH– DitchDiego– Focusonvalueupthestackratherthandown.

•  KudostoDeis,ApacheStratos,andOpenShig

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 45

Page 45: Data Center Design / Microservices

SDSARefArchitectureEvoluCon

CoreOS

Docker

Kubernetes1.1+

AWS

Flannel

Apps

Terraform

Ansible

1000NodeStackBaseline

OpCmizedOS

Container

OrchestraCon

Compute

Networking

Provisioning

Page 46: Data Center Design / Microservices

SamsungKubernetesEngagement

•  Wearenotforking•  Wearepushingbackourworkeitherintokubernetesorintoourgithubrepo–Samsung-AG.

•  2016–moreworkonnetworkingandstorage,with1000nodeclustersasthebaseline

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 47

Page 47: Data Center Design / Microservices

WhyareweinvolvedinK8Scale?

•  WewantverylargeclusterswithcrossapplicaConresourcesharing– AlsolookingforwardtoUbernetes

•  WebelievewecanmakeaposiCvecontribuContomakethishappenfasterandbeQer.

•  Webelieveweneeddeeptechnicalinvolvementtobuild/deploy/operateatscale.

•  Welearnbydoing.

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 48

Page 48: Data Center Design / Microservices

[email protected]://github.com/Samsung-AGSeaQle,WA

SDSRA…

WorldClassExperCseinModernBestPracCces:OrgDesign,AutomaCon,Devops,Containers,DataCenters,OpenSource

Copyright © 2015 Samsung SDS Co., Ltd. All rights reserved 49