On Mon, Feb 09, 2009 at 03:48:18PM +0100, Jan Safranek wrote:
> Hello,
> 
> for Fedora 11 it would be nice to have possibility to start service 
> daemons (httpd, mysqld, ...) inside specific control groups. Of course, 
> by default there would be no control groups preconfigured, the whole 
> feature must be purely optional.
> 
> The services run under various users and some of them run as root - IMHO 
> current cgrulesengd daemon is not useful for this purpose as it's based 
> purely on UID and GID.
> 

The main reason we took this approach was because we had no sane way of
doing task classification on task names. Those can be changed to bypass
all these settings.

> For Fedora 11, I would add some logic to /etc/init.d/functions to start 
> daemons in group specified in e.g. CGROUP_DAEMON environment variable. 
> The admin would then add something like this to /etc/sysconfig/httpd:
> CGROUP_DAEMON="-g cpuacct:daemons -g cpu:daemons/http"
> 

Makes sense.

> and modified /etc/init.d/functions will take care of the rest. This can 
> be used only with services and only with those which use daemon() 
> function from /etc/init.d/functions. IMHO it's quite enough for Fedora 
> 11. Question is, if it's future-proof concept, I'd like not to modify 
> init scripts again in F12 / 13 /... In case this approach is selected, 
> we must ensure that libcgroups are installed by default, so the users 
> are not confused.

I am not sure how happy people are going to be with libcgroup being
installed by default. It might be a good idea to think about alternative
methods. I have a couple of hazy ideas, let me think a bit more on it
and share it once it is clearer.

BTW, while we are at it, we should also look at how other distros will
also use it, any approach we take should be generic enough.

>  But we must drop dependency on redhat-lsb.rpm, because 
> it pulls lot of libraries, e.g. mesa and libX11, which are frowned upon 
> on servers.
> 

Isn't the redhat-lsb rpm needed for ensuring the lsb compliance in
fedora/rh?

> What do you think about such configuration? I should start to fix the 
> dependencies, init scripts and so on if we want to have such nice 
> feature in F11.
> 

Sure, sounds good, let us see how it goes.

thanks,
-- 
regards,
Dhaval

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to