如何加快 App Engine 批量下载程序的速度?
我正在尝试使用 App Engine 批量加载器从数据存储区下载实体(如果重要的话,请使用高复制数据存储区)。它可以工作,但速度很慢(85KB/s)。是否有一些神奇的参数可以传递给它以使其更快?我每分钟收到大约 5MB 或 20,000 条记录,并且考虑到我的连接每秒可以达到 1MB(希望 App Engine 的服务速度比这更快),必须有一种方法可以更快。
这是我当前的命令。我已经尝试过高数字、低数字和每种排列:
appcfg.py download_data
--application=xxx
--url=http://xxx.appspot.com/_ah/remote_api
--filename=backup.csv
--rps_limit=30000
--bandwidth_limit=100000000
--batch_size=500
--http_limit=32
--num_threads=30
--config_file=bulkloader.yaml
--kind=foo
我已经尝试过这个 App Engine 批量加载器性能 而且它并不比我已经拥有的快。他提到的数字也与我看到的数字相当。
提前致谢。
I'm trying to use the App Engine bulkloader to download entities from the datastore (the high-replication one if it matters). It works, but it's quite slow (85KB/s). Are there some magical set of parameters I can pass it to make it faster? I'm receiving about 5MB/minute or 20,000 records/minute, and given that my connection can do 1MB/second (and hopefully App Engine can serve faster than that) there must be a way to do it faster.
Here's my current command. I've tried high numbers, low numbers, and every permutation:
appcfg.py download_data
--application=xxx
--url=http://xxx.appspot.com/_ah/remote_api
--filename=backup.csv
--rps_limit=30000
--bandwidth_limit=100000000
--batch_size=500
--http_limit=32
--num_threads=30
--config_file=bulkloader.yaml
--kind=foo
I already tried this
App Engine Bulk Loader Performance
and it's no faster than what I already have. The number's he mentions are on par with what I'm seeing as well.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否在尝试下载的实体的密钥上设置了索引?
我不知道这是否有帮助,但检查一下您在下载开始时是否收到一条警告,提示有关“使用顺序下载”的内容,
将其放在 index.yaml 上以在实体密钥上传上创建索引,然后等待待建索引。
Did you set an index on the key of the entity your trying to download?
I don't know if that helps but check if you get a warning at the beginning of the download that says something about "using sequential download"
Put this on the index.yaml to create an index on the entity key upload and wait for the index to be built.