Forums / Install & configuration / Shared var directory

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

eZ debug

Timing: Jan 18 2025 15:12:02
Script start
Timing: Jan 18 2025 15:12:02
Module start 'content'
Timing: Jan 18 2025 15:12:03
Module end 'content'
Timing: Jan 18 2025 15:12:03
Script end

Main resources:

Total runtime0.9911 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.8438180.8359
Module start 'content' 0.00550.8584 769.6797661.6875
Module end 'content' 0.86390.1271 1,431.3672337.0938
Script end 0.9910  1,768.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3668210.0002
Check MTime0.00140.1414210.0001
Mysql Total
Database connection0.00080.075810.0008
Mysqli_queries0.912992.11612050.0045
Looping result0.00220.22552030.0000
Template Total0.964397.320.4821
Template load0.00200.203720.0010
Template processing0.962397.095820.4811
Template load and register function0.00010.009410.0001
states
state_id_array0.00120.122410.0012
state_identifier_array0.00150.146420.0007
Override
Cache load0.00170.1765290.0001
Sytem overhead
Fetch class attribute can translate value0.00120.125350.0002
Fetch class attribute name0.00120.116790.0001
XML
Image XML parsing0.00210.213850.0004
class_abstraction
Instantiating content class attribute0.00000.0019100.0000
General
dbfile0.00290.2882460.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs