Install multiple site with cluster

Author Message

SEBBANE Alexandre

Saturday 21 August 2010 3:02:08 pm

hello,

i know that you could install several website on 1 instance and several database . 1 database per siteaccess.

How can we do that with db cluster : the index_cluster don't use ini file.

thank for your answers....

Alex

Paris, France

Jérôme Vieilledent

Sunday 22 August 2010 1:28:40 am

Hi Alex

You can duplicate your index_cluster.php script to index_cluster_mysiteaccess.php for instance. Then, in your Apache VirtualHost, you will just have to edit the cluster redirection :

RewriteRule ^/var/([^/]+/)?storage/images-versioned/.*  /index_cluster_mysiteaccess.php  [L]
RewriteRule ^/var/([^/]+/)?storage/images/.*            /index_cluster_mysiteaccess.php  [L]

Et voilà !

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

Main resources:

Total runtime0.6428 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.0391152.6406
Module start 'layout' 0.00680.0041 740.679739.4766
Module start 'content' 0.01090.6309 780.1563536.8594
Module end 'content' 0.64180.0010 1,317.01568.1406
Script end 0.6427  1,325.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5433160.0002
Check MTime0.00140.2252160.0001
Mysql Total
Database connection0.00130.200710.0013
Mysqli_queries0.596092.7303540.0110
Looping result0.00040.0604520.0000
Template Total0.611495.120.3057
Template load0.00210.331220.0011
Template processing0.609394.788820.3046
Template load and register function0.00010.018810.0001
states
state_id_array0.00100.162410.0010
state_identifier_array0.00070.114520.0004
Override
Cache load0.00170.2638170.0001
Sytem overhead
Fetch class attribute can translate value0.00040.063920.0002
Fetch class attribute name0.00070.114440.0002
XML
Image XML parsing0.00240.378220.0012
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00320.4944230.0001
String conversion0.00000.001940.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.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: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs