値の範囲 : [1, 50] (秒)。 重要 Timeout の値が Interval よりも小さい場合、Timeout は無効であり、Interval の値がタイムアウト時間とみなされます。
</td>
</tr>
<tr>
<td class="entry colsep-1 rowsep-1"> UnhealthyThreshold </td>
<td class="entry colsep-1 rowsep-1"> integer </td>
<td class="entry colsep-1 rowsep-1"> 省略可能 </td>
<td class="entry colsep-1 rowsep-1"> 不可 </td>
<td class="entry colsep-1 rowsep-1"> ヘルスチェックが失敗したと判断する場合に使用されるしきい値。 この値は、バックエンドサーバーのヘルスチェックステータスを「成功」から「失敗」に変更する場合に必要な、連続して失敗したヘルスチェックの数を示します。
</td>
<td class="entry colsep-1 rowsep-1"> 値の範囲 : [1, 10] </td>
</tr>
<tr>
<td class="entry colsep-1 rowsep-1"> Port </td>
<td class="entry colsep-1 rowsep-1"> integer </td>
<td class="entry colsep-1 rowsep-1"> 省略可能 </td>
<td class="entry colsep-1 rowsep-1"> 不可 </td>
<td class="entry colsep-1 rowsep-1"> ヘルスチェックに使用されるポート </td>
<td class="entry colsep-1 rowsep-1"> 値の範囲 : [0, 65535] </td>
</tr>
</tbody> </table>
</section>
<section class="section"> <h2 class="title sectiontitle" id="h2-url-5">Persistence の構文</h2>
<pre class="pre codeblock language-json"><code>"Persistence" : { "PersistenceTimeout" : Integer, "CookieTimeout" : Integer, "XForwardedFor" : String, "Cookie" : String, "StickySession" : String, "StickySessionType" : String,
}
<section class="section"> <h2 class="title sectiontitle" id="h2-url-6">Persistence のプロパティ</h2>
<table class="table"> <caption></caption> <colgroup> <col style="width:16.666666666666664%"> <col style="width:16.666666666666664%"> <col style="width:16.666666666666664%"> <col style="width:16.666666666666664%"> <col style="width:16.666666666666664%"> <col style="width:16.666666666666664%"> </colgroup> <thead class="thead">
<tr>
<th class="entry colsep-1 rowsep-1" id="concept-51202-zh-entry-127">名前</th>
<th class="entry colsep-1 rowsep-1" id="concept-51202-zh-entry-128">データ型</th>
<th class="entry colsep-1 rowsep-1" id="concept-51202-zh-entry-129">必須/省略可能</th>
<th class="entry colsep-1 rowsep-1" id="concept-51202-zh-entry-130">更新可/不可</th>
<th class="entry colsep-1 rowsep-1" id="concept-51202-zh-entry-131">説明</th>
<th class="entry colsep-1 rowsep-1" id="concept-51202-zh-entry-132">制約</th>
</tr>
</thead> <tbody class="tbody">
<tr>
<td class="entry colsep-1 rowsep-1"> StickySession </td>
<td class="entry colsep-1 rowsep-1"> String </td>
<td class="entry colsep-1 rowsep-1"> 必須 </td>
<td class="entry colsep-1 rowsep-1"> 不可 </td>
<td class="entry colsep-1 rowsep-1"> セッション維持の有効化/無効化 </td>
<td class="entry colsep-1 rowsep-1"> 値のオプション : on および off </td>
</tr>
<tr>
<td class="entry colsep-1 rowsep-1"> PersistenceTimeout </td>
<td class="entry colsep-1 rowsep-1"> integer </td>
<td class="entry colsep-1 rowsep-1"> 省略可能 </td>
<td class="entry colsep-1 rowsep-1"> いいえ </td>
<td class="entry colsep-1 rowsep-1"> 接続持続タイムアウト時間 </td>
<td class="entry colsep-1 rowsep-1"> 値の範囲 : [0, 1000] (秒)。 デフォルト値 : 0。接続の持続性が無効になっていることを示します。 </td>
</tr>
<tr>
<td class="entry colsep-1 rowsep-1"> CookieTimeout </td>
<td class="entry colsep-1 rowsep-1"> integer </td>
<td class="entry colsep-1 rowsep-1"> 省略可能 </td>
<td class="entry colsep-1 rowsep-1"> 不可 </td>
<td class="entry colsep-1 rowsep-1"> Cookie のタイムアウト </td>
<td class="entry colsep-1 rowsep-1">
<p class="p"> このパラメーターは、StickySession が on、StickySessionType が insert のときに設定する必要があります。 それ以外の場合、このパラメーターは無視されます。</p>
<p class="p"> 値の範囲 : [1, 86400] (秒)。</p>
</td>
</tr>
<tr>
<td class="entry colsep-1 rowsep-1"> XForwardedFor </td>
<td class="entry colsep-1 rowsep-1"> String </td>
<td class="entry colsep-1 rowsep-1"> 省略可能 </td>
<td class="entry colsep-1 rowsep-1"> 不可 </td>
<td class="entry colsep-1 rowsep-1"> 訪問者の実際の IP アドレスを取得するため X-Forwarded-For レコードを使用するかどうか </td>
<td class="entry colsep-1 rowsep-1"> 値のオプション : on および off。 デフォルト値 : on。 </td>
</tr>
<tr>
<td class="entry colsep-1 rowsep-1"> Cookie </td>
<td class="entry colsep-1 rowsep-1"> String </td>
<td class="entry colsep-1 rowsep-1"> 省略可能 </td>
<td class="entry colsep-1 rowsep-1"> 不可 </td>
<td class="entry colsep-1 rowsep-1"> サーバーに設定された Cookie </td>
<td class="entry colsep-1 rowsep-1">
<p class="p"> このパラメーターは、StickySession が on で StickySessionType が server のときに設定する必要があります。 それ以外の場合、このパラメーターは無視されます。</p>
<p class="p">このパラメーター値は 1- 200 文字の文字列で、RFC 2965 規格に準拠しています。 含められるのは ASCII の英字と数字だけです。 コンマ (,)、セミコロン (;)、またはスペースを含めることはできません。また、先頭文字をドル記号 ($) にすることはできません。 </p>
</td>
</tr>
<tr>
<td class="entry colsep-1 rowsep-1"> StickySessionType </td>
<td class="entry colsep-1 rowsep-1"> String </td>
<td class="entry colsep-1 rowsep-1"> 省略可能 </td>
<td class="entry colsep-1 rowsep-1"> 不可 </td>
<td class="entry colsep-1 rowsep-1"> Cookie の処理方法 </td>
<td class="entry colsep-1 rowsep-1">
<p class="p">このパラメーターは StickySession が on に設定されているときに設定する必要があります。 StickySession が off の場合、このパラメーターは無視されます。</p>
<p class="p">値のオプション : insert および server</p> insert は、Server Load Balancer インスタンスによる挿入を示します。server は、Server Load Balancer インスタンスによるバックエンドサーバーからの読み取りを示します。
</td>
</tr>
</tbody> </table>
</section>
<section class="section" id="section-zrf-qcz-lfb"> <h2 class="title sectiontitle" id="h2-url-7">レスポンス値</h2>
<p class="p"><strong class="ph b">Fn::GetAtt</strong></p>
<ul class="ul" id="ul-rnm-qcz-lfb">
<li class="li">LoadBalancerId : Server Load Balancer インスタンスの一意の ID</li>
<li class="li">ListenerPortsAndProtocol : Server Load Balancer インスタンスのフロントエンドポートとプロトコル (配列形式)</li>
</ul>
</section>
<section class="section" id="section-c4m-tcz-lfb"> <h2 class="title sectiontitle" id="h2-url-8">コーディング例</h2>
<pre class="pre codeblock language-json"><code>{ "ROSTemplateFormatVersion": "2015-09-01", "Resources": { "LoadBalancer": { "Type": "ALIYUN::SLB::LoadBalancer", "Properties": { "LoadBalancerName": "createdByHeat", "AddressType": "internet", "InternetChargeType": "paybybandwidth" } }, "CreateListener": { "Type": "ALIYUN::SLB::Listener", "Properties": { "LoadBalancerId": {"Ref": "LoadBalancer"}, "ListenerPort": "8094", "BackendServerPort": 8080, "Bandwidth": 1, "Protocol": "http", "HealthCheck": { "HealthyThreshold": 3, "UnhealthyThreshold": 3, "Interval": 2, "Timeout": 5, "HttpCode": "http_2xx,http_3xx,http_4xx,http_5xx" }, "Scheduler": "wrr", "Persistence": { "PersistenceTimeout": 1, "XForwardedFor": 1, "StickySession": 1, "StickySessionType": 1, "CookieTimeout": 0, "Cookie": 1 } } } }, "Outputs": { "LoadBalanceDetails": { "Value" : {"Fn::GetAtt": ["LoadBalancer", "LoadBalancerId"]} }
}}
</div>
</article> </main>
|