Direkt zum Inhalt | Direkt zur Navigation

Benutzerspezifische Werkzeuge

Sie sind hier: Startseite / Tech-Blog / Plone: Synchronizing ZEO Servers with ZRS

Plone: Synchronizing ZEO Servers with ZRS

With ZRS you can synchronize ZEO servers very easy. Some lines in your buildout configuration and you have a primary/secondary synchronization.

Primary ZEO Server

The primary ZEO server is writeable like a normal ZEO server and provides it's updates to host:port defined in: replicate-to

[zeo]
recipe = plone.recipe.zeoserver[zrs]
eggs =
  Plone
  plone.recipe.zeoserver[zrs]
zeo-address = 8000
replicate-to = 10.0.0.10:9001
replicate-from =
keep-alive-delay = 120

Secondary ZEO Server

The sencondary ZEO server is read only and gets it's update from the primary ZEO server defined in: replicate-from

[zeo]
recipe = plone.recipe.zeoserver[zrs]
eggs =
  Plone
  plone.recipe.zeoserver[zrs]
zeo-address = 8000
replicate-to =
replicate-from = 10.0.0.10:9001
keep-alive-delay = 120

Using secondary ZEO Server

You can use the secondary ZEO server in readly mode, for example to have a readonly copy for a external website, where the writable instances are more protected behind the scene. Or you could use it to distribute the load of ready requests.

abgelegt unter: , , , ,