2009-12-20 24 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