2009-12-20 25 views
1

有没有人有使用Drupal的多站点配置运行几个单独的Drupal站点(在一台主机上)的性能数据?Drupal性能:在单个主机上单独配置网站还是多站点配置?

我面临一个选择:使用完全独立的代码库配置多个Apache虚拟主机,与网站目录sites/www.example.com,sites/www.example1.com等的Drupal核心共享多站点实例。[In一个多站点配置,仍然有Apache虚拟主机,但是它们的所有DocumentRoot条目都指向了多站点Drupal目录。]我假设多站点方法使用Drupal代码来执行虚拟主机分派,我想这比Apache让它更慢。另一方面,我认为多站点配置可能具有缓存优势。

性能比较数据有人吗?

+0

我认为这是一个非常有趣的问题。不幸的是我没有答案。你问过drupal.org上的好人吗? – FlorianH 2009-12-21 18:18:02

+0

我看了一大堆在drupal.org上的贴子。很多很好的信息,但不幸的是没有找到这个问题的答案。 – keithm 2010-01-10 03:51:44

回答

2

基思,

,如果你有一个站点的设置,那么可能是你这下/网站/默认。从settings.php这个文件,我们看到的Drupal会寻找的settings.php在9个地方则默认为网站/默认/ settings.php这个之前,如下面的代码片段:

* The configuration directory will be discovered by stripping the 
* website's hostname from left to right and pathname from right to 
* left. The first configuration file found will be used and any 
* others will be ignored. If no other configuration file is found 
* then the default configuration file at 'sites/default' will be used. 
* 
* For example, for a fictitious site installed at 
* http://www.drupal.org/mysite/test/, the 'settings.php' 
* is searched in the following directories: 
* 
* 1. sites/www.drupal.org.mysite.test 
* 2. sites/drupal.org.mysite.test 
* 3. sites/org.mysite.test 
* 
* 4. sites/www.drupal.org.mysite 
* 5. sites/drupal.org.mysite 
* 6. sites/org.mysite 
* 
* 7. sites/www.drupal.org 
* 8. sites/drupal.org 
* 9. sites/org 
* 
* 10. sites/default 

添加另一个单网站设置仍然会保持这9个检查,并将在其上添加apache虚拟化,所以我不明白这可能会更快。另外,如果你最终需要管理很多站点,有几个drupal实例会不必要地增加你的管理开销。如果你打算有很多Drupal站点,我建议你看看hosting project,这是aegir hosting system的一部分。维护这个项目的人们花费了大量的精力来简单地维护和部署大量的drupal站点。

+1

即使没有性能数据,也是有用的答案。 – keithm 2010-01-10 03:50:27