We’re getting things ready Loading your experience… This won’t take long.
We’re getting things ready Loading your experience… This won’t take long.
mod_proxy_balancerのretry mod_proxy_balancer(mod_proxy)のretry設定は、 コネクションをプーリングするための、リトライのタイムアウトを秒で 指定します。バックエンドサーバへのコネクションプーリングが失敗した場合は、 タイムアウトの期間が過ぎるまで、そのサーバにリクエストをフォワードしません。 というもので、 BalancerMember http://1.2.3.6:8000 retry=60 loadfactor=10 こんなように書ける。 アプリケーションサーバにデプロイするときに、 httpdの停止 rsync httpdの開始 という順番で行うのが通常だと思うけど、デフォルトのretry間隔が60秒になっているため、httpdを開始してからアクセスがバックエンドに届くには、最大1分間待たなければならない。 バックエンドのサーバ
This is a apache v2.0 authentication module. Based on html form authentication and cookie authentication session. Cookie session are stored in memcache deamon. Can be used has an simple "Single Signe-On" (SSO). All the code source and the bug tracking has migrated to github: https://github.com/ZenProjects/Apache-Authmemcookie-Module All the documentation are here: https://zenprojects.github.io/Apa
[ はじめに | 排他処理 | 共有メモリ | ファイル入出力 | 書式指定 | リクエストの処理 | C++ | デバッグ | 参考文献 ] はじめに このページでは,私が Apache 2.x 向けのモジュール開発の過程で得た Tips について紹介しています. 排他処理 他のプロセス及びスレッドに対して排他処理を行うには apr_global_lock_t が,他のスレッドに対して排他処理を行うには apr_thread_mutex_t や apr_thread_rwlock_t が利用できます. apr_global_mutex_t の使い方 基本的には,次の手順で使用します. post_config ステージ apr_global_mutex_create を使って apr_global_mutex_t を生成. 必要に応じて unixd_set_global_mutex_per
This FAQ is maintained by Kent Fitch from Project Computing. It contains the information I would have wanted to read when I started to write an Apache Filter. A large part of learning about Apache Filters is about understanding the Apache Portable Runtime (APR), the life-cycle of an Apache request and Apache's in-memory data structures. This FAQ touches on those areas, pointing you to specific res
Please note This document refers to the 2.0 version of Apache httpd, which is no longer maintained. Upgrade, and refer to the current version of httpd instead, documented at: Current release version of Apache HTTP Server documentationYou may follow this link to go to the current version of this document. Many of the documents on these Developer pages are lifted from Apache 1.3's documentation. Whi
■ドキュメントキャッシュ機能の見直し メモリキャッシュやディスクキャッシュなど、HTTPコンテンツの動的キャッシュ機能が強化されました。開発バージョン時よりも安定性が向上し、Apache 2.2では実用的なレベルになっています。キャッシュ機能を用いることで、一般的にHTTPサービスの応答性を向上させることができます。 また、Apacheをリバースプロキシサーバとして利用する場合もキャッシュ機能を利用可能です。 ■プロキシ機能によるロードバランシングの実現 プロキシでロードバランス機能を実現するmod_proxy_balancerモジュールが追加されました。HTTPやFTPサービスはもちろん、Apache Tomcatなどのサーブレットコンテナとの通信で使われるAJP13プロトコルのロードバランス機能も提供します。 バランシングの制御は、「リクエスト回数」と「トラフィック量」の2つのアルゴリ
● [Apache] mod_uploader Rails の Upload progress 問題を調べているうちに mod_uploader という Apache ライブラリを発見しました。公式サイト等にある特徴をまとめると Apache のモジュールとして C++ で記述されているので,Perl や PHP で作られた物に比べて高速. (表示は Pentium4 3G で 2000 req/sec さばけます) ファイルのアップロードおよび,ダウンロード以外では Disk IO が発生しないので HDD に優しい. 独自の簡易スクリプト言語によるテンプレート機能があるので,再コンパイル無しで手軽に見た目を変更可能. メモリを圧迫せずに巨大なファイルのアップロードが可能. Upload progress 表示が可能. 静止画、動画のサムネイル表示が可能. (それぞれ Image
mod_uploaderの作者さんがまとめている開発Tips(http://acapulco.dyndns.org/mod_uploader/module_dev.htm)にあったデバッグ方法を試してみました。 Valgrind http://valgrind.org/ Valgrindはメモリ周りのバグや、スレッド系のバグを自動的に検出してくれるツールです。 インストールは ./configure make make install で完了です。 a.out(-gオプションでコンパイルしてください)のメモリ周りのチェックを行う場合は valgrind --leak-check=yes a.out とやると、こんな結果が出力されてメモリリークしている場所がずばり表示されます。 ==19182== 40 bytes in 1 blocks are definitely lost in los
Apache 2.2.0 mod_proxy_balancer hacks of failure. mod_proxy_balancerを拡張して動的にごにょごにょしてやろうと思ったのに出来なかったからコアダンプ 基本的にLinuxとかの環境ではpreforkしてApacheが動いているはずですが mod_proxy_balancerの実装がちぐはぐだった。 主なデータとして、balancer://スキームを取り扱っているproxy_balancerと 各クラスタの面倒を見ているproxy_workerってのがあるのさ。 で、バランサ管理画面でApacheの起動中に動的に設定変更出来る機能があるんだけど proxy_balancerで管理しているstickysessionとか、リクエスト回数/転送サイズでバランシングアルゴリズムを切り替えるフラグを管理してるのね。 httpd.confを読
Apache 2.2.0 のロードバランス機能(mod_proxy_balancer)を使いこなす Apache 2.2がでました。 mod_dbdとか、mod_proxy_balancerとか気になる新機能てんこ盛りです。 ひげぽんさんの所に 誰か入れてみた人いますか? と有ったのでmod_proxy_balancerを試してみました。 超簡単でした mod_proxyとmod_proxy_balancerを参考にしました。 既に日本語ドキュメント完備! 以下から駆け足で、またセキュリティ的によろしくない設定例が多々あります。 とりあえずこんな設定を仕込んでみました ProxyPass /lb balancer://TEST stickysession=sesid <Proxy balancer://TEST> #1 BalancerMember http://i.yappo.jp lo
Apache 2.2がリリースされました。 そして、mod_proxy_balancerというものが。 This module requires the service of mod_proxy. It provides load balancing support for HTTP, FTP and AJP13 protocols Thus, in order to get the ability of load balancing, mod_proxy and mod_proxy_balancer have to be present in the server. mod_proxyの拡張機能でロードバランシングをしてくれるらしい ロードバランスのスケジューラアルゴリズムが2種類ある。 リクエスト数で重みづけスケジューラ トラフィック量での重みづけスケジューラ mod_statusを併
最近覗き系が多い気がしますが、解決したのでまとめておきます。 まずはソースから、デバッグ用にモジュールを1ついい加減に作ってしまいました。 static int outputfilter(ap_filter_t* f, apr_bucket_brigade* bb) { request_rec* r = f->r; apr_bucket* backet; apr_size_t length = 0; apr_status_t read_status; for (backet = APR_BRIGADE_FIRST(bb); backet != APR_BRIGADE_SENTINEL(bb); backet = APR_BUCKET_NEXT(backet)) { const char *str; if (APR_BUCKET_IS_EOS(backet)) { return ap_pas
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く