29
intel.com/cloudforall

Turning Pets into Cattle: A Demonstration to Provoke Discussion

Embed Size (px)

Citation preview

intel.com/cloudforall

intel.com/cloudforall 3

Legal Disclaimer

OpenStack is a registered trademark of the OpenStack Foundation in the United States, other countries or both.

Intel and the Intel logo are trademarks of Intel Corporation in the U.S. and/or other countries.

HP, Hewlett-Packard and the HP Logo are registered trademarks that belong to Hewlett-Packard Development Company, L.P.

intel.com/cloudforall

Turning Pets into Cattle

Yih Leong Sun, PhD

Senior Software Cloud Architect

Intel

Stephen Walli

Distinguished Technologist

HP

intel.com/cloudforall 5

What this talk is NOT about…

• Continuous Integration and Continuous Deployment

• Automation techniques for Infrastructure, Deployment, and Operations

• Agile Development Practices

It’s an application architecture discussion

intel.com/cloudforall 6

Pets vs Cattle

intel.com/cloudforall 7

Cloud Application Maturity Levels

http://www.opendatacenteralliance.org/docs/architecting_cloud_aware_applications.pdf

intel.com/cloudforall 8

Once Upon A Time…

intel.com/cloudforall

VM

VM

VM

9

From Physical to Virtualization (Pets)

Web App DB

intel.com/cloudforall 10

From Virtualization to Cloud (Cattle)

VM

VM

VM

Web

App

DB

?

intel.com/cloudforall 11

intel.com/cloudforall 12

Architecture Design

Conventional App

● Monolithic

● Centralised state

● Tightly coupled

● Synchronous

● Single tenancy

Cloud-aware App

● Distributed, Microservices

● Asynchronous

● Multi tenancy

● Failure-resilience

● Share-nothing

● Eventually consistent

vs

intel.com/cloudforall 13

Building Apps for the Cloud

http://www.opendatacenteralliance.org/docs/architecting_cloud_aware_applications.pdf

intel.com/cloudforall 14

Turning Pets into Cattle – Strategies

Understand your architecture

Understand your data

Web

Middleware

Database

Messaging

intel.com/cloudforall 15

Shift of Focus

Reliability = MTBF + MTTR + Availability

SHIFT

Traditional

Buy expensive hardware to increase MTBF

Hardware-based redundancy

OpenStack Cloud

Maximise automation toreduce MTTR

Software-based redundancy

intel.com/cloudforall 16

DEMO

intel.com/cloudforall 17

Demo

VM

VM

VM

Web

App

DB

intel.com/cloudforall 18

intel.com/cloudforall 19

Demo

VM

VM

VM

Web

App

DB

W1

W2

A1

A2

Static ContentSwift*

intel.com/cloudforall 20

intel.com/cloudforall 21

12-Factor App Codebase: One codebase tracked in version control

Dependencies: Explicitly declare and isolate dependencies

Configuration: All configuration is stored in the environment

Backing Services: Treat all backing services as attached services

Build, Release, Run: Strictly separate build and run stages

Processes: Execute the application as one or more stateless processes

Port Binding: Export services via port binding

Concurrency: Scale out via the process model

Disposability: Maximize robustness with fast start-up and graceful shutdown

Dev/Prod Parity: Keep development, staging, and production as similar as possible

Logs: Treat logs as event streams

Admin Processes: Run admin/management tasks as one-off processes

intel.com/cloudforall 22

WordPress as a 12-Factor App Codebase: One codebase tracked in version control

Dependencies: Composer and plug-ins listed in composer.json

Configuration: Configuration needs consideration! What goes to the env and how?

Backing Services: DBs, Queues, LB, SMTP, New Relic, API-services

Build, Release, Run: Excellent stage to apply automation tools

Processes: Stateless Processes means considering Sessions & Uploaded Files

Port Binding: Port binding will require nginx+PHP-FPM, and some config work

Concurrency: Consideration needed to avoid long-running PHP-FHM “daemon”

Disposability: Mostly handled by PHP-FHM

Dev/Prod Parity: Automate with VirtualBox/Vagrant & Puppet/Chef/Ansible

Logs: Log files versus stdout … not quite

Admin Processes: Even one-off processes are scripts and under version control

intel.com/cloudforall 23

Leverage other OpenStack Features

Heat* Orchestration Swift* Object Storage Trove* Database

intel.com/cloudforall 24

Every technologymust

create value to the business.

intel.com/cloudforall 25

Q & A

intel.com/cloudforall 26

OpenStack Enterprise Working Group

• Cattle and Pets

• Focused on identifying today's barriers for on-boarding traditional Enterprise IT workloads into OpenStack Cloud deployments and works to create solutions and define and advance required new OpenStack features or capabilities.

• Mailing List:http://lists.openstack.org/cgi-bin/mailman/listinfo/enterprise-wg

• Meeting Logistics: Tuesday 2000 UTC; Access: (888) 875-9370, Bridge: 3; Passcode: 1278598

intel.com/cloudforall 27

[email protected]

[email protected]

intel.com/cloudforall 28

Participating in the Intel Passport Program?

Are you playing? Be sure to get your Passport Stamp for attending this session! See me or my helper in the back at the end!

Not Playing yet? What are you waiting for? See me or my helper in the back at the end and we can get you started!

Don’t forget to return your stamped passport to the Intel Booth #H3 to enter our raffle drawing! 3 Stamps = 1 Raffle Ticket