我可以从 API 获取我的账户的 Amazon SWF 使用限制吗?
Can I get the Amazon SWF usage limits for my account from the API?
根据Amazon Simple Workflow Service Limits:
Limits on Workflow Executions
- Maximum open workflow executions: 100,000 per domain
然而,Amazon SWF Limit Increase Form 指出:
Amazon SWF users can create a maximum of 100 domains per account. [...] Upto 10,000 workflow executions can be open at a time in each domain, which means that upto a million executions can be open simultaneously in each user account.
无论哪种方式,亚马逊都可以为提出要求的客户更改限额。
有没有办法从 API 为我的帐户 获取这些数字以获得明确的答案?
我可以在界面的某个地方看到它们吗?
目前您无法在 SWF 控制台上看到它,也无法使用 API 获取它们。我知道的唯一方法 raise or see your current limits, is to contact the AWS SWF team. The only URL I could find that sends a message to the team was the one I linked above.
最近向 CloudWatch 添加了速率限制信息:
- 与 API 使用相关的速率限制,例如
StartWorkflowExecution
可以在 All > SWF > API Usage Metrics.
- 与
ScheduleActivityTask
或 StartChildWorkflowExecution
等决策相关的速率限制在 All >
SWF > 决策使用指标.
每个 API 或决策类型都有其 ProvisionedBucketSize 和 ProvisionedRefillRate.
的指标
例如,here is the rate limit for StartChildWorkflowExecution
(link 用于 us-east-1):
还有 ThrottledEvents 和 ConsumedCapacity 的指标,因此您可以跟踪 API 使用了多少,以及失败的频率。
新的 CloudWatch 仪表板在一处显示所有限制:https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#cw:dashboard=SWF
根据Amazon Simple Workflow Service Limits:
Limits on Workflow Executions
- Maximum open workflow executions: 100,000 per domain
然而,Amazon SWF Limit Increase Form 指出:
Amazon SWF users can create a maximum of 100 domains per account. [...] Upto 10,000 workflow executions can be open at a time in each domain, which means that upto a million executions can be open simultaneously in each user account.
无论哪种方式,亚马逊都可以为提出要求的客户更改限额。
有没有办法从 API 为我的帐户 获取这些数字以获得明确的答案?
我可以在界面的某个地方看到它们吗?
目前您无法在 SWF 控制台上看到它,也无法使用 API 获取它们。我知道的唯一方法 raise or see your current limits, is to contact the AWS SWF team. The only URL I could find that sends a message to the team was the one I linked above.
最近向 CloudWatch 添加了速率限制信息:
- 与 API 使用相关的速率限制,例如
StartWorkflowExecution
可以在 All > SWF > API Usage Metrics. - 与
ScheduleActivityTask
或StartChildWorkflowExecution
等决策相关的速率限制在 All > SWF > 决策使用指标.
每个 API 或决策类型都有其 ProvisionedBucketSize 和 ProvisionedRefillRate.
的指标例如,here is the rate limit for StartChildWorkflowExecution
(link 用于 us-east-1):
还有 ThrottledEvents 和 ConsumedCapacity 的指标,因此您可以跟踪 API 使用了多少,以及失败的频率。
新的 CloudWatch 仪表板在一处显示所有限制:https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#cw:dashboard=SWF