Micro service, Containers & Cluster Management

50
μService + Containerization & Cluster Management Preparing for the neXt shift?

Transcript of Micro service, Containers & Cluster Management

Page 1: Micro service, Containers & Cluster Management

μService +

Containerization &

Cluster Management

Preparing for the neXt shift…?

Page 2: Micro service, Containers & Cluster Management

μService Architecture

ContainerizedService

Service ClusterManagement

Page 3: Micro service, Containers & Cluster Management

Availability+

Stability+

Reliability

Page 4: Micro service, Containers & Cluster Management

Need

Easy to build

Cheap to replace

Quick to scale

Ability to withstand failure

Page 5: Micro service, Containers & Cluster Management

Speed will never be considered as a

“challenge to be addressed”.

It will be considered as a

“competitive advantage to be owned”.

Page 6: Micro service, Containers & Cluster Management

Monolithic vs MicroServices

Page 7: Micro service, Containers & Cluster Management

Productivity Vs Complexity

Page 8: Micro service, Containers & Cluster Management

http://martinfowler.com/articles/microservices.html

Page 9: Micro service, Containers & Cluster Management
Page 10: Micro service, Containers & Cluster Management
Page 11: Micro service, Containers & Cluster Management

API

API

API

API

API

API

API

API

API API

APIAPI

API

API

AP

I

AP

I

Page 12: Micro service, Containers & Cluster Management

API

API

API

API

API

API

API

API

API API

APIAPI

API

API

AP

I

AP

I

Page 13: Micro service, Containers & Cluster Management

Tight cohesion

&

Loose Coupling.

Page 14: Micro service, Containers & Cluster Management
Page 15: Micro service, Containers & Cluster Management

State of the Art in Microservices - Adrian Cockroft

Page 16: Micro service, Containers & Cluster Management
Page 17: Micro service, Containers & Cluster Management
Page 18: Micro service, Containers & Cluster Management
Page 19: Micro service, Containers & Cluster Management
Page 20: Micro service, Containers & Cluster Management

Service Monitoring

MicroServices Architecture

Service DiscoveryService

Configuration

Data Store

Service Routing

Operational : Container Orchestration & Cluster Mgmt

Service Implementation : Languages / Frameworks + Container

Page 21: Micro service, Containers & Cluster Management

Nuts and Bolts in the μService world

Service Routing

Config Mgmt Service Discovery Circuit Breaker

μProxy

Distributed Session

Control Bus

Global Lock

Leadership Election

Cluster StateToken Mgmt

Page 22: Micro service, Containers & Cluster Management

Want to know more….

goto www.slideshare.net Search for “Cloud Native design” & “Microservices Architecture”

Read/watch every presentation from Adrian Cockroft

Page 23: Micro service, Containers & Cluster Management

μService +

Containerization &

Cluster Management

Page 24: Micro service, Containers & Cluster Management

Virtual Machines - Today

Page 25: Micro service, Containers & Cluster Management

Hypervisor

OS

App Server (WAS/Tomcat)

Application

Hypervisor

OS

App Server

Application

OS

Application

App Server App Server

Application Application

App Server

Application

App Server (WAS/Tomcat)

Page 26: Micro service, Containers & Cluster Management

Application Stack

● Install & configure OS

● Install & configure App Server

● Deploy & configure Application

Page 27: Micro service, Containers & Cluster Management

What does it mean ?

From non-existence of an environment

to application up & running

< 1 Min

Page 28: Micro service, Containers & Cluster Management

One more thing...

Page 29: Micro service, Containers & Cluster Management

(De Facto?)Standard to build, ship, deploy and run distributed applications

Page 30: Micro service, Containers & Cluster Management
Page 31: Micro service, Containers & Cluster Management
Page 32: Micro service, Containers & Cluster Management
Page 33: Micro service, Containers & Cluster Management
Page 34: Micro service, Containers & Cluster Management
Page 35: Micro service, Containers & Cluster Management

The Linux Container

Page 36: Micro service, Containers & Cluster Management
Page 37: Micro service, Containers & Cluster Management

How it works

Page 38: Micro service, Containers & Cluster Management

Containerizing the application

● Install & configure OS

● Install & configure App Server

● Deploy & configure ApplicationKernel (Image)

App Server (Image)

App (Image)

Page 39: Micro service, Containers & Cluster Management

Lifecycle

build Push

STA

GE

PR

OD

TST

DEV

Image Docker Repository

Page 40: Micro service, Containers & Cluster Management

μService +

Containerization &

Cluster Management

Page 41: Micro service, Containers & Cluster Management

Data Center

Page 42: Micro service, Containers & Cluster Management

Data Center Server Utilization

“The sorry state of server utilization …….”

Page 43: Micro service, Containers & Cluster Management
Page 44: Micro service, Containers & Cluster Management
Page 45: Micro service, Containers & Cluster Management
Page 46: Micro service, Containers & Cluster Management

Elastic Data Center

Page 47: Micro service, Containers & Cluster Management
Page 48: Micro service, Containers & Cluster Management

“People are deterministic thinkers in a probabilistic world”

“Best way to predict the future is to invent it.”- Allan Kay

“As to methods there may be a million ….., but principles are few. The man who grasps principles can successfully select his own methods. The man who tries methods, ignoring

principles, is sure to have trouble.”-Ralph Waldo Emerson

Page 49: Micro service, Containers & Cluster Management

Want to know more….

Omega: flexible, scalable schedulers for large compute clusters - Google Paper

Return of the Borg: How Twitter Rebuilt Google’s Secret Weapon - Wired Magazine Article

Multi-agent Cluster Scheduling for Scalability and Flexibility - UC Berkeley Theses

Page 50: Micro service, Containers & Cluster Management

“I was talking when I should have been listening”

- Grant Hart