nginx upstream keepalive

upstream quadrangular {
sticky name=rid path=/ expires=24h;
server 000.142:30301;
server 000.29:30301;
keepalive 32;
}

こうなってるとき

http://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive

全部の合計ではなくて一台毎の数なので、workerが裁ける数に抑えないさいと。

メモリー1G使える場合 16M/processで利用する場合
php-fpmの設定をstaticでmax 64にしたら keepalive 64にする感じで。

1処理100msecで何かしても 128*10, 1280qps行けるので。安いVPSでもかなり使えます。

This entry was posted on 土曜日, 2月 1st, 2014 at 12:02 PM and is filed under nginx. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。