<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>... </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
And now I think of it, can I stream resources? I don't want to<br>
provision a machine with 8TB of storage just so I can restore a 4TB<br>
dump. Maybe this is just a terrible example, since I probably couldn't<br>
be bothered uploading the 4TB dump in the first place, and would<br>
instead setup tunnels and pipes to stream it into a 'juju run'<br>
command. An abuse of Juju resources better suited to Juju blob<br>
storage?<br><br></blockquote><div> </div></div>We've talked about streaming resources, but decided to omit it for version 1.</div><div class="gmail_extra"><ol><li>Resources are cached in the server anyway, so a 4TB resources isn't a great fit there. We want to be caching it both for efficiency (5 units consuming 100MB resource only needs to be copied to the cloud one time), and for repeatability (adding another unit can be sure to get the same content of the resource even if the charm store, etc has been upgraded.)</li><li>Resources *are* loaded only on demand. So until the charm does "resource-get", we don't copy the data from the API server to the unit.</li><li>I believe we left it implementation defined if we load resources from the charm store opportunistically, but I think because of (1) we probably will.</li><li>We can certainly add a new hook tool that would stream the content from the API server (eg resource-stream). However, 1&2 mean it didn't seem super useful vs added complexity and more time to implement.</li></ol><div>John</div><div>=:-></div></div></div>