Re: [lxc-users] LXD project status

2018-03-31 Thread Andrey Repin
Greetings, Saint Michael!

> I am using LCX, plain vanilla. Is there a reading the can help me move to
> LXD 3.0?

Do you NEED to move to LXD, to begin with?

> I am afraid I cannot see why would anybody use LXD vs regular LXC.

Mass deployment of similar containers.

> I can do anything I need, so far, with LXC. To copy a container to another
> server I use rsync with some special parameters.
> In general what is the great advantage of using LXD?

See above. LXD is more suitable for automated (re)deployment of likewise
containers.

If all you need is an occasional isolation of an experimental/production
environment, LXC is more than enough.


-- 
With best regards,
Andrey Repin
Sunday, April 1, 2018 01:08:24

Sorry for my terrible english...

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

Re: [lxc-users] dynamic cgroup memory limit

2018-03-31 Thread Tian-Jian Wu
We are developers of project clondroid (https://github.com/clondroid)
Our android porting lxc tools are at
https://github.com/clondroid/lxc-for-Android-7.1.2.
This command 'lxc config set my-container limits.memory 256MB' , the 'lxc'
command seems be part of LXD project.
If so, I guess it's written in GOLANG.  Wondering if there is a chance to
port LXD to android...

2018-03-31 18:28 GMT+08:00 Sergiusz Pawlowicz :

> On 31 March 2018 at 16:57, Tian-Jian Wu  wrote:
> > please allow my silly question , how?
> > I know it's ok to set memory limit in config file and it's set to kernel
> > later.
> > But after container started how to change memory limit?  What command?
>
> it is clearly described on:
>
> https://insights.ubuntu.com/2016/03/30/lxd-2-0-resource-control-412
>
> lxc config set my-container limits.memory 256MB
>
> s.
> ___
> 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

Re: [lxc-users] dynamic cgroup memory limit

2018-03-31 Thread Tian-Jian Wu
Thank you I will read it carefully.


Sergiusz Pawlowicz  於 2018年3月31日 週六 下午6:28 寫道:

> On 31 March 2018 at 16:57, Tian-Jian Wu  wrote:
> > please allow my silly question , how?
> > I know it's ok to set memory limit in config file and it's set to kernel
> > later.
> > But after container started how to change memory limit?  What command?
>
> it is clearly described on:
>
> https://insights.ubuntu.com/2016/03/30/lxd-2-0-resource-control-412
>
> lxc config set my-container limits.memory 256MB
>
> s.
> ___
> 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

Re: [lxc-users] dynamic cgroup memory limit

2018-03-31 Thread Sergiusz Pawlowicz
On 31 March 2018 at 16:57, Tian-Jian Wu  wrote:
> please allow my silly question , how?
> I know it's ok to set memory limit in config file and it's set to kernel
> later.
> But after container started how to change memory limit?  What command?

it is clearly described on:

https://insights.ubuntu.com/2016/03/30/lxd-2-0-resource-control-412

lxc config set my-container limits.memory 256MB

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

Re: [lxc-users] dynamic cgroup memory limit

2018-03-31 Thread Tian-Jian Wu
please allow my silly question , how?
I know it's ok to set memory limit in config file and it's set to kernel
later.
But after container started how to change memory limit?  What command?

2018-03-31 9:26 GMT+08:00 Sergiusz Pawlowicz :

> On 31 March 2018 at 06:48, Tian-Jian Wu  wrote:
> > is it possible to start a container with set memory limit (let's say 1G
> in
> > this case) and set its memory limit value to another , for example,
> 500MB,
> > later??
>
> Sure it is, you are able to modify these limits anytime live.
>
> S.
> ___
> 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