resource-get is painfully slow
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
James Tunnicliffe |
Bug Description
IBM has a few charms that require the user to provide resources before the charm can install. The resource for one of these charms [0] is about 200MB. It takes almost 40 minutes for the charm to fetch this resource from the controller:
...
2016-06-21 16:48:15 INFO juju-log IBM IM: fetching the ibm_im_installer resource
2016-06-21 17:24:52 INFO juju-log IBM IM: using /var/lib/
...
I ran some tests, and saw that the xfer rate between the controller and unit was a measly 80KB/s:
root /var/lib/
By contrast, a juju scp of the same 200MB resource from my laptop to the unit was 400KB/s:
ubuntu sshd: ubuntu@pts/1 eth0 11.588 404.929 KB/sec
It doesn't seem right that i can xfer files to the unit from my laptop 5x faster than the controller. This test was done in Azure's South Central region with:
$ juju version
2.0-beta9-
I'll run the numbers for AWS in just a few minutes. Please let me know what kind of data would be useful to have to triage this bug. I'm happy to fiddle with network/interface settings if needed.
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.0-rc1 |
tags: | added: resources |
Changed in juju-core: | |
assignee: | nobody → James Tunnicliffe (dooferlad) |
tags: | added: 2.0 |
Changed in juju-core: | |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
milestone: | 2.0-rc1 → 2.0-beta12 |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.0-beta12 → none |
milestone: | none → 2.0-beta12 |
AWS looks better. Same juju in aws/us-west-1 got the same 200MB resource downloaded in < 10 minutes, making it close to 400KB/s:
... juju/agents/ unit-ibm- im-0/resources/ ibm_im_ installer/ ibm_im_ installer. zip as the ibm_im_installer resource
2016-06-21 18:11:02 INFO juju-log IBM IM: fetching the ibm_im_installer resource
2016-06-21 18:18:27 INFO juju-log IBM IM: using /var/lib/
...
While this is ok (certainly tolerable compared to azure), I think we can do much better. On AWS, I was able to put the controller's id_rsa.pub into a unit's ~/.ssh/ authorized_ keys file and scp this 200MB resource at 50MB/s. That's a crazy significant step up from 400KB/s.
IBM is about to drop *much* larger resources in their charms, which is why i'd like to try and get these speeds up. Their websphere resource is 2GB, which will make 400KB/s xfers painful, with 80KB/s xfers all but impossible.