How to move images and static files on a remote webserver

Author Message

Salvatore Guarino

Tuesday 02 December 2008 2:53:07 am

I have a webserver with eZpublish with high traffic of images an swf files . I need to put these files on another web server with a wide band, but I want to mantain the core of eZpublish on current server. There is a way to move only the /var (or /var/storage) directory? For a static site, a good idea should be to use the mod_rewrite of apache, but with eZpublish I need to sync the remote var directory with local changes. Maybe using mod_rewite to redirect /var urls and rsync to sync a local var directory with a remote one should be an efficent solution... Any idea or suggest?

Thx in advance!

Ivo Lukac

Tuesday 02 December 2008 4:06:51 am

Hello Salvatore,

You should try reverse proxy:
http://ez.no/developer/articles/using_the_squid_reverse_proxy_to_improve_ez_publish_performance

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Salvatore Guarino

Tuesday 02 December 2008 4:55:46 am

Thank you Ivo, it's a good idea.

Patrick Kaiser

Tuesday 02 December 2008 5:05:07 am

You may also consider nginx (http://wiki.codemongers.com/Main) or Varnish (http://varnish.projects.linpro.no/) or a combination of both.


Best regards,

Patrick

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 15:13:54
Script start
Timing: Jan 18 2025 15:13:54
Module start 'layout'
Timing: Jan 18 2025 15:13:54
Module start 'content'
Timing: Jan 18 2025 15:13:55
Module end 'content'
Timing: Jan 18 2025 15:13:55
Script end

Main resources:

Total runtime0.7816 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.1719152.6563
Module start 'layout' 0.00450.0024 740.828139.5078
Module start 'content' 0.00690.7735 780.3359599.5391
Module end 'content' 0.78040.0012 1,379.875012.0938
Script end 0.7816  1,391.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4026160.0002
Check MTime0.00150.1884160.0001
Mysql Total
Database connection0.00070.089610.0007
Mysqli_queries0.734593.9740620.0118
Looping result0.00050.0678600.0000
Template Total0.755696.720.3778
Template load0.00210.273520.0011
Template processing0.753496.389720.3767
Template load and register function0.00020.028110.0002
states
state_id_array0.00110.140110.0011
state_identifier_array0.00080.099020.0004
Override
Cache load0.00180.2290170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.075730.0002
Fetch class attribute name0.00090.120170.0001
XML
Image XML parsing0.00190.246630.0006
class_abstraction
Instantiating content class attribute0.00000.001580.0000
General
dbfile0.00110.1458300.0000
String conversion0.00000.000940.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs