Shared var directory

Author Message

Lars Eirik R

Sunday 09 May 2010 3:02:14 am

Hi.

We are currently working on a project where we would like to have a shared var directory to store images and cache files in. Is it possible for 3 developers to share a given var directory? I am thinking about adding a symbolic link which links to shared folder on another server.

I have not seen any such examples.

It would be perfectly fine for each developer to have his/her own ezPublish installation, but we would like to access a share db as well as a shared var directory.

Thanks

Gaetano Giunta

Sunday 09 May 2010 5:23:01 am

The var dir is linked to the database.

If you are having 3 developers workstations with each one having a full install (ez+db), you should share a subdirectory of var.

If you are having 3 developers using the same db, the complete var dir should be shared anyway.

Principal Consultant International Business
Member of the Community Project Board

Bertrand Dunogier

Sunday 09 May 2010 12:16:29 pm

As long as the DB is shared, and it seems to be based on your explanations, you could technically share the var directory as well... you could actually use an eZ Publish cluster for that.

But having one DB / vardir with 3 different codebases might lead to unpredictable results.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Jérôme Vieilledent

Monday 10 May 2010 1:00:45 am

Hi Lars

As Bertrand said, the best and easiest way is to use Database Cluster mode. We use this method for big projects with a dozen of developers working in different agencies. Of course there is no problem to use database cluster mode in development and another cluster mode (eZFS2, eZDSF, ...) in production. You can easily switch from one mode to another with NovenINIUpdate extension ;-)

Gaetano Giunta

Saturday 22 May 2010 6:34:45 am

For further clarification: this seems to be the case with a shared db and 3 devs having each his own workstation (or his own ezpublish install).

It is a common scenario as far as I can tell: it is quite easy to have shops with 2/3 developers working on the same project, and having separate databases makes simple tasks a bit too hard (eg. can you check why node XX doe not work correctly?).

To be honest, I have been developing using this model withouth a shared var directory. There are downsides, such as eg. images uploaded by dev. A not being visible by dev. B. The caches are not a huge problem in fact, as when you're developing all caches are off anyway.

But the preferred method would be of course to have a var dir shared via symlink - just make sure you have no problems with filesystem permissions that would prevent one developer's post from overwriting files generated from another developer.

Principal Consultant International Business
Member of the Community Project Board

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 18 2025 18:21:12
Script start
Timing: Jan 18 2025 18:21:12
Module start 'layout'
Timing: Jan 18 2025 18:21:12
Module start 'content'
Timing: Jan 18 2025 18:21:12
Module end 'content'
Timing: Jan 18 2025 18:21:12
Script end

Main resources:

Total runtime0.0165 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.0061 587.9141152.6250
Module start 'layout' 0.00610.0027 740.539139.4453
Module start 'content' 0.00880.0057 779.984493.3359
Module end 'content' 0.01460.0019 873.320338.3047
Script end 0.0165  911.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002616.0384140.0002
Check MTime0.00116.6979140.0001
Mysql Total
Database connection0.00095.399010.0009
Mysqli_queries0.002515.302430.0008
Looping result0.00000.072210.0000
Template Total0.00169.810.0016
Template load0.00085.127710.0008
Template processing0.00084.642810.0008
Override
Cache load0.00063.771110.0006
General
dbfile0.00138.154180.0002
String conversion0.00000.049140.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