stateful applications on the cloud: a paypal journey

11
Stateful Applications On The Cloud – A PayPal Journey Anant Kumar and Jasdeep Singh PayPal Inc. August 23, 2016

Upload: tesora

Post on 20-Mar-2017

127 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Stateful Applications On the Cloud: A PayPal Journey

Stateful Applications On The Cloud – A PayPal JourneyAnant Kumar and Jasdeep SinghPayPal Inc.August 23, 2016

Page 2: Stateful Applications On the Cloud: A PayPal Journey

2

About Paypal

Page 3: Stateful Applications On the Cloud: A PayPal Journey

3

x 500K Cores

x 10 PB Storage

OpenStack Cloud

> 10K Physical Servers

x 100K VMs

x 1000engineers

x 10M Lines

x 1000 Releases/year

> 1000 Services

x 2000 Builds/day

x 1000Deploy/day

• Developer Statistics

9 Availability Zones

3 Regions

Key Statistics

Page 4: Stateful Applications On the Cloud: A PayPal Journey

4 4

2012-2013 2014-2015 2016-2017+

• OpenStack POC with 16 servers

• Built 2 AZs with OpenStack Essex release

• 5 apps in production• 40% of holiday traffic for

Paypal Web and APIs

• PaaS on Cloud with full PDLC support (Node and Java applications)

• 100% of Web, API & Mid-tier workloads

• All Stateless Applications in Cloud

• Built largest OpenStack based AZ (for Dev & QA)

‒ Next frontiers in Developer Productivity

‒ Infrastructure Cost & Efficiency

‒ Stateful Applications in Cloud

PayPal Cloud Platform Journey

Page 5: Stateful Applications On the Cloud: A PayPal Journey

5

Problem Statement

• Applications Still On Bare Metal• Messaging• Streaming• Caching• Search• Databases

• Challenges With:• Agility• Efficiency• Elasticity• Onboarding

Page 6: Stateful Applications On the Cloud: A PayPal Journey

6

Guiding Principles

• Hybrid Cloud Ready

• Cost Efficiency

• Container Compatible

• No Loss Of Efficiency And Performance

Page 7: Stateful Applications On the Cloud: A PayPal Journey

7

Constraints

• Preserve State (Petabytes Of Data)

• Storage, Storage, Storage

• Recovery from VM failure

• Network Bandwidth

• Noisy neighbor

Page 8: Stateful Applications On the Cloud: A PayPal Journey

8

Two Columns

• Network Block Storage • VMs With Ephemeral Disk

VM 1

Hypervisor

VM 2 VM n

Disk 1 Disk 2 Disk n

Host

VM 1

Hypervisor

VM 2 VM n

Network Block Storage

Host

iSCSI

Page 9: Stateful Applications On the Cloud: A PayPal Journey

9

Options

• VMs With Attached Local Disk • Hyper Converged Storage

VM 1

Hypervisor

VM 2 VM n

Disk 1 Disk 2 Disk n

Host

VM 1

Hypervisor

VM 2 VM n

Hyperconverged Storage Manager

NAS Disk 1 Disk n

Host

Page 10: Stateful Applications On the Cloud: A PayPal Journey

10

What We Chose

• Winner (For Now) : VMs With Attached Local Disks

• Advantages• Do Not Lose Data When VM Is Lost• Network Bandwidth Not A Concern• Cheaper (Always Helps !!!)

• Disadvantages• Storage Is Lost If The Host Is Lost

Page 11: Stateful Applications On the Cloud: A PayPal Journey

11

Conclusion

• Moving Ahead Full Steam - “VMs With Attached Local Disk”

• Keeping A Close Eye On The “Hyper-converged Storage” Space.

• Will Likely Support Multiple Options In The Future

• Keep The Hybrid Cloud In Mind