Squid vs Varnish

Author Message

Marko Žmak

Saturday 19 December 2009 4:28:20 pm

I would like to use a http accelerator with my eZP site. I have narrowed down my choice to two candidates: Squid and Varnish.

Which one is better for eZP and gives greater performance boost?

Anyone has experience with both?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Gaetano Giunta

Saturday 19 December 2009 5:23:17 pm

Common wisdom is:

- varnish is faster / uses less resources

- it also has support for ESI

- squid otoh can share cache between two live instances, for better scalability (and possibly fault tolerance)

Principal Consultant International Business
Member of the Community Project Board

Ekkehard Dörre

Monday 21 December 2009 8:48:28 am

Hi Marko,

choose the one, you or your administrator knows better, Squid works very nice with eZ Publish, Varnish, too.

For Varnish there are nice extensions:

Varnish Control Center

http://projects.ez.no/all2evcc

eZ Varnish Login

http://projects.ez.no/ezvlogin

Edge_Side_Includes

http://projects.ez.no/ezsi

2 tutorials for Varnish:

http://ez.no/content/download/259672/1817582/file/Varnish2-and-eZ4-implementation-guide.pdf

http://www.all2e.com/Ressourcen/Artikel-und-Fallstudien/Varnish-installation-and-setup-on-ez-publish-based-systems

1 for Squid:

http://share.ez.no/articles/ez-publish/using-the-squid-reverse-proxy-to-improve-ez-publish-performance

greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

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 02:00:01
Script start
Timing: Jan 18 2025 02:00:01
Module start 'layout'
Timing: Jan 18 2025 02:00:01
Module start 'content'
Timing: Jan 18 2025 02:00:03
Module end 'content'
Timing: Jan 18 2025 02:00:03
Script end

Main resources:

Total runtime1.9409 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0224 588.9297152.6094
Module start 'layout' 0.02240.0074 741.539139.4141
Module start 'content' 0.02981.9096 780.9531602.7813
Module end 'content' 1.93940.0015 1,383.734412.1875
Script end 1.9409  1,395.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.2127160.0003
Check MTime0.00180.0933160.0001
Mysql Total
Database connection0.01170.602410.0117
Mysqli_queries1.857095.6728600.0309
Looping result0.00070.0381580.0000
Template Total1.881196.920.9406
Template load0.00200.105520.0010
Template processing1.879196.812320.9395
Template load and register function0.00010.007210.0001
states
state_id_array0.00140.072910.0014
state_identifier_array0.00150.079320.0008
Override
Cache load0.00170.0866360.0000
Sytem overhead
Fetch class attribute can translate value0.00120.064030.0004
Fetch class attribute name0.00130.066060.0002
XML
Image XML parsing0.00180.094030.0006
class_abstraction
Instantiating content class attribute0.00000.000460.0000
General
dbfile0.00120.0641300.0000
String conversion0.00000.000640.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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
2content/datatype/view/ezxmltags/header.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/header.tplEdit templateOverride template
6content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.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: 7

Time used to render debug report: 0.0001 secs