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/

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 11:37:39
Script start
Timing: Jan 18 2025 11:37:39
Module start 'layout'
Timing: Jan 18 2025 11:37:39
Module start 'content'
Timing: Jan 18 2025 11:37:40
Module end 'content'
Timing: Jan 18 2025 11:37:40
Script end

Main resources:

Total runtime0.6983 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 587.9063152.6250
Module start 'layout' 0.00760.0035 740.531339.4453
Module start 'content' 0.01110.6859 779.9766614.8984
Module end 'content' 0.69690.0013 1,394.875016.1641
Script end 0.6982  1,411.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4598160.0002
Check MTime0.00140.1958160.0001
Mysql Total
Database connection0.00170.247910.0017
Mysqli_queries0.630190.2298710.0089
Looping result0.00090.1221690.0000
Template Total0.661894.820.3309
Template load0.00210.302020.0011
Template processing0.659794.474220.3298
Template load and register function0.00010.014610.0001
states
state_id_array0.00290.418310.0029
state_identifier_array0.00110.158320.0006
Override
Cache load0.00190.2685420.0000
Sytem overhead
Fetch class attribute can translate value0.00090.126030.0003
Fetch class attribute name0.00160.230080.0002
XML
Image XML parsing0.00070.096230.0002
class_abstraction
Instantiating content class attribute0.00000.0037110.0000
General
dbfile0.00080.1096160.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs