MySQL-Replication and ViewCaching

Author Message

Mark Kruse

Tuesday 08 March 2005 12:33:27 am

Hi!

We have two server with eZ publish and MySQL (Linux + Apache) installed.
One Server is the Editor-System with the MasterDatabase and the other server is for the surfers. This one has a slave database, which is replicated from the master.

We want to use ViewCaching with this configuration.

Does anyone have experience with this?
When new objects are published, how can we achieve, that the corresponding cachefiles on the slave-server are deleted?
Or can we replicate the cachefiles from the master to the slave?

It would be great, if anyone could help us out.

Mark

Gabriel Ambuehl

Tuesday 08 March 2005 12:49:26 am

As long as you don't change templates or upload files, everything that changes should reside in the DB and get replicated automatically. If you do either, you need to copy them over manually. I'd suggest looking into rsync as it's perfect for that use.

Visit http://triligon.org

liu spider

Monday 04 April 2005 10:55:08 am

I'd like to setup a mirror for one ezpublish site, could you share your experience of howto setup and sync the slave database? thanks

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Gabriel Ambuehl

Monday 04 April 2005 11:01:16 am

That's documented very well in the MySQL docs.

Visit http://triligon.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 07:31:18
Script start
Timing: Jan 31 2025 07:31:18
Module start 'layout'
Timing: Jan 31 2025 07:31:18
Module start 'content'
Timing: Jan 31 2025 07:31:18
Module end 'content'
Timing: Jan 31 2025 07:31:18
Script end

Main resources:

Total runtime0.0161 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.2578151.2266
Module start 'layout' 0.00670.0016 739.484436.6797
Module start 'content' 0.00840.0064 776.164190.1875
Module end 'content' 0.01480.0013 866.351633.9922
Script end 0.0161  900.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.7318140.0002
Check MTime0.00106.2863140.0001
Mysql Total
Database connection0.00116.548310.0011
Mysqli_queries0.002213.821730.0007
Looping result0.00000.054810.0000
Template Total0.00106.410.0010
Template load0.00074.649610.0007
Template processing0.00031.675210.0003
Override
Cache load0.00053.301510.0005
General
dbfile0.002716.744480.0003
String conversion0.00000.054840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs