nginx 1.2.9 sticky module
http://blog.bbtune.com/archives/2412/nginx-exchange-header
前回 1.2.7で使っていたので sticky も追加して1.2.9で作り直す。
やり方は前回と同じ。
# nginx.spec
Version: 1.2.9
に変更
SOURCE以下に 1.2.9.tar.gzを配置
https://code.google.com/p/nginx-sticky-module/downloads/list
から
1.1をダウンロードして展開
# nginx.spec
–add-module=/path/to/headers-more-nginx-module-0.25 \
–add-module=/path/to/nginx-sticky-module-1.1 \
# デバッグ用も作るので2カ所
を追加
で、
rpmbuild -bb nginx.spec
書き込み完了: /root/rpmbuild/RPMS/x86_64/nginx-1.2.9-1.el6.ngx.x86_64.rpm
書き込み完了: /root/rpmbuild/RPMS/x86_64/nginx-debug-1.2.9-1.el6.ngx.x86_64.rpm
書き込み完了: /root/rpmbuild/RPMS/x86_64/nginx-debuginfo-1.2.9-1.el6.ngx.x86_64.rpm
#### OKなので新しく入れ替えて
uptreamで
* stickyで振り分け
* バックエンドへのkeepalive
を確認
- Prev pfsockopenでkeepaliveでkyototycoon
- Next nginx sticky
- Prev nginx get parameterをrewrite
- Next nginx sticky