0

Boto-2.38/Boto3 进行的以下 API 调用的每秒请求数和平均响应时间(往返)是 多少

    conn=EC2(aws_access_key,aws_secret_key_id)

    Q1:images=conn.get_all_images(owners=['self'])  
    Q2:instances=conn.get_only_instances()
    Q3:snapshots=conn.get_all_snapshots(owner='self')
    Q4:snapshot=conn.create_snapshot(volume_id, description)
    Q5:instance=conn.launch_instance(<params>)
    Q6:image=conn.create_image(instance_id,name,description)
    Q7:conn.deregister_image(image_id=image_id)
    Q8:volumes=conn.get_all_volumes()
4

1 回答 1

0

答案将取决于许多变量,因此没有一个答案。您对 AWS 的延迟、您请求的数据集的大小等,以及您请求的频率是否足以让 API 受到限制。

您的问题暗示了一个极其繁重的 API 用例,因此您需要检查您的用例是否真的可以在 Amazon 中运行,因为如果您调用过多,它们会限制您的 api 调用。http://docs.aws.amazon.com/AWSEC2/latest/APIReference/query-api-troubleshooting.html#api-request-rate

于 2015-12-01T00:52:59.410 回答