我在用着
iscsi_mgr = SoftLayer.ISCSIManager(SL.instance(sl_config).client) iscsi_id = helpers.resolve_id(iscsi_mgr.resolve_ids, iscsi_identifier,'iSCSI') iscsi = SL.instance(sl_config).client['Network_Storage_Iscsi'] snapshots = iscsi.createSnapshot(id=iscsi_id)然后我旋转并等待拍摄的快照数量比以前大1(因为createSnapshot是异步操作)我在使用getManualSnapshots返回所有快照的列表。
我注意到,在使用API时,无论快照之间的数据量是多少,我都会在15到60分钟内完成此过程。 同时,门户网站明显更快。 使用这种方式的SL API和通过门户网站进行的操作有什么区别? 有什么我缺少的快照随时可用吗?
谢谢
I'm using
iscsi_mgr = SoftLayer.ISCSIManager(SL.instance(sl_config).client) iscsi_id = helpers.resolve_id(iscsi_mgr.resolve_ids, iscsi_identifier,'iSCSI') iscsi = SL.instance(sl_config).client['Network_Storage_Iscsi'] snapshots = iscsi.createSnapshot(id=iscsi_id)I then spin and wait for the number of snapshots taken to become 1 larger than before ( since createSnapshot is an async operation ) There I'm using getManualSnapshots to return the list of all snapshots.
I've noticed that when using the API I am seeing take anywhere from 15 to 60 minutes to complete this procedure, regardless of the amount of data changed in between snapshots. Meanwhile the web portal is noticeably faster. What is the difference between the use of the SL API this way and what is going on via web portal? Is there something I am missing to have the snapshot readily available?
Thanks
最满意答案
门户使用此方法: http : //sldn.softlayer.com/reference/services/SoftLayer_Network_Storage/createSnapshot
您可以尝试更改正在使用的服务,看看是否有任何区别:
iscsi = SL.instance(sl_config).client['Network_Storage'] snapshots = iscsi.createSnapshot(id=iscsi_id)问候
The portal uses this method: http://sldn.softlayer.com/reference/services/SoftLayer_Network_Storage/createSnapshot
You could try changing the service that your are using and see if there is any difference:
iscsi = SL.instance(sl_config).client['Network_Storage'] snapshots = iscsi.createSnapshot(id=iscsi_id)Regards
更多推荐
发布评论