什么是每个AWS的API查询秒钟的要求? [英] What are the request per seconds of the AWS API Queries?
问题描述
什么是请求由宝途-2.38 / Boto3提出了以下API调用每秒和平均响应时间(往返)?
康恩= EC2(aws_access_key,aws_secret_key_id)
Q1:影像= conn.get_all_images(所有者= ['自我'])
Q2:实例= conn.get_only_instances()
Q3:快照= conn.get_all_snapshots(所有者='自我')
Q4:快照= conn.create_snapshot(volume_id,介绍)
Q5:例如= conn.launch_instance(小于PARAMS>)
Q6:影像= conn.create_image(实例ID,名称,描述)
Q7:conn.deregister_image(image_id = image_id)
Q8:体积= conn.get_all_volumes()
答案将取决于许多变量,所以没有一个答案。你的等待时间AWS,您要求等,如果您要求往往足以让API数据集的大小节流。
您的问题暗示了极其沉重的API的使用情况,所以你需要检查你的使用情况将真正的工作在亚马逊,如果你做了太多,他们会扼杀你的API调用。 <一href="http://docs.aws.amazon.com/AWSEC2/latest/APIReference/query-api-troubleshooting.html#api-request-rate" rel="nofollow">http://docs.aws.amazon.com/AWSEC2/latest/APIReference/query-api-troubleshooting.html#api-request-rate
What are the request per seconds and average response times(roundtrip) of the following API calls made by Boto-2.38/Boto3 ?
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()
The answer will depend on many variables, so there is no one answer. Your latency to AWS, the size of the datasets you are requesting etc and if you are requesting often enough to get API throttled.
Your question implies an extremely heavy API use case so you need to check that your use case will really work in Amazon as they will throttle your api calls if you make too many. http://docs.aws.amazon.com/AWSEC2/latest/APIReference/query-api-troubleshooting.html#api-request-rate
这篇关于什么是每个AWS的API查询秒钟的要求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!