Comment 4 for bug 1322302

Revision history for this message
Ian Booth (wallyworld) wrote :

When Juju uses LXC containers, the very first container is always slow to come up because it needs to download the image. We added clone support to make subsequent containers start much faster.

There are a couple of options to make the initial template download faster.
1. Juju supports an http-proxy environment config option (as well as apt-http-proxy).
https://juju.ubuntu.com/docs/howto-proxies.html
These proxy settings are propagated to the shell which calls lxc-create, which in turn calls wget to fetch the image.
So if you were to use a squid cache of some sort to provide the lxc images, and set up the proxy config, that would be a solution.

2. Have the Orange boxes configured to use a transparent proxy.
I believe Kapil is talking to Dustin about this option.

Having said all that, we also need to improve juju status to show more than just Pending. That's on the todo list.

If you do in fact have a cache all set up and it's still really slow, then we need to look deeper. The status changes from pending to started when the machine comes up and phones home. That can take a little time based on how fast the machine starts.

Can you advise how it behaves once you have a proxy all set up?