<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">The "flavor" idea is a nova artifact, and nova-lxd forwards that over to LXD via profiles. When nova-lxd creates a container instance, it assigns a profile to it with the resource constraints of the nova flavor. You can see this in lxd with `lxc profile list` and `lxc profile show</blockquote><div>So containers will have resource limitation too just like VMs. Doesn't this make containers less resource efficient as it used to be originally?</div><div> </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 29, 2016 at 8:17 PM, Paul Hummer <span dir="ltr"><<a href="mailto:paul.hummer@canonical.com" target="_blank">paul.hummer@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Muneeb-<br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Fri, Apr 29, 2016 at 7:29 AM, Muneeb Ahmad <span dir="ltr"><<a href="mailto:muneeb.gandapur@gmail.com" target="_blank">muneeb.gandapur@gmail.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>First I'm confused about how flavors in OpenStack work when we are dealing with LXC containers. Because one of the ideas behind containers is that they can use as much resources as they want unless there's a limitation. So I'm confused when we have to choose a flavor for any instance, is it really going to limit the resources used by that container-instance? And let's say my compute node has 1gb RAM and I use a flavor that has 256mb RAM allocation, I can only launch 3 containers, after that I get 'no valid hosts found' error although in reality I can run much more containers than that. How all this work in containers environment?</div></div></div></blockquote><div><br></div></span><div>The "flavor" idea is a nova artifact, and nova-lxd forwards that over to LXD via profiles. When nova-lxd creates a container instance, it assigns a profile to it with the resource constraints of the nova flavor. You can see this in lxd with `lxc profile list` and `lxc profile show`</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Another question I have is that when we run a container on OpenStack, it automatically copy an image into local lxc image list. Even if all the containers are using the same image, it just keeps on adding the image to it's list with a different name. Isn't this a waste of memory?</div></div></div></blockquote><div><br></div></span><div>This is a bug that I have discovered recently. I filed a bug right before I read this email. :) <a href="https://github.com/lxc/nova-lxd/issues/124" target="_blank">https://github.com/lxc/nova-lxd/issues/124</a> </div><div><br></div><div>Cheers,</div><div>Paul</div></div></div></div>
<br>_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br></blockquote></div><br></div>