NSAPI を使用した PHP のスケーラビリティー
次の表は、NSAPI テストを使用した PHP のための Web Server のチューニング設定を示しています。
表 6–14 PHP のための NSAPI プラグイン設定
magnus.conf
|
Init fn="load-modules" shlib="libphp5.so" funcs="php5_init,php5_close,php5_execute"
Init fn="php5_init" errorString="PHP Totally Blew Up!"
|
obj.conf
|
NameTrans fn="pfx2dir" from="/php-nsapi" dir=" path_to_php_script_dir" name="php-nsapi" <Object name="php-nsapi"> ObjectType fn="force-type" type="magnus-internal/x-httpd-php" Service fn=php5_execute </Object>
|
mime.types
|
type=magnus-internal/ws-php exts=php,php3,php4
|
次の表は、NSAPI テストを使用した PHP の結果を示しています。
表 6–15 NSAPI を使用した PHP のスケーラビリティー
コアの数
|
平均スループット (ops/秒)
|
平均応答時間 (ミリ秒)
|
2
|
950
|
105
|
4
|
1846
|
108
|
6
|
2600
|
115
|
次の図は、NSAPI を使用した PHP のスケーラビリティーを示すグラフ表示です。