2016-05-29 3 views
0

REST API経由で自動拡張を設定するか、ポリシー設定がファイルの場所から選択されていることを確認してください。ここで私が設定する方法は、UIを使用する方法だけです。 REST APIでは、policyTriggersは定義されていないため、どのファイルベースの設定でも設定する方法はありません。Bluemixのオートスケーリング用REST APIにはpolicyTriggersが定義されていませんか?

答えて

0

ドキュメントサイトがメンテナンス中で、BlueMix自動スケーリングREST APIが使用している情報要素の定義が不足しているようです。 PolicyTriggers(JSON形式)以下の項目を含むPolicyTriggerの配列です:オートスケーリングCLI(https://console.ng.bluemix.net/docs/cli/plugins/auto-scaling/index.html)を使用している ポリシーを作成するには== ==

   policyTriggers - List<Trigger> - Required - Trigger setting for this policy, each trigger is defined as below 
       metricType    - String - Required - enumerated type for this trigger, for Java application, they are: JVMHeapUsage, Memory, Throughput, ResponseTime. For other app, only Memory is available. 
       statWindow    - int - Optional - interval to calculate statistics in seconds 
       breachDuration   - int - Optional - breach duration in seconds is divided by the periodicity of the metric to determine the number of data points that will result in a scaling event 
       lowerThreshold   - int - Optional - lower threshold that will trigger a scaling event, usually scaling-in, for JVMHeapUsage and Memory it's percentage, for Throughput, it's request per second and for ResponseTime, it's milliseconds 
       upperThreshold   - int - Optional - upper threshold that will trigger a scaling event, usually scaling-out. for JVMHeapUsage and Memory it's percentage, for Throughput, it's request per second and for ResponseTime, it's milliseconds 
       instanceStepCountDown - int - Optional - number of instances to reduce per scaling-in action 
       instanceStepCountUp - int - Optional - number of instances to increase per scaling-out action 
       stepDownCoolDownSecs - int - Optional - cool down period that prevent further scaling in action 
       stepUpCoolDownSecs  - int - Optional - cool down period that prevent further scaling out action 

別の方法は、ポリシーを保存開くことができますポリシー・トリガの構造を参照してください。

関連する問題