Forums / General / Varnish in ezp based community

Varnish in ezp based community

Author Message

Andreas Kaiser

Wednesday 04 February 2009 10:57:29 am

Hi community,

We have a developed a community site based on ezp 4.x.

Now we are planing to improve performance and server load in case the community grows.

We have heard a lot of great things about varnish. And ezp 4 has some extension to make easier the interaction of ezp with varnish.

The problem we have, is that the content of our site is related with the user that is logged-in.

So most of the pages are specific for every user that is loading the page. Some extension like eZ Varnish Login or eZSI seem to make life easier in dynamic sites.

Any similar situation where a http accelerator has been used with community sites?

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Stéphane Couzinier

Wednesday 04 February 2009 2:20:19 pm

Hi

You can use varnish to cache the global page.
In the page add ESI include to retrieve dynamic content.
To cache dynamic content for each user, you can use memcache.

http://www.kouz-cooking.fr

Andreas Kaiser

Thursday 05 February 2009 12:01:02 am

Thanks Stéphane,

I used xcache as php accelerator for dynamic content, but memcache seems to be much better for large installations because the possibility of sharing cache between webservers.

I'm also thinking of using a faster webserver than apache (like lighttpd or nginx) for serving files of the var directory.

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Stéphane Couzinier

Thursday 05 February 2009 7:03:25 am

for static file you can use a light apache2 setup.
We have made some test of both setup and we found the same result.

If you want something complex ;-):
1.Nginx/apache as a proxy only to compress page
2.Varnish for basic cache (page+image) and ESI (varnish can use ESI with gzip content)
3.apache2 ezpublish +static file (HTML)
4.memcache+SQL

http://www.kouz-cooking.fr

Andreas Kaiser

Monday 20 April 2009 12:19:22 pm

Hi Stéphane,

I will think about your comment - I like complex server architecture ;)

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

Carlos Revillo

Tuesday 21 April 2009 12:24:08 am

Hi,

For the login problems, have you tried ezvlogin? http://projects.ez.no/ezvlogin.

Regards.

Andreas Kaiser

Tuesday 21 April 2009 6:38:01 am

Hola Carlos,

Not in this case, but yes I've been testing evlogin and the other varnish related extensions.

I'm new to varnish and making lot of tests :)

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

eZ debug

Timing: Jan 18 2025 10:26:21
Script start
Timing: Jan 18 2025 10:26:21
Module start 'content'
Timing: Jan 18 2025 10:26:21
Module end 'content'
Timing: Jan 18 2025 10:26:21
Script end

Main resources:

Total runtime0.1585 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 589.4766180.8438
Module start 'content' 0.00790.0050 770.3203101.8359
Module end 'content' 0.01290.1455 872.1563530.5234
Script end 0.1584  1,402.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.2023200.0002
Check MTime0.00150.9154200.0001
Mysql Total
Database connection0.00110.709810.0011
Mysqli_queries0.113071.30721410.0008
Looping result0.00130.79601390.0000
Template Total0.145191.610.1451
Template load0.00090.537510.0009
Template processing0.144391.036810.1443
Override
Cache load0.00060.354010.0006
Sytem overhead
Fetch class attribute can translate value0.00050.325610.0005
XML
Image XML parsing0.00020.143210.0002
General
dbfile0.00301.8616200.0001
String conversion0.00000.003830.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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