[lxc-users] Limit file descriptors

2016-03-19 Thread Alan Hoffmeister
Hello folks,

I'm having some troubles where one container can drain the amount of file
descriptors available in the host system. Does somebody knows how to limit
file descriptors per container?

I'm running lxd v2.0.0.rc3 and lxc v2.0.0.rc10

Cheers

--
Alan Hoffmeister
https://twitter.com/alan_hoff
https://github.com/alanhoff
https://keybase.io/alanhoff
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Limit file descriptors

2016-03-19 Thread Guido Jäkel
Dear Alan,

adjust the limits per Container in  /etc/security/limits.conf  , e.g. add 
something like


*   hardnofile  8192
*   softnofile  8000
*   hardnproc   1024
*   softnproc   1000

and maybe adjust the values at the host, too.


Greetings

Guido


On 17.03.2016 00:40, Alan Hoffmeister wrote:
> Hello folks,
> 
> I'm having some troubles where one container can drain the amount of file
> descriptors available in the host system. Does somebody knows how to limit
> file descriptors per container?
> 
> I'm running lxd v2.0.0.rc3 and lxc v2.0.0.rc10
> 
> Cheers
> 
> --
> Alan Hoffmeister
> https://twitter.com/alan_hoff
> https://github.com/alanhoff
> https://keybase.io/alanhoff




___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Re: [lxc-users] Limit file descriptors

2016-03-19 Thread Alan Hoffmeister
Thanks for the reply, I'm trying to allow root access to my containers so
adjusting limits inside the rootfs isn't a good idea for me.


--
Alan Hoffmeister
https://twitter.com/alan_hoff
https://github.com/alanhoff
https://keybase.io/alanhoff

2016-03-18 3:08 GMT-03:00 Guido Jäkel :

> Dear Alan,
>
> adjust the limits per Container in  /etc/security/limits.conf  , e.g. add
> something like
>
>
> *   hardnofile  8192
> *   softnofile  8000
> *   hardnproc   1024
> *   softnproc   1000
>
> and maybe adjust the values at the host, too.
>
>
> Greetings
>
> Guido
>
>
> On 17.03.2016 00:40, Alan Hoffmeister wrote:
> > Hello folks,
> >
> > I'm having some troubles where one container can drain the amount of file
> > descriptors available in the host system. Does somebody knows how to
> limit
> > file descriptors per container?
> >
> > I'm running lxd v2.0.0.rc3 and lxc v2.0.0.rc10
> >
> > Cheers
> >
> > --
> > Alan Hoffmeister
> > https://twitter.com/alan_hoff
> > https://github.com/alanhoff
> > https://keybase.io/alanhoff
>
>
>
>
> ___
> lxc-users mailing list
> lxc-users@lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
___
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users