Book Image

Plone 3.3 Site Administration

Book Image

Plone 3.3 Site Administration

Overview of this book

In the past few years, we have seen some dramatic changes in the way Plone sites are being developed, deployed, and maintained. As a result, developing and deploying sites, changing their default settings, and performing day to day maintenance tasks can be a challenge. This book covers site administration tasks, from setting up a development instance, to optimizing a deployed production site, and more. It demonstrates how-to perform these tasks in a comprehensive way, and walks the user through the necessary steps to achieve results.We have divided the subject of Plone site administration into three categories: development, deployment, and maintenance. We begin by explaining how a Plone site is built, and how to start using it through the web. Next, we add features by installing add-on products, focusing on themes, blogging, and other common enhancements. After the basics of developing and deploying a Plone site are covered, the book covers the basics of maintaining it.Further, throughout the book we preview some new technologies related to Plone site administration, available now as add-ons to the current Plone release. Finally, we will cover a variety of techniques to help you optimize your site's performance.
Table of Contents (15 chapters)
Plone 3.3 Site Administration
Credits
Foreword
About the Author
About the Reviewer
Preface
Index

Creating a production buildout


We would be remiss at this point if we did not discuss adding Zope Enterprise Objects (ZEOs) to our buildout. ZEO provides a way to allow numerous Zope 2 instances to access the same database (Data.fs file).

During a normal operation (that is, without ZEO), Zope 2 locks the Data.fs file when it is in use. When ZEO is in use, it locks the file too, but allows connections over TCP/IP.

So from now on, we will be using ZEO. This will enable us to do a number of things:

  • Learn how to use ZEO

  • Establish additional connections to the database to facilitate

    • Backups

    • Debugging

    • Database packing

    • Load balancing

However, if we were to add ZEO to our current buildout, we would experience this problem:

$ bin/buildout -c 05-deployment-maintenance-production.cfg  
Updating zope2. 
Updating fake eggs 
Updating instance. 
Installing plonesite. 
2010-05-19 22:27:32 WARNING ZEO.zrpc (10025) CW: error connecting to ('127.0.0.1', 8100): ECONNREFUSED

This is because in 05-deployment-maintenance...