Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

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)

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away