Forums / Install & configuration / How to Generate Static Version of Site?

How to Generate Static Version of Site?

Author Message

Alex Jones

Tuesday 07 October 2003 6:46:34 am

Does anyone know of a way to generate a static version of an eZ publish site? We have found that eZ publish (3.1) runs far too slow even with caching enabled and Turck installed. As our server is not that old we need to find a solution.

What we are interested in doing is setting eZ publish up to generate all of the pages as static HTML, which are then served up directly through Apache, bypassing eZ publish. Our content doesn't change often enough to require that everything be published through eZ publish though we want to continue to use it to manage our content.

We are running on FreeBSD.

Any help would be greatly appreciated!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Paul Forsyth

Tuesday 07 October 2003 6:50:24 am

Have a look at this:

http://ez.no/developer/ez_publish_3/contributions/ez_sitecopier

paul

Tony Wood

Tuesday 07 October 2003 6:59:38 am

3.1 slow?
Could you publish your results from http://joedog.org/siege/ and describe how you are testing the site currently.

We get 114 concurrent users (114 sessions created every second) at 9.38 second transaction and for 1 concurrent user a .40 second transaction rate on our homepage of www.visionwt.com an eZ 3.1 site.
Test were carried out on a 100MB LAN from our failover server and the server has Turck installed and with PHP 4.3.3 compiled from source.

We are going to be testing with 3.2 soon to see what speed improvements we get.

I hope this helps.

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

Alex Jones

Tuesday 07 October 2003 7:09:34 am

Thank you both for the quick responses. I will sit down with our Sysadmin to document exactly what is happening - he is running most of these tests. I know he has had issues setting up Siege as it doesn't want to run on FreeBSD boxes and we don't have any decent Linux boxes around.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Tuesday 07 October 2003 1:21:08 pm

More information:

[Server Information]
FreeBSD 4.8 Stable
Dual 1.6ghz with hyperthreading
1gig of ram
100mb ethernet
Raid 1 mirror

Apache: 1.3.28
PHP: 4-4.3.4.r1
MySQL : 3.23.58
Turck-mmcache: 2.4.1

eZ publish: 3.1-1 Revision 2703

[Siege Results - Our eZ publish Site]
Lifting the server siege... done.
Transactions: 1259 hits
Availability: 100.00 %
Elapsed time: 200.48 secs
Data transferred: 50803338 bytes
Response time: 2.36 secs
Transaction rate: 6.28 trans/sec
Throughput: 253408.51 bytes/sec
Concurrency: 14.85
Successful transactions: 1077
Failed transactions: 182

[Siege Results - Current Static Site]
Transactions: 7772 hits
Availability: 99.94 %
Elapsed time: 200.28 secs
Data transferred: 171843406 bytes
Response time: 2.37 secs
Transaction rate: 38.81 trans/sec
Throughput: 858015.81 bytes/sec
Concurrency: 91.90
Successful transactions: 7772
Failed transactions: 5

As you can see there are massive differences between the eZ publish site and the static site.

[eZ publish site.ini]
The site.ini.append for this site does not include any cache-related settings.

TextTranslation=disabled
TranslationCache=disabled
NodeTreeCaching=disabled
TemplateCompile=enabled
CompileComments=disabled
CompileAccumulators=disabled
CompileTimingPoints=disabled
CompileNodePlacements=enabled
CompileExecution=enabled
CompileAlwaysGenerate=disabled
CompileIncludeNodeTree[]
ViewCaching=enabled
CachedViewModes=full;sitemap
ComplexDisplayViewModes=sitemap
CacheThreshold=120

Is there any other information that I should post?

Thanks for your help!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Tony Wood

Tuesday 07 October 2003 3:09:49 pm

Alex,

Can you post the siege command.. without URLs.. this will tell me how many conccurent transaction you where trying to create.

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

Alex Jones

Wednesday 08 October 2003 6:26:32 am

I will have to get the command run from our Sysadmin, but I'm pretty positive that the first set of results above was with 10 concurrent users, and the second was for 100.

Thanks!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Wednesday 08 October 2003 6:41:00 am

Oh, I forgot to mention that we have put eZ Site Copier in place and it seems to be a good solution as well. We have run into a couple of small issues, especially with a custom operator meant to detect the user's browser, but I expect to get past that soon.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Alex Jones

Wednesday 08 October 2003 8:34:01 am

Here are the settings for Siege, I have replaced full paths with 'path_to'.

benchmark = true
concurrent = 100
connection = close
delay = 1
file = /path_to/urls.txt
internet = false
logfile = /path_to/siege.log
logging = true
protocol = HTTP/1.1
show-logfile = true
time = 200S
timeout = 60
verbose = true

commands:

/path_to/sitecopier.sh 40

output

/path_to/cache

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Tony Wood

Wednesday 08 October 2003 2:54:29 pm

Alex,

There something up with your server. I just setup a flat HTML site and ran siege at it... just an image and some HTML css... simple stuff and I get much faster speeds.
I get .10 second response time based on 100 users in siege -uhttp://xxx.com -v -c100 -t1h -l
I'd check your apache/machine setup i am using RH 7.3. I am no expert on BSD but i do know its SMP not as good as Linux... or so I hear, maybe its something to do with that. Just a thought

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

Alex Jones

Thursday 09 October 2003 6:56:19 am

Thanks Tony. I'll pass your feedback to our Sysadmin to see if we can locate any server issues.

I appreciate all of the help,

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>