高速WordPress AMIの性能および仕様を紹介します。
Apache Bench測定結果
高速WordPress AMIのサーバーイメージで動作するサービスサイトで、Apache Benchを用いて性能測定を行いました。
$ ab -n 10000 -c 100 http://fastpress.jp/
| Server Software | Apache/2.4.6 |
|---|---|
| Server Hostname | fastpress.jp |
| Server Port | 80 |
| Document Path | / |
| Document Length | 15119 bytes |
| Concurrency Level | 100 |
| Time taken for tests | 35.509 seconds |
| Complete requests | 10000 |
| Failed requests | 0 |
| Write errors | 0 |
| Total transferred | 154860000 bytes |
| HTML transferred | 151190000 bytes |
| Requests per second | 281.62 [#/sec] (mean) |
| Time per request | 355.086 [ms] (mean) |
| Time per request | 3.551 [ms] (mean, across all concurrent requests) |
| Transfer rate | 4258.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通信