php acceleator + multiple eZ sites on a dedicated server : Performance ?

Author Message

francis Nart

Friday 04 February 2005 2:09:42 am

Hi,

I need to know if hosting multiple eZ website on a single dedicated server with a php accelrator like mmcache is a good option. I heard that php accelrators were failing to handle multiple eZ websites.
So : for about 30 websites on a single server, is it a good option to install a php accelerator ?

Thanks for your replies and experience on that matter.

Felix Laate

Friday 04 February 2005 2:25:01 am

Hi there!

I'm running some 20 ez sites (ranging from version 3.0.2 to 3.5) on a dedicated server running debian 3.1, apache 1.3.33, php 4.3.10 and mmcache. the box is opteron-based (but runs 32bit).

The same sites used to be located on a redhat 7.3 box with no php-accelerator, and after porting, the performance has increased considerably.

That said, there are more than one factor deciding the performance of ez Publish. The new box has better hardware, 2.6.x kernel AND the accelerator.

I have seen no sign of mmcache not oerforming as it should. But then again 20 sites are not that many.

Many people have complained about ez Publish and speed. But the ez Crew have done ALOT to speed up things, and still have their focus on it.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

francis Nart

Friday 04 February 2005 2:36:29 am

that is an answer !
Thank you felix. In fact we don't want to host more than 20 sites on that server so, that said...but that is definitely good news.
What about ram and disks ? More than 1 Gb of ram ? scsi HD or not ?

Francis.

Gabriel Ambuehl

Friday 04 February 2005 3:19:01 am

In an ideal world, you should have enough RAM to hold all content in RAM. Now depending on the amount of media (JPG, Flash or even Video) that obviously won't work for some sites. In that case, you should try to enough RAM so that MySQL DBs are in RAM. The most crucial point, however: you're box must not swap. Swapping kills performance.

No matter how many sites, I'd always use mmcache with ezPublish.

In my opinion, ezPublish is currently more CPU than IO bound. It spends most time in template processing (thus ViewCache should always be activated on production sites), so SCSI drives might not be needed that badly (they are, however, probably more reliable than IDE ones which may still make it worthwile).

In my experiences, a 2GHz machine serves up around 10 cached pages per second and all the images etc (which is basically nothing compared to the dynamic stuff). Maxing out a 2mbit pipe is entirely possible. It however won't standup to slashdot ;-)

Visit http://triligon.org

Frederik Holljen

Friday 04 February 2005 3:46:52 am

You are going to like this: http://ez.no/community/developer/specs/static_caching

Felix Laate

Friday 04 February 2005 4:03:55 am

Hi again!

You're right Fredrik. The ablitity to "split" your site into a static and a dynamic part is really going to make differance. Great idea!

As for my box, to answer Francis' question:

(single) Opteron 244
512 mb RAM
120 GB SATA disks in a Adaptech 2410 RAID (mirroring)

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Tony Wood

Friday 04 February 2005 5:17:01 am

Hi Felix,

Keep an eye on the accelerator cache location. If this is a shared directory in the server then it can increase to tens of thousands of files. This can cause real problems with accelerators with pages not appearing etc.

This may have changed since we tested at the beginning of last year. If it has changed then it will be good news.

I hope it works out for you

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

francis Nart

Friday 04 February 2005 6:05:24 am

yes, we saw that new spec and I think it is in the 3.6 cycle.

Now for Tony, we thought about the same and that's what we heard...thousands of cached files causes a real performance slowdown...That was the point of the inital question !

Francis.

Tony Wood

Friday 04 February 2005 6:15:45 am

arh :)

I which case I would say "no" do not use it... unless you have time set aside for lots of testing. Has anyone else got some success stories with lots of sites with accelerators?

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Gabriel Ambuehl

Friday 04 February 2005 6:24:44 am

With mmcache, you can disable disk caching, so all cached files reside in memory. That should probably not give a performance penalty then. Also it limits the amount of cached files quite effectively.

If this is really such a problem, maybe one should ask the developers for per host configurable cache dirs? Or some sort of dynamic hiearchy that only places 100 files per dir?

Also the issue probably highly depends on the caching strategy of the underlying OS. If directory look ups in large dirs are efficient, it shouldn't pose much of a problem.

Visit http://triligon.org

Tony Wood

Friday 04 February 2005 6:38:35 am

Thanks Gabriel,

Very interesting, i'll book some testing time for mmcache... Is turck is dead.. http://eaccelerator.net/HomeUk looks likes it's new incarnation. Have you used this?

Tony

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Georg Franz

Friday 04 February 2005 6:48:03 am

Hi,

I am using mmcache and have some ez3 sites on my server (around 10).

a) use it!
b) exclude cache dirs of ez if you have more than 5 sites and if your compiled-template directory contains large (and a large amount of) files. (e.g. one of my compiled template dir contains 70mb files ...)
c) don't use template compression AND mmache at one time (there is no performance increase)

php.ini ... mmcache settings ... exclude a directory and its content:

mmcache.filter="!/var/www/your/ez3/site/var/*"

Keep an eye on your mmcache-directory ... it can grow fast!

HTH

Kind regards,
Georg.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Gabriel Ambuehl

Friday 04 February 2005 6:49:14 am

I think mmcache is the direct child of turck (IIRC, the thing was called turck-mmcache back then)?

http://turck-mmcache.sourceforge.net/ for some more info. PHPAccellerator is dead from all I know.

Edit: eaccellerator seems to be a fork or something. Never tested it, mmcache works perfectly for me.

Visit http://triligon.org

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 19:26:27
Script start
Timing: Jan 18 2025 19:26:27
Module start 'layout'
Timing: Jan 18 2025 19:26:27
Module start 'content'
Timing: Jan 18 2025 19:26:28
Module end 'content'
Timing: Jan 18 2025 19:26:28
Script end

Main resources:

Total runtime0.8384 sec
Peak memory usage4,096.0000 KB
Database Queries95

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.3984152.6875
Module start 'layout' 0.00790.0023 741.085939.5234
Module start 'content' 0.01020.8268 780.6094818.6563
Module end 'content' 0.83700.0014 1,599.265628.0625
Script end 0.8384  1,627.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4070160.0002
Check MTime0.00130.1603160.0001
Mysql Total
Database connection0.00150.178910.0015
Mysqli_queries0.735287.6884950.0077
Looping result0.00110.1308930.0000
Template Total0.794894.820.3974
Template load0.00240.291620.0012
Template processing0.792394.501620.3962
Template load and register function0.00020.020210.0002
states
state_id_array0.00130.152510.0013
state_identifier_array0.00160.187020.0008
Override
Cache load0.00220.2596790.0000
Sytem overhead
Fetch class attribute can translate value0.00050.060360.0001
Fetch class attribute name0.00150.1747170.0001
XML
Image XML parsing0.00250.303560.0004
class_abstraction
Instantiating content class attribute0.00000.0047200.0000
General
dbfile0.00120.1457340.0000
String conversion0.00000.001040.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
13content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 46
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs