1

A while back we were transferring our reasonably popular forum to a new dedicated server (with the same host), and we noticed something weird. At first we used the new server to host just the database as this was the biggest issue. Then later we transferred the forum files and changed the dns for the domain.

When we look back at the bandwidth used we see this for the bytes sent by the server:

database use: 100k/sec  
whole forum use: 25k/sec  

Note: bytes received by the server stayed very low throughout.

So is it normal for a forum database to use 4 times more network traffic then the server actually sends back to the user? It sounds very inefficient to me, like requesting much more than what is needed from the database, but this is the latest version of vBulletin we're talking about here.

4

4 に答える 4

3

vBulletin は、Web サーバーとデータベースの間で膨大な量のトラフィックを使用することが知られています。サーバー間の専用 Gbit-NIC で交差した cat6 イーサネット ケーブルを実行することをお勧めします。

実際にクライアントに提示するよりも多くのデータを選択するのは、設計が悪いと言えます (おそらく、データベースよりもアプリケーション層でより多くのロジックを実行するため)。

したがって、vBulletin では正常ですが、他のほとんどのソフトウェア ソリューションでは正常ではありません。

この問題についてグーグルで検索すると、同じ問題を抱えている人がたくさんいると思います。

例: http://www.vbulletin.org/forum/archive/index.php/t-111191.html

ホスティングが帯域幅を正しく測定していない場合、膨大な量の内部トラフィックに対しても支払うことになる可能性があります。クールではありません :)

于 2009-03-27T11:30:37.703 に答える
1

MySQLがフラットファイルであるかのように扱われ、データロジックがSQLではなくPHPにあるシナリオのように聞こえます。

于 2009-03-27T11:40:30.627 に答える
0

非常に非効率的です。適切に記述された SQL は、必要なデータを正確に返す必要があり、そのような転送のプロトコルは非常に効率的に設計されています。その後、アプリは HTML、javascript、ビットマップなどを追加するため、データベースと比較して少なくとも 2 倍のトラフィックを生成する必要があります。

于 2009-03-27T11:34:28.503 に答える
0

データベースが UTF-16 を返し、UTF-8 ページを表示している可能性がありますか?

于 2009-03-27T11:36:23.320 に答える