Pike 2.0 版本释出,主要优化了快取的效能以及应用的配置及管理。
HTTP快取服务,提供高效简单的HTTP快取服务,类似于varnish但配置更简单。
主要特性
标准化的基于HTTP头Cache-Control快取控制界面化的配置,简单易用智慧的压缩方式,根据客户端选择br或者gzip应用配置可储存至etcd中,非常方便横向扩充套件界面化的快取管理,可实时检视当前系统快取以及强制手工清除效能
测试机器:8核 8GB内存,测试环境有限,wrk与测试程式均在同一机器上执行
可快取的界面,gzip(2436字节),原资料9286字节
wrk -c1000 -t10 -d1m -H \'Accept-Encoding: gzip, deflate\' --latency \'http://127.0.0.1:3005/chapters\'
Running 1m test @ http://127.0.0.1:3005/chapters
10 threads and 1000 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 23.90ms 47.63ms 1.23s 97.84%
Req/Sec 5.16k 595.36 9.68k 76.77%
Latency Distribution
50% 16.88ms
75% 23.88ms
90% 38.70ms
99% 94.31ms
3081367 requests in 1.00m, 7.73GB read
Requests/sec: 51276.94
Transfer/sec: 131.68MB
可快取的界面,br(1958字节),原资料9286字节
wrk -c1000 -t10 -d1m -H \'Accept-Encoding: br\' --latency \'http://127.0.0.1:3005/chapters\'
Running 1m test @ http://127.0.0.1:3005/chapters
10 threads and 1000 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 21.63ms 27.32ms 1.04s 94.50%
Req/Sec 5.18k 534.52 11.17k 72.66%
Latency Distribution
50% 16.77ms
75% 23.72ms
90% 37.78ms
99% 80.60ms
3094104 requests in 1.00m, 6.38GB read
Requests/sec: 51480.91
Transfer/sec: 108.63MB