DCOS テンプレートを変更してスポット インスタンスを使用することはできますか? 私は周りを見回しましたが、これに関する情報はあまりないようです。
1 に答える
5
さて、DCOS テンプレートを考えると、スレーブの LaunchConfiguration は次のようになります: (私はそれをいくらか短くしました)
"MasterLaunchConfig": {
"Type": "AWS::AutoScaling::LaunchConfiguration",
"Properties": {
"IamInstanceProfile": { "Ref": "MasterInstanceProfile" },
"SecurityGroups": [ ... ],
"ImageId": { ... },
"InstanceType": { ... },
"KeyName": { "Ref": "KeyName" },
"UserData": { ... }
}
}
SpotPrice
開始するには、そこにプロパティを追加するだけです。の値SpotPrice
は、明らかに、支払いたい最大価格です。おそらく、特にアラームと時刻に関して、自動スケーリングに関してさらに多くの作業を行う必要があります。これLaunchConfiguration
が、スポット価格が 1 時間あたり 1.00 ドルの新しいものです。
"MasterLaunchConfig": {
"Type": "AWS::AutoScaling::LaunchConfiguration",
"Properties": {
"IamInstanceProfile": { "Ref": "MasterInstanceProfile" },
"SecurityGroups": [ ... ],
"ImageId": { ... },
"InstanceType": { ... },
"KeyName": { "Ref": "KeyName" },
"UserData": { ... },
"SpotPrice": 1.00
}
}
于 2015-07-16T17:12:44.930 に答える