Centova Technologies Forum

Centova Cast v3 => Feature requests => Topic started by: wisez on February 13, 2015, 12:10:45 am

Title: Every stream its own user
Post by: wisez on February 13, 2015, 12:10:45 am
It's a longshot but worth a try  ;D

Is it possible to run every shoutcast / icecast and every autoDJ script (ices or anything else)
under a different user ? Let me explain.

Now everything is running under a user ccuser. If something crashes or consumes CPU / RAM we don't know who and what is it. Need further analysis.

For example I don't know which users owns these:
ccuser   13294  0.0  0.0      0     0 ?        Z    10:03   0:00 [ices] <defunct>
ccuser   12170  0.0  0.0      0     0 ?        Z    10:00   0:00 [ices] <defunct>


Separating users we can limit, throttle and check the servers easier using for example cgroups or OS like CloudLinux to limit cpu , ram, IO and connections per user.

Title: Re: Every stream its own user
Post by: Roger on February 14, 2015, 02:11:08 pm
I'm afraid this wouldn't be possible anyways, because Centova Cast works in it's own chrooted environment. So even if this wasn't a big deal to implement, user-based resource management tools won't work.

Besides, keeping track of which station is using too much cpu is not hard at all, just log the output of ps every few seconds ;)

EDIT:

To know the owner(s) of those zombies you just do:

ps aux | grep 13294
ps aux | grep 12170

HTH