There’s a new application server on theblock forRubyists -NGINX Unit. As you could probably guess by the name,it’s a project ofNGINX Inc., the for-profit open-source company that owns theNGINX web server. In fall of 2017, they announced theNGINX Unit project.It’s essentially an application server designed to replace all of the various application servers used withNGINX. InRuby’s case, th

2012-05-03 さくらVPSがリニューアルしたので、この日記も新しいサーバに引っ越した。ついでに、サーバの構成も変えてみた。 これまで … Apache2 + FastCGI これから …Nginx + Unicorn Unicornまで持ち出すのはオーバースペックな気もするけど、面白いから、いい。 インストールNginx … OSをUbuntu (2012.04 LTS) にしたので apt-getnginx でインストールRuby … rbenv +ruby-build で 1.9.3 をインストール Unicorn … rbenv環境にてgem install unicorn tDiary …githubからtdiary-coreとtdiary-contribを取得 サイト構成 ドキュメントルートは /var/www/www.machu.jp に設定し、トップページ
nginx と thinの組み合わせが速いらしいので変更してみることにした。 現在運用しているのはRailsアプリ x 2 Sinatraアプリ x1 Webdav (git) webdavについては別途書くとしてとりあえずrailsアプリとSinatraアプリをthinに。リバースプロキシをnginxにしてみる。 ちなみに環境はCentOS 4.6 以下作業ログnginxのインストール $sudo su - # cd /usr/local/src # wget http://nginx.org/download/nginx-0.7.65.tar.gz # yum installpcre-devel zlib-devel openssl-devel # tar -zxvfnginx-0.7.65.tar.gz # cdnginx-0.7.65 // configure の参考
■ [ruby] 大規模Railsサイトのための新しいHTTPサーバ、Unicorngithubの中の人が、ブログで「Unicorn使い始めて一ヶ月くらい経つけどいい感じだよ」と書いています。 適当に要点だけ拾ってみました。 Unicornって何よ? UnicornはRubyのためのHTTPサーバ。MongrelやThinのようなものだけど、全く違う設計と思想を持っている ありがちな構成 [mongrel] [mongrel] .. [nginx] -> [haproxy] -> [mongrel] [mongrel] .. [mongrel] [mongrel] .. 問題点: あるactionの処理に60秒以上かかったとき、Mongrelが当該スレッドをkillしようとして固まることがある メモリが一定量を超えたときMongrelを再起動するのが遅い。 デプロイ時に9個のmongre

1リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く