Industrializing eZ Publish project development

Author Message

Jérôme Vieilledent

Sunday 27 June 2010 6:14:37 am

Hi everyone !

As a continuation of my presentation at the eZ Conference 2010 in Berlin, here's a topic where we would talk about the subject.

Feel free to post any question/notice/suggestion !

My slides on Slideshare : http://slidesha.re/cM6Yk2

Peter Rudolfsen

Sunday 27 June 2010 10:48:30 am

Thanks for a nice presentation, really enjoyed it.

I just have one question, do you run the virtual development servers on a dedicated machine, or are they running on each of the developers machines?

Jérôme Vieilledent

Sunday 27 June 2010 2:00:55 pm

You're welcome ! I'm glad you enjoyed it :)

About your question, it mainly depends if the developers are located in the same LAN as the database server. If this is the case, then they can run their VM on their local machine. Otherwise (e.g. working with freelancers, home office...), you'll need a dedicated headless server (meaning with no GUI like regular Virtual Box or VMWare player) hosting the VMs. You can do that with Virtual Box thanks to VBoxHeadless (look "headless" in the manual), or with VMWare ESX.

Peter Rudolfsen

Monday 28 June 2010 1:23:29 am

I'm also looking for a best-practice on how to structure the var-dirs.

We now have all of the var-dir centralized, but that can cause problems with the cache when on different environments. (INI- and template-cache, etc). site.ini says that CacheDir can be set to an absolute path, and then it supposedly won't be appended after the var-dir.

Are you familiar with this challenge?

Jérôme Vieilledent

Monday 28 June 2010 4:21:36 am

I'm not sure I understand your issue...

How can a centralized var dir be a problem ? Can you please precise a bit ?

Peter Rudolfsen

Monday 28 June 2010 11:42:00 pm

The problem was sharing the cache-part of the var-dir between environments. Then you could suddenly get cache from integration or other developers when developing.

But it seems that setting the CacheDir to a local absolute path did the trick.

Jérôme Vieilledent

Tuesday 29 June 2010 4:52:55 am

Actually, is your issue for production or just for development/integration ?

Peter Rudolfsen

Tuesday 29 June 2010 5:25:16 am

Sorry, I should've specified which environments I was talking about.

This issue is only between development and integration, and NOT in production.

Jérôme Vieilledent

Wednesday 30 June 2010 6:04:29 am

Are you in cluster mode ? Do you use the same database for dev/integration ? If so, just consider using 2 separated databases ;)

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

Main resources:

Total runtime0.0130 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.0047 588.2578151.2266
Module start 'layout' 0.00480.0021 739.484436.6797
Module start 'content' 0.00680.0047 776.164198.0625
Module end 'content' 0.01150.0014 874.226637.9922
Script end 0.0129  912.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002116.3847140.0002
Check MTime0.00107.7036140.0001
Mysql Total
Database connection0.00043.398110.0004
Mysqli_queries0.002519.609830.0008
Looping result0.00000.092010.0000
Template Total0.00108.010.0010
Template load0.00086.100310.0008
Template processing0.00021.907010.0002
Override
Cache load0.00054.000010.0005
General
dbfile0.00139.824280.0002
String conversion0.00000.046040.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