Mais conteúdo relacionado
Semelhante a ngx_http_groonga - 全文検索nginx (20)
Mais de Kouhei Sutou (20)
ngx_http_groonga - 全文検索nginx
- 7. ngx_http_groonga 全文検索nginx Powered by Rabbit 2.1.9
速度:スループット
0
2000
4000
6000
8000
10000
12000
14000
1 2 3 4 5 6 7 8 16 32
N CPUs = 8
requests/sec
N connections
1 worker 4 workers 8 workers
ワーカー数を増やすとCPUコア数までスケール
- 8. ngx_http_groonga 全文検索nginx Powered by Rabbit 2.1.9
速度:スループット
0
2000
4000
6000
8000
10000
12000
14000
1 2 3 4 5 6 7 8 16 32
N workers = 8 (= N CPUs)
requests/sec
N connections
No keep-alive With keep-alive
クライアントがkeep-aliveを使うとさらにスケール
- 10. ngx_http_groonga 全文検索nginx Powered by Rabbit 2.1.9
速さの理由
本物の全文検索エンジンを組込
→1リクエストの処理が速い
(しかも豊富な機能)
それもnginxのよさを殺さずに
例:マルチプロセスでスケール
例:性能向上用のHTTPの機能を利用
(keep-alive、レスポンス圧縮など)
例:I/O多重化(同時接続数の増加に対応)
- 20. ngx_http_groonga 全文検索nginx Powered by Rabbit 2.1.9
全文検索nginx
nginx + Groonga
= groonga-httpd:Groongaパッケージに含まれている
nginxが全文検索エンジンに!
nginxのモジュール機能で実装
モジュールを作って
nginxと共存しよう!