<div dir="ltr">in a LXD container, the syntax is:<br><br>lxc config set mycontainer raw.idmap 'both 1003 1003'<br><br>as idmap is a blob, i you want assign multiple values, you have to send multilines:<br><br>echo -e "both 1003 1003\nboth 1004 1004" | lxc config set mycontainer raw.idmap -<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-27 15:33 GMT+02:00 Serge E. Hallyn <span dir="ltr"><<a href="mailto:serge@hallyn.com" target="_blank">serge@hallyn.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Mar 14, 2017 at 02:29:01AM +0100, Benoit GEORGELIN - Association Web4all wrote:<br>
> ----- Mail original -----<br>
> > De: "Simos Xenitellis" <<a href="mailto:simos.lists@googlemail.com">simos.lists@googlemail.com</a>><br>
> > À: "lxc-users" <<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.<wbr>linuxcontainers.org</a>><br>
> > Envoyé: Lundi 13 Mars 2017 20:22:03<br>
> > Objet: Re: [lxc-users] Experience with large number of LXC/LXD containers<br>
><br>
> > On Sun, Mar 12, 2017 at 11:28 PM, Benoit GEORGELIN - Association<br>
> > Web4all <<a href="mailto:benoit.georgelin@web4all.fr">benoit.georgelin@web4all.fr</a>> wrote:<br>
> > > Hi lxc-users ,<br>
><br>
> > > I would like to know if you have any experience with a large number of<br>
> > > LXC/LXD containers ?<br>
> > > In term of performance, stability and limitation .<br>
><br>
> > > I'm wondering for exemple, if having 100 containers behave the same of<br>
> > > having 1.000 or 10.000 with the same configuration to avoid to talk about<br>
> > > container usage.<br>
><br>
> > > I have been looking around for a couple of days to found any user/admin<br>
> > > feedback experience but i'm not able to find large deployments<br>
><br>
> > > Is there any ressources limits or any maximum number that can be deployed on<br>
> > > the same node ?<br>
> > > Beside physical performance of the node, is there any specific behavior that<br>
> > > a large number of LXC/LXD containers can experience ? I'm not aware of any<br>
> > > test or limits that can occurs beside number of process. But I'm sure from<br>
> > > LXC/LXD side it might have some technical contraints ?<br>
> > > Maybe on namespace availability , or any other technical layer used by<br>
> > > LXC/LXD<br>
><br>
> > > I will be interested to here from your experience or if you have any<br>
> > > links/books/story about this large deployments<br>
><br>
><br>
> > This would be interesting to hear if someone can talk publicly about<br>
> > their large deployment.<br>
><br>
> > In any case, it should be possible to create, for example, 1000 web servers<br>
> > and then try to access each one and check any issues regarding the<br>
> > response time.<br>
> > Another test would be to install 1000 Wordpress installations and<br>
> > check again for the response time<br>
> > and resource usage.<br>
> > Such scripts to create this massive number of containers would also be<br>
> > helpful to replicate<br>
> > any issues in order to solve them.<br>
><br>
> > Simos<br>
><br>
><br>
> Yes it's would be very nice to hear about this kind of infrastructure using lxc/lxd<br>
> I'm not yet ready to make this kind of testing, but if someone would like to work on this with me as a projet, I can provide the technical infrastructure and scripts .<br>
> That would be nice to provide a good testing case and analyse to share to the community<br>
<br>
It should be pretty simple. I've done testing like this to test other<br>
software, which implicitly ended up testing lxd.<br>
<br>
You'd probably create a first container and publish it locally,<br>
<br>
(all commands untested, just an example)<br>
<br>
lxc launch ubuntu:xenial template<br>
lxc exec template -- apt -y install nginx<br>
lxc stop template<br>
lxc publish --alias template template<br>
<br>
Then do your testing in a loop,<br>
<br>
# spin up containers<br>
for i in `seq -f "%04g" 1 1000`; do<br>
lxc launch template nginx-$i<br>
done<br>
<br>
# spin up clients<br>
... etc<br>
______________________________<wbr>_________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.<wbr>linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" rel="noreferrer" target="_blank">http://lists.linuxcontainers.<wbr>org/listinfo/lxc-users</a></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font size="4"><span style="font-family:verdana,sans-serif">Gaétan QUENTIN</span></font><br></div></div>
</div>