Load Balancing in Amazon EC2 with HAProxy http://agiletesting.blogspot.com/2009/02/load-balancing-in-amazon-ec2-with.html 全体的に ■設定ファイルの書き方 かなり普通な感じの書き方。mod_proxy_balancerの書き方と雰囲気は似てる。というか、普通な感じ。 ■maxconnの値 デフォルトで2000になっている。 それを超えるとキューされる。 25,000くらいがいいと思うよ、とのこと。 ■だいたいの性能 かなりいい。 20,000コネクションくらいのアクセスが来てるとき、ec2のsmallインスタンスでCPU使用率1%くらい。 これ以上のアクセスが来たら、HAProxy以外の部分がボトルネックになってるだろうから、これで十分だよね。 メモ:smallインスタ
Practical IoT Hacking After two long years of hard work it's finally out! Our book on Practical IoT Hacking has been published by No Starch Press. You can learn about how it came to be at Practical IoT Hacking timeline and what writing a technical book like this taught me. You can also find The Definitive Guide to Attacking the Internet of Things on Amazon. -- ithilgore, 1 February 2021 2019 highl
This document discusses using HAProxy to provide high availability for MySQL databases running on Amazon EC2. It describes setting up a MySQL master-master replication configuration across two EC2 instances with HAProxy load balancing between the databases. HAProxy is configured to monitor the MySQL servers and direct reads to an available master while allowing writes to both masters for redundanc
haproxy には起動後に設定ファイルを読み込み直したりする機能がないので、バランス先を追加するなどの変更が無停止ではできない、と思い込んでいたのだけど実は違った、というお話。 実際、同一プロセスで読み込み直すことはできないのだけども、以下のような手法で graceful に再起動することができる。man はちゃんと読みましょう。 # haproxy -f /path/to/haproxy.conf -sf [既に動いているhaproxyのpid]として -sf オプションに pid を渡して起動すると…… haproxy[2] : 起動 haproxy[2] : 既に動いている haproxy[1] に SIGTTOU を送信 haproxy[1] : SIGTTOU を受けると Listen をやめる 新規接続は受け付けない 既に確立している接続はそのまま維持 haproxy[2]
前々から気になっていた、HAProxyを試してみた。 今回は、LinuxとHAProxyを使ってL7ロードバランサとして動かそうと思う。 よくあるロードバランサ製品は高くて手が出ないので、ソフトウェアでなんと かしたいと思い検証。 ソフトウェアのL4だとLVSが有名で、L7だとUltraMonkey-L7とかApacheの モジュールもあったと思う。 最終的には冗長化して、L4 - 7のバランシング、SSL終端として機能させる 予定。とりあえずはインストールと簡単な設定、動作確認から。 CentOS 5.5とHAProxy 1.4.10を使用する。IPは下記のような感じにした。 LBサーバ(HAproxy) → 192.168.0.254 Webサーバ srv01 → 192.168.0.1 Webサーバ srv02 → 192.168.0.2 ----------
Until the time comes when Amazon will offer a load balancing service in their EC2 environment, people are forced to use a software-based load balancing solution. One of the most common out there is HAProxy. I've been looking at it for the past 2 months or so, and recently we started to use it in production here at OpenX. I am very impressed with its performance and capabilities. I'll explore here
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く