SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
25.
24
振分けアルゴリズム
同一グループに属するリアルサーバ群
に対して、振分け先をどの様に決定する
か
Round Robin
Least Connection
その他の振分けアルゴリズム
Priority
26.
25
Round Robin
複数のリアルサーバから次のセッションをどこに振分けるかを
決める方式のひとつとしてRound Robin (RR)がある。
RRでは一定の順番でセッションを割り振っていく。
リアルサーバ群
1
1
2
2
3
3
4
4
5
5
A,B,C,A,B,C…
の順にセッションを振分けるケース
A B C
27.
26
Least Connection
複数のリアルサーバから次のセッションをどこに振分けるかを
決める方式のひとつとしてLeast Connectionがある。
Least Connectionでは同時接続数が最も少ないリアルサーバに振分
けを行う。
リアルサーバ群
最も同時接続数が少ないAに振分け
A B C
同時接続数 50 55 55
28.
27
その他の振分けアルゴリズム
サーバ毎に重み付けを行い、振分けるセッショ
ン数をリアルサーバによって変えるRound
Robin
左の例ではA,A,B,C,A,A,B,C…となる
Weighted RR
Weight 2 1 1::
A B C
ヘルスチェックによる遅延時間等をパラメータ
として最も負荷が低いと思われるサーバに振
分ける
左の例ではRTTが短いBが選択される
ヘルスチェックとの組合せ
RTT 5ms 3ms 5ms
A B C