+ All Categories
Home > Technology > Plone Deployment WPD2009

Plone Deployment WPD2009

Date post: 01-Jul-2015
Category:
Upload: francesco-ciriaci
View: 1,151 times
Download: 0 times
Share this document with a friend
Description:
Presentation of the different deployments of Plone in different conditions and the ability of Plone to scale. From classic deployment to multiserver with Relstorage. Deployment on cloud also featured. Please feel free to use the diagrams or to ask the source code of the slides. Presentation made at the World Plone Day 2009 by Federico Guizzardi, system administration manager in Reflab.
20
Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009 Plone Deployment 1
Transcript
Page 1: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Plone Deployment

1

Page 2: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Introduction

• Different scenarios– Different page types– Page composition

• Hard to estimate– Many variables:

hardware, bandwidth, ...

– Multiple benchmarks

2

Page 3: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Zope

• Is the application server• It does the low level

management• It is completely

integrated

3

Page 4: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Vanilla Plone + Apache

• “Classic”• Practical (ports,

statistics, etc.)• Configuration

– Virtualhost– Advanced solutions– etc.

Webserver

Internet

4

Page 5: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Vanilla Plone + Apache

• Yes, if– Few, well

distributed contents

– Limited users– For development

• No, if– Multicore server– Stable contents– Hi concurrency

levels

5

Page 6: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Plone + Varnish + Apache

• Reduced response time

• More user load• Lower machine

load

Internet

Webserver

Cache Sys

6

Page 7: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Plone + Varnish + Apache

• Yes, if– Stable contents– Limited server

resources– ... in general the

suggested deployment

• No, if– Multicore server– Development– High number of

users– High number of

editors

7

Page 8: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Architecture on multicore server

Internet

Webserver

Cache Sys

Load Balancer

8

Page 9: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

• Yes, if– Multicore (>2)– Hi number of

users– Pages composed

by a high number of sources

• Maybe not if– Variable user load

Architecture on multicore server

9

Page 10: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Distributed Architecture

Internet

Webserver

Cache Sys

Load Balancer

s1

s3

s4 s5

s2

10

Page 11: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Distributed Architecture: pros

• Dynamic System– Only the necessary servers are turned on

• Fault tollerance– Zope/Plone servers are redundant– ZEO can be “distributed”

• Maintenance similar to that of a single instance– Backup, updates...

11

Page 12: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

With Relstorage

Internet

Webserver

Cache Sys

Load Balancer

s1

s3

s4

s2

Oracle / Postgres

12

Page 13: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Relstorage: pros

DBMS Support:- Backup and restore- Redundancy and fault tolerance- Authenticated access to the DB data- Tools of the chosen DBMS- Speed improvements*

13

Page 14: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Distributed Architecture: when?

Always

if possible.

14

Page 15: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Plone in the Cloud

• Amazon Web Services (AWS)– EC2: Elastic Cloud Computing– S3: Simple Storage Service

in practice: a solution for hosting based on virtual servers (XEN) following the principle:

"pay only for what you use, as you use it”.

15

Page 16: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Plone on Cloud II

• Immediate startup– To start working with EC2 (<15 min)– To start a new server (<1 min)

• Complete autonomy of management– Turn on a new server when needed– Turn off a server if not needed– Different machine options

16

Page 17: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Plone on Cloud III

Back to Plone again:It’s possible then to activate or turn off an

arbitrary number of instances cloning the same server, implementing a dynamic farm.

In particular on AWS:•Elastic load balancing•Autoscaling

17

Page 18: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Case1: Logcluster

• www.logcluster.org• 3 Zope/Plone + ZEO• Daily updates• 20k requests a day

18

Page 19: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

• www.eol.ucar.edu • 5 Zope/Plone + ZEO• 2k pages a day• 32k pages in the

first month

Case2: EOL

Thanks to Kelly Craig for the material for this case study.

19

Page 20: Plone Deployment WPD2009

Plone Conference 2009 – Federico C. Guizzardi – 21 Aprile 2009

Questions?

Data on performances and different setups available on request

[email protected]

20


Recommended