<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>15.9. 負荷分散のルール</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta name="generator" content="publican 2.8" /><meta name="package" content="Apache_CloudStack-Admin_Guide-4.1.0-ja-JP-1-" /><script type="text/javascript" src="../../../../../toc.js"></script><script type="text/javascript">
              addID('Apache_CloudStack');
              
	      addID('Apache_CloudStack.4.1.0');
              
              addID('Apache_CloudStack.4.1.0.books');
	      addID('Apache_CloudStack.4.1.0.Admin_Guide');
              </script><link rel="home" href="index.html" title="CloudStack 管理者ガイド" /><link rel="up" href="networks.html" title="第15章 ネットワークとトラフィックの管理" /><link rel="prev" href="external-firewalls-and-load-balancers.html" title="15.8. External Firewalls and Load Balancers" /><link rel="next" href="guest-ip-ranges.html" title="15.10. Guest IP Ranges" /></head><body class="toc_embeded "><div id="tocdiv" class="toc"><iframe id="tocframe" class="toc" src="../../../../toc.html">This is an iframe, to view it upgrade your browser or enable iframe display.</iframe></div><p id="title"><a class="left" href="http://cloudstack.apache.org"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="http://cloudstack.apache.org/docs"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="external-firewalls-and-load-balancers.html"><strong>戻る</strong></a></li><li class="next"><a accesskey="n" href="guest-ip-ranges.html"><strong>次へ</strong></a></li></ul><div xml:lang="ja-JP" class="section" id="load-balancer-rules" lang="ja-JP"><div class="titlepage"><div><div><h2 class="title" id="load-balancer-rules">15.9. 負荷分散のルール</h2></div></div></div><div class="para">
		CloudStack ユーザーもしくは管理者はパブリックIPから1つもしくは複数の仮想マシンへの受信トラフィックの分散のため負荷分散ルールを作成するかもしれません。ユーザーは特定のアルゴリズムに基づきルールを作成し仮想マシンのセットに対して割り当てます。
	</div><div class="note"><div class="admonition_header"><h2>注記</h2></div><div class="admonition"><div class="para">
			もし、負荷分散ルールを作成する際 NetScaler のような外部デバイスを含んだネットワークサービスオファリングを利用していた場合、また後にネットワークサービスオファリングを CloudStack の仮想ルーターを利用するよう変更を加える場合、継続して機能を利用するためには全ての負荷分散ルールに対しファイアウォールルールを追加しなければなりません。
		</div></div></div><div class="para">
	</div><div xml:lang="ja-JP" class="section" id="add-load-balancer-rule" lang="ja-JP"><div class="titlepage"><div><div><h3 class="title" id="add-load-balancer-rule">15.9.1. ロードバランサールールの追加</h3></div></div></div><div class="orderedlist"><ol><li class="listitem"><div class="para">
				管理者もしくはエンドユーザーとして CloudStack UI にログインします。
			</div></li><li class="listitem"><div class="para">
				左側のナビゲーションから [Network] を選択します。
			</div></li><li class="listitem"><div class="para">
				トラフィックの負荷分散をしたいしたいネットワークの名前をクリックします。
			</div></li><li class="listitem"><div class="para">
				[View IP Addresses] をクリックします。
			</div></li><li class="listitem"><div class="para">
				ルールを作成したい IP アドレスをクリックし、[Configuration] タブをクリックします。
			</div></li><li class="listitem"><div class="para">
				構成図のロードバランサーをクリックし、[View All] をクリックします。
			</div><div class="para">
				基本ゾーンでは IP アドレスを選択せずに負荷分散ルールを作成することもできます。 CloudStack は負荷分散ルールの作成時に内部的に IP を割り当て、ルール作成時に割り当てられた IP アドレスがリスト表示されます。
			</div><div class="para">
				ネットワークの名前を選択し、[Add Load Balancer] タブをクリックします。詳細は <a class="xref" href="load-balancer-rules.html#config-lb">7</a> を参照してください。
			</div></li><li class="listitem" id="config-lb"><div class="para">
				次の項目を入力します。
			</div><div class="itemizedlist"><ul><li class="listitem"><div class="para">
						<span class="bold bold"><strong>Name : </strong></span> 負荷分散ルールの名前です。
					</div></li><li class="listitem"><div class="para">
						<span class="bold bold"><strong>Public Port : </strong></span> 負荷分散のための入力トラフィックを受信するポート番号です。
					</div></li><li class="listitem"><div class="para">
						<span class="bold bold"><strong>Private Port : </strong></span> 仮想マシンがトラフィックを受信するポート番号です。
					</div></li><li class="listitem"><div class="para">
						<span class="bold bold"><strong>Algorithm : </strong></span> CloudStack で利用したい負荷分散アルゴリズムを選択します。 CloudStack では様々なアルゴリズムをサポートしています。 これらのアルゴリズムに関して詳細を知りたい場合はインターネット上でより多くの情報を取得できます。
					</div></li><li class="listitem"><div class="para">
						<span class="bold bold"><strong>Stickiness : </strong></span> (オプション) [Configure] をクリックし、スティックネスポリシーを選択します。詳細は「Sticky Session Policies for Load Balancer Rules」を参照してください。
					</div></li><li class="listitem"><div class="para">
						<span class="bold bold"><strong>AutoScale</strong></span>: [Configure] をクリックし <a class="xref" href="external-firewalls-and-load-balancers.html#autoscale">「Configuring AutoScale」</a> に従ってオートスケールの設定を完了します。
					</div></li></ul></div></li><li class="listitem"><div class="para">
				[Add VMs] をクリックした後入力トラフィックの負荷を分散する2つ以上の仮想マシンを選択し、[Apply] をクリックします。
			</div><div class="para">
				新しい負荷分散ルールがリスト表示され、IP アドレスに対する負荷分散ルールを引き続き追加することができます。
			</div></li></ol></div></div><div xml:lang="ja-JP" class="section" id="sticky-session-policies-for-lb-rules" lang="ja-JP"><div class="titlepage"><div><div><h3 class="title" id="sticky-session-policies-for-lb-rules">15.9.2. Sticky Session Policies for Load Balancer Rules</h3></div></div></div><div class="para">
		Sticky sessions are used in Web-based applications to ensure continued availability of information across the multiple requests in a user's session. For example, if a shopper is filling a cart, you need to remember what has been purchased so far. The concept of "stickiness" is also referred to as persistence or maintaining state.
	</div><div class="para">
		Any load balancer rule defined in CloudStack can have a stickiness policy. The policy consists of a name, stickiness method, and parameters. The parameters are name-value pairs or flags, which are defined by the load balancer vendor. The stickiness method could be load balancer-generated cookie, application-generated cookie, or source-based. In the source-based method, the source IP address is used to identify the user and locate the user’s stored data. In the other methods, cookies are used. The cookie generated by the load balancer or application is included in request and response URLs to create persistence. The cookie name can be specified by the administrator or automatically generated. A variety of options are provided to control the exact behavior of cookies, such as how they are generated and whether they are cached.
	</div><div class="para">
		For the most up to date list of available stickiness methods, see the CloudStack UI or call listNetworks and check the SupportedStickinessMethods capability.
	</div></div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="external-firewalls-and-load-balancers.html"><strong>戻る</strong>15.8. External Firewalls and Load Balancers</a></li><li class="up"><a accesskey="u" href="#"><strong>上に戻る</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>ホーム</strong></a></li><li class="next"><a accesskey="n" href="guest-ip-ranges.html"><strong>次へ</strong>15.10. Guest IP Ranges</a></li></ul></body></html>
