Weitere ähnliche Inhalte
Ähnlich wie Cross Training For Your Plone Deployment (20)
Kürzlich hochgeladen (20)
Cross Training For Your Plone Deployment
- 1. Cross Training for Your
Plone Deployment
Plone Conference 2008
Andrew Parker
nowhere to go but
open source
sixfeetup.com/dw08
1
- 4. A Talk on Deployment?
si xfeet up. com/d w08
4
- 5. Now What?
• Anonymous Users:
Requests: 95.4 requests/sec
Page Views: 6.9 views/sec
• Authenticated Users:
Requests: 28.6 requests/sec
Page Views: 2.4 views/sec
si xfeet up. com/d w08
5
- 6. Parts of a Deployment
• Hardware / OS
• Caching
• HTTP Server
• ZEO Cluster
• Maintenance
si xfeet up. com/d w08
6
- 9. Caching
si xfeet up. com/d w08
9
- 11. Squid
• Configure accelerated
domains
• Setup ACLs to allow
purges from Zope
• Set memory and disk
cache sizes
• Check refresh pattern
si xfeet up. com/d w08
11
- 12. CacheFu
si xfeet up. com/d w08
12
- 14. Browser Headers
• Conditional GET Requests
• Last-Modified
• If-Modified-Since
• Expires
• Cache-Control
• max-age
• E-Tags
• If-None-Match
si xfeet up. com/d w08
14
- 15. Firebug
si xfeet up. com/d w08
15
- 18. Nginx
Your site.
Delivered.
si xfeet up. com/d w08
18
- 19. Apache
si xfeet up. com/d w08
19
- 20. Squid Results
• Anonymous Users:
Requests: 437.9 requests/sec
Page Views: 31.8 views/sec
• Authenticated Users:
Requests: 52.6 requests/sec
Page Views: 4.1 views/sec
si xfeet up. com/d w08
20
- 22. Pound
si xfeet up. com/d w08
22
- 23. Example
Poundctl:
0. http Listener 127.0.0.1:7080 a
0. Service active (15)
0. Backend PF_INET 127.0.0.1:8080 active (5 0.000 sec) alive
1. Backend PF_INET 127.0.0.1:8081 active (5 0.000 sec) alive
2. Backend PF_INET 127.0.0.1:8081 active (5 0.000 sec) alive
si xfeet up. com/d w08
23
- 25. Internet
HTTP Request
Squid
HTTP
Nginx
HTTP PURGE HTTP
Pound
HTTP HTTP HTTP
Zope Zope Zope
Plone Plone Plone
zrpc zrpc zrpc
Zope Storage Server (ZSS)
si xfeet up. com/d w08
25
- 26. Squid + Pound Results
• Anonymous Users:
Requests: 489.2 requests/sec
Page Views: 35.8 views/sec
• Authenticated Users:
Requests: 98.9 requests/sec
Page Views: 7.3 views/sec
si xfeet up. com/d w08
26
- 27. Other Considerations
• Robots.txt
• Repozo Scripts
• ZODB Packing
• Log Rotation
si xfeet up. com/d w08
27
- 28. Photo Credits
• http://www.flickr.com/photos/celestemarie/
2193327230
• http://flickr.com/photos/hisgett/1241275229/
• http://flickr.com/photos/matt-davis/2276357580/
si xfeet up. com/d w08
28