Skip to content

gotcha/buildout.zrs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZEO REPLICATION EXAMPLE

Set up a master ZEO

master.cfg:

[zeo]
recipe = plone.recipe.zeoserver[zrs]
eggs =
  Plone
  plone.recipe.zeoserver[zrs]
zeo-address = 8000
replicate-to = localhost:9000

Start the instance and 'var/log/zeo.log' should include:

PrimaryFactory starting on 8000
2013-11-26T08:19:38 Starting factory <zc.zrs.primary.PrimaryFactory instance at 0x999d42c>

Set up a slave ZEO

slave.cfg:

[zeo]
recipe = plone.recipe.zeoserver[zrs]
eggs =
  Plone
  plone.recipe.zeoserver[zrs]
zeo-address = 8000
replicate-to = localhost:9000

[instance]
recipe = plone.recipe.zope2instance
read-only = True

var/log/zeo.log:

2013-11-26T08:23:14 IPv4Address(TCP, '127.0.0.1', 9000): Connected

Sync Databases

If you have an existing Database, make sure you copied over 'var/filestorage' and 'var/blobstorage' from master to slave.

Further reading

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%