设置 'maxActiveInstances' 错误

Set 'maxActiveInstances' error

我正在使用 AWS 数据管道导出 DDB table,但是当我激活时出现错误:

Web service limit exceeded: Exceeded number of concurrent executions. Please set the field 'maxActiveInstances' to a higher value in your pipeline or wait for the currenly running executions to complete before trying again (Service: DataPipeline; Status Code: 400; Error Code: InvalidRequestException; Request ID: efbf9847-49fb-11e8-abef-1da37c3550b5)

如何使用 AWS UI 设置此 maxActiveInstances 属性?

您可以将其设置为 Ec2Resource[1](或 E​​mrActivity[2])对象上的 属性。使用 UI,点击编辑管道,点击屏幕右侧的资源(这是一个可折叠的菜单)。应该有一个 Ec2Resource 对象。此对象上应该有一个名为 "Add an additional field" 的下拉列表,您应该会在下拉列表中看到最大活动实例数。

[1]https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-object-ec2resource.html [2] https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-object-emractivity.html

我们运行也参与其中。对于按需管道,似乎在重试一定次数后,您必须给它时间来完成终止已配置的资源,然后才能重试。

解决办法:耐心。

对于按需管道,您可以在 'Default object' 中指定它,就像这样

{
  "objects": [
    {
      "failureAndRerunMode": "CASCADE",
      "scheduleType": "ONDEMAND",
      "name": "Default",
      "id": "Default",
      "maxActiveInstances": "5"
    },
...

我无法在 Architect 中添加它,我不得不从 json 创建另一个管道。但是一旦完成,我就可以在 Architect 中编辑它(在 'Others' 部分)。