Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Cross Training for Your
 Plone Deployment
     Plone Conference 2008
         Andrew Parker




           nowhere to go b...
NOT my brothers




                  si xfeet up. com/d w08


                                       2
Overview

      si xfeet up. com/d w08


                           3
A Talk on Deployment?




                        si xfeet up. com/d w08


                                             4
Now What?
•   Anonymous Users:
    Requests:              95.4 requests/sec
    Page Views:            6.9 views/sec


•  ...
Parts of a Deployment
                 •   Hardware / OS
                 •   Caching
                 •   HTTP Server
   ...
What Hardware?




                 si xfeet up. com/d w08


                                      7
Deployment Platforms




                       si xfeet up. com/d w08


                                            8
Caching

      si xfeet up. com/d w08


                           9
Types of Cache




                 si xfeet up. com/d w08


                                     10
Squid
 •   Configure accelerated
     domains
 •   Setup ACLs to allow
     purges from Zope
 •   Set memory and disk
     ...
CacheFu




          si xfeet up. com/d w08


                              12
CacheFu Rules




                si xfeet up. com/d w08


                                    13
Browser Headers
•   Conditional GET Requests
    •   Last-Modified
    •   If-Modified-Since
•   Expires
•   Cache-Control
 ...
Firebug




          si xfeet up. com/d w08


                              15
RAM Caching




              si xfeet up. com/d w08


                                  16
URL
rewriting

       si xfeet up. com/d w08


                           17
Nginx

        Your site.
        Delivered.




                     si xfeet up. com/d w08


                           ...
Apache




         si xfeet up. com/d w08


                             19
Squid Results
•   Anonymous Users:
    Requests:              437.9 requests/sec
    Page Views:            31.8 views/sec...
Load
Balancing

       si xfeet up. com/d w08


                           21
Pound




        si xfeet up. com/d w08


                            22
Example
Poundctl:

 0. http Listener 127.0.0.1:7080 a
  0. Service active (15)
    0. Backend PF_INET 127.0.0.1:8080 activ...
Putting it
Together

        si xfeet up. com/d w08


                            24
Internet




                            HTTP Request


                                Squid


                          ...
Squid + Pound Results
•   Anonymous Users:
    Requests:              489.2 requests/sec
    Page Views:            35.8 v...
Other Considerations
•   Robots.txt
•   Repozo Scripts
•   ZODB Packing
•   Log Rotation




                       si xfe...
Photo Credits
•   http://www.flickr.com/photos/celestemarie/
    2193327230
•   http://flickr.com/photos/hisgett/1241275229/...
Plone Deployment Workshop




    s i xf eet u p.c om/d w0 8
        Register by October 17
            and save $100!

  ...
Upcoming SlideShare
Loading in …5
×

Cross Training For Your Plone Deployment

1,353 views

Published on

Published in: Technology
  • Be the first to comment

Cross Training For Your Plone Deployment

  1. 1. Cross Training for Your Plone Deployment Plone Conference 2008 Andrew Parker nowhere to go but open source sixfeetup.com/dw08 1
  2. 2. NOT my brothers si xfeet up. com/d w08 2
  3. 3. Overview si xfeet up. com/d w08 3
  4. 4. A Talk on Deployment? si xfeet up. com/d w08 4
  5. 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. 6. Parts of a Deployment • Hardware / OS • Caching • HTTP Server • ZEO Cluster • Maintenance si xfeet up. com/d w08 6
  7. 7. What Hardware? si xfeet up. com/d w08 7
  8. 8. Deployment Platforms si xfeet up. com/d w08 8
  9. 9. Caching si xfeet up. com/d w08 9
  10. 10. Types of Cache si xfeet up. com/d w08 10
  11. 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. 12. CacheFu si xfeet up. com/d w08 12
  13. 13. CacheFu Rules si xfeet up. com/d w08 13
  14. 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. 15. Firebug si xfeet up. com/d w08 15
  16. 16. RAM Caching si xfeet up. com/d w08 16
  17. 17. URL rewriting si xfeet up. com/d w08 17
  18. 18. Nginx Your site. Delivered. si xfeet up. com/d w08 18
  19. 19. Apache si xfeet up. com/d w08 19
  20. 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
  21. 21. Load Balancing si xfeet up. com/d w08 21
  22. 22. Pound si xfeet up. com/d w08 22
  23. 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
  24. 24. Putting it Together si xfeet up. com/d w08 24
  25. 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. 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. 27. Other Considerations • Robots.txt • Repozo Scripts • ZODB Packing • Log Rotation si xfeet up. com/d w08 27
  28. 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
  29. 29. Plone Deployment Workshop s i xf eet u p.c om/d w0 8 Register by October 17 and save $100! si xfeet up. com/d w08 29

×