EMR 中的实例队列



如何启动 6 个核心节点 EMR 集群,每个系列有 2 个节点。

 [
  {
    "Name": "MasterFleet",
    "InstanceFleetType": "MASTER",
    "TargetOnDemandCapacity": 1,
    "InstanceTypeConfigs": [{"InstanceType": "m4.xlarge"}]
  },
  {
    "Name": "CoreFleet",
    "InstanceFleetType": "CORE",
    "TargetSpotCapacity": 6,
    "LaunchSpecifications": {
     "SpotSpecification": {
        "TimeoutDurationMinutes": 10,
        "TimeoutAction": "SWITCH_TO_ON_DEMAND"
      }
    },
    "InstanceTypeConfigs": [
      {
        "InstanceType": "m4.large",
        "BidPrice": "0.1"
      },
      {
        "InstanceType": "m4.xlarge",
        "BidPrice": "0.2"
      },
      {
        "InstanceType": "m4.2xlarge",
        "BidPrice": "0.4"
      }
    ]
  }
]

我正在我的 aws cli 创建集群脚本中传递上述 config.json 文件。

aws emr create-cluster 
  --instance-fleets file://config.json

它根据默认分配策略"lowestPrice"分配同一系列中的所有实例,如何传递属性"多样化"使其启动来自不同系列的实例?

除了大写:"Masterfleet"和"Corefleet"之外,这看起来是正确的 - 而不是"MasterFleet"和"CoreFleet"。 可能想检查其他的。

最新更新