14
.All rights reserved. Zend Technologies, Inc © HA PHP Clusters in the Cloud Kent Mitchell Director, Product Management Zend

High Availability PHP Clusters in the Cloud

Embed Size (px)

DESCRIPTION

Kent Mitchell, Director of Product Marketing at Zend, led this session at the RightScale User Conference 2010 in Santa Clara. Session Abstract: The cloud is the new “holy grail” for a lot of people. The cloud enables sites to ramp up new servers for increased load and then ramp down servers when the load decreases. This minimizes upfront costs and provides “pay as you go” cost structure. This scenario is very compelling, especially for startups where budgets are tight. But it also presents some challenges such as making sure the new servers are identical to the existing servers, monitoring the ever-changing cluster, and retaining critical problem data when servers ramp down. In this session, we’ll demonstrate how using Zend Server Cluster Manager together with the RightScale Cloud Management Platform provide solutions for managing cloud-based, highly available PHP server clusters.

Citation preview

Page 1: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc ©

HA PHP Clusters in the CloudKent Mitchell

Director, Product Management

Zend

Page 2: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc ©

Why PHP Will Dominate the Cloud

Page 3: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc ©3

Over One Third of the Web Runs on PHP

Page 4: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc ©4 # 4

+4million developers

Page 5: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc ©5

Broad Technology Ecosystem

Page 6: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc ©6

PHP Architecture is Perfect for the Cloud

• Linear scalability

Stateless nature of PHP

• Share nothing architecture

• Add Servers for Scaling

Deterministic execution

• No GC or other activities

• Broad DB support

Support for almost all DB technologies

• Pick the one that is best for you

DB side connection pooling

• DB2, Oracle

Page 7: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc ©7

But … People can break anything

•Treat the cloud instances like “physical machines”

Deploy multiple apps to the server (limits scalability)

Oversize instances (too much capacity)

• Introduce Single Point of Failure

Choose the wrong DB (complex scaling)

Memcache servers for data caching

• Introduce non-linear scalability

Clustering support is typically centralized

Page 8: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc ©8

Basic PHP Solution

Load Balancer

PHP ServerPHP ServerPHP Server PHP Server

Data Cache

Memcache Server

DBServer

Page 9: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc ©9

Zend Products for the Application Lifecycle

Manage

Depl

oy

Test

Deve

lop

Page 10: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc ©10

Zend Server for HA PHP

•Transparent Session Failover

100% compatible with standard PHP session

Fully distributed peer-to-peer

•Distributed caching

No Single point of failure

•PHP aware page caching

Allows access to PHP data

Distributed

•No Single point of failure

Page 11: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc ©11

Zend PHP Cloud Platform Components

Resource Allocation Metering SecurityCLOUDINFRASTRUCTURE

Provisioning Auto-scaling MonitoringCLOUD MANAGEMENT

MessageQueue

Data Store

RDBMS

Cloud Server Integration

CloudServicesTooling

DesktopVirtualization

Storage

CLOUDSERVICES

CLOUD SERVICES LAYERCloud Services SimpleCloud Web Services

FRAMEWORK SERVICES LAYER

MVC

Security

Mobile

RIAAuth

Data Access

RUNTIME SERVICES LAYERSession

ClusteringApplicationMonitoring

ClusterManagement

ConfigurationManagement

Enterprise PHP

ApplicationDeployment

Page 12: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc ©12

Zend Cluster Solution

Load Balancer

Zend ServerZend ServerZend Server Zend Server

MySQL Master

MySQL Slave

Replication w/Auto-failover

Zend Server Cluster Manager

Auto-scalingArray

Rightscale Cloud Management

Page 13: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc 2009 ©

A Quick Demo

Page 14: High Availability PHP Clusters in the Cloud

.All rights reserved. Zend Technologies, Inc 2009 ©

Thank you!