cruise to cloud native: chapter 2cluster scaling physical hardware, host os/kernel, networking, and...

34
Cruise to Cloud Native: Chapter 2 Improving your toolset. Profiting from containers and serverless functions

Upload: others

Post on 04-Aug-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

Cruise to Cloud Native: Chapter 2Improving your toolset. Profiting from containers and serverless functions

Page 2: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

Daniel Maher

Technical Evangelist at Datadog@phrawzty

Hahnara Hyun

Solutions Architect at AWS

Ara Pulido

Technical Evangelist at Datadog@arapulido

Page 3: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

Cruise to Cloud Native in 3 episodesEpisode 1: From bare-metal to AWS(7 May)

Episode 2: Getting more from advanced services(Today!)

Episode 3: Bringing your company onboard!(8 June)

Page 4: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark4

Traditional three-tier application architecture

Web serversPresentation layers

Application serversBusiness logic

Database serversData layer

Page 5: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark5

How can we innovate faster?

Page 6: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark6

What do our customers want in a modern application?

Reliability Security and isolation by

design

Flexibility

Page 7: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark7

Traditional three-tier application architecture

Web serversPresentation layers

Application serversBusiness logic

Database serversData layer

Page 8: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark8

Modern application architecture

Presentation

Business logic

Data

Queues/messages

Events Events

APIs

Page 9: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark9

Let’s zoom out

APIs APIs

APIs

APIs APIs

Page 10: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark10

developers

delivery pipelines

services

monitorreleasetestbuild

Deployment: Monolith development lifecycle

Page 11: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark11

developers services

monitorreleasetestbuild

delivery pipelines

monitorreleasetestbuild

monitorreleasetestbuild

monitorreleasetestbuild

monitorreleasetestbuild

monitorreleasetestbuild

Deployment: Microservice development lifecycle

Page 12: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark12

Modern application architecture

Presentation

Business logic

Data

Queues/messages

Events Events

APIs

Page 13: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark13© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

AWS manages Customer manages

Data source integrationsPhysical hardware, software, networking, and facilitiesProvisioning

Application code

Container orchestration, provisioningCluster scalingPhysical hardware, host OS/kernel, networking, and facilities

Application codeData source integrationsSecurity config and updatesNetwork config Management tasks

Container orchestration control planePhysical hardware software, networking, and facilities

Application codeData source integrationsWork clustersSecurity config and updates, network config, firewall, management tasks

Physical hardware software, networking, and facilities

Application codeData source integrationsScalingSecurity config and updatesNetwork config

Management tasksProvisioning, managing scaling and patching of servers

Compute and Operations

AWS LambdaServerless functions

AWS FargateServerless containers

Amazon ECS/EKSContainer-management -as-a-service

Amazon EC2Infrastructure-as-a-Service

Less

More

Opi

nion

ated

Page 14: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark14

Lego uses an event-driven design

Commerce platform

Order & customer updates

Event relay Amazon EventBridge

Login

Customer login

Checkout

Submit order

Order

Process order

Shipping

Send order to SAP

Data sync

Customer, VIP,wishlist sync

Payment

Authorize payment

FIFO queue

Customerlogin

Invoke every minute

Order complete

Events

Payment authorized

Customerlogin

Order complete

Order submit

Page 15: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark15

Purpose-built databases at AWS

Aurora RDS

DynamoDB DocumentDB TimestreamNeptuneElastiCache QLDB Managed Cassandra

Relational Key value Document In-memory Graph Time series Ledger Wide column

Page 16: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark16

Risk of introducing changes

…may result in unavailability, reduced performance, adoption

Applications

FeaturesEnvironment

Page 17: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

© 2020, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark17

Monitor for reliable service health during re-platforming

Page 18: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

Observability

Page 19: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

Review from ep1: Observability

Page 20: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

Four Golden Signals

Page 21: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

Four Golden Signals

Latency Traffic Errors Saturation

Page 22: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

Four Golden Signals: Latency

● Direct impact on customer experience.● Where and how you measure is key.

Page 23: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

Four Golden Signals: Traffic

● The amount of work being done—or attempted.

● Direct relationship to business value.

Page 24: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

Four Golden Signals: Errors

● A nice, defined target to aim at.● Direct impact on customer experience.

Page 25: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

Four Golden Signals: Saturation

● Honestly, this is a tricky one. :)● Direct relationship to both scaling and

capacity planning.

Page 26: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

Traces and APM

Page 27: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates
Page 28: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates
Page 29: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

S1

S2

S4

S3 S5

Page 30: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

S1

S2

S3

S4

S5

TRACE

SPANS

Page 31: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates

Demo

Page 32: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates
Page 33: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates
Page 34: Cruise to Cloud Native: Chapter 2Cluster scaling Physical hardware, host OS/kernel, networking, and facilities Application code Data source integrations Security config and updates