Do these timings for the RackSpace PHP SDK seem about right? -
i'm using rackspace php sdk upload html container.
this script without using sdk, finishes in ~0.1 seconds. using sdk, it's between 1.5 - 2.5 seconds. i'm doing sdk is.
- connect using username , api key.
- get instance of objectstoreservice.
- set container.
- upload data file.
the largest of files uploaded @ moment, 212kb.
does seem right, doing 4 operations taking around 1.4 - 2.4 seconds?
i have found uploading cloud files slower 1 expects, you're looking @ realistic times.
the bottle necks in cloud files library are:
when login username , api key, returns token lasts 24 hours. if can should see if can keep token, save api call: http://docs.php-opencloud.com/en/latest/services/identity/tokens.html
when upload file, doesn't report 202 ok until has stored file. storage backend uses openstack swift, breaks files blocks, each block must saved on majority of servers; rackspace, heard each block saved on 3 servers, 'upload' won't return until every block of file on @ least 2 servers. way around uploading delay, asynchronously, or processes uploading multiple files @ time. don't know how in php without having secondary , other processes save files you.
always use snet (service net) when you're uploading inside same datacenter cloud files service
Comments
Post a Comment