高速WordPress AMIの性能

高速WordPress AMIの性能および仕様を紹介します。

 

Apache Bench測定結果

高速WordPress AMIのサーバーイメージで動作するサービスサイトで、Apache Benchを用いて性能測定を行いました。

$ ab -n 10000 -c 100 http://fastpress.jp/
Server SoftwareApache/2.4.6
Server Hostnamefastpress.jp
Server Port80
Document Path/
Document Length15119 bytes
Concurrency Level100
Time taken for tests35.509 seconds
Complete requests10000
Failed requests0
Write errors0
Total transferred154860000 bytes
HTML transferred151190000 bytes
Requests per second281.62 [#/sec] (mean)
Time per request355.086 [ms] (mean)
Time per request3.551 [ms] (mean, across all concurrent requests)
Transfer rate4258.98 [Kbytes/sec] received

※ 検証は m4.xlarge(4vCPU)のサーバーで実施

 

高速WordPress AMIの構成

Apache版

  • Amazon Linux 2
  • Apache2.4
  • MySQL5.7
  • PHP7.2

Nginx版

  • Amazon Linux 2
  • Nginx1.12
  • MySQL5.7
  • PHP7.2
  • PHP-FPM7.2

 

チューニング内容

  • 高性能なAmazon Linux 2
  • 高速なPHP7.2
  • Apache / Nginxのチューニング
  • PHP-FPMの利用(Nginx版)
  • コンテンツのgzip圧縮
  • OPcacheの利用
  • MySQLのクエリーキャッシュ
  • Expiresヘッダによるキャッシュ
  • WordPressの翻訳停止プラグイン
  • tunedによる動的なチューニング
  • カーネルパラメータの調整
  • UnixドメインソケットによるDB通信

Apache版AMIを使ってみる Nginx版AMIを使ってみる