LoginSignup
1
1

More than 5 years have passed since last update.

h2oでロードバランシングする

Last updated at Posted at 2018-09-21

h2o version 2.2.5

以下の対応をすると、hostname(e.g. isucon)が192.168.33.[1-3]のどれかにを名前解決されプロキシーされる

proxy.reverse.url にバランシングするhostnameを設定する

/etc/h2o/h2o.conf

proxy.reverse.url: http://isucon:8080/

/etc/host.confにmulti onを設定する

/etc/host.conf
multi on

/etc/hostsに同一ホスト(isucon)・別IPの設定を追記する

192.168.33.1 isucon
192.168.33.2 isucon
192.168.33.3 isucon

参考URL

If you want load balancing multiple backends, replace 127.0.0.1 with hostname which returns IP addresses via DNS or /etc/hosts.

[proxy] load balancing support (round-robin, least-conn) #1277 #1361 (Justin Zhu)

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1