Sorry, no, there is no way to set process niceness level as a supervisor
parameter right now, you'll need to set things up so that supervisor
controls a shell script that sets the niceness level and then execs your
"real" program.

I don't see any reason we shouldn't support it, unless doing so is a
platform compatibility issue.  But for now the above workaround is
necessary.

- C


On Tue, 2010-07-20 at 17:09 -0700, Roger Hoover wrote:
> In that case, I don't think there's currently a way to set that in
> supervisor.  I'll let Mike or Chris answer about whether they want to
> support it.
> 
> 
> FWIW, there's an os.nice() in the python std lib.
> 
> 
> Roger
> 
> 2010/7/20 Sigurd Høgsbro <[email protected]>
>         Hi Richard,
>         
>         
>         I meant the Unix niceness. I'm aware of groups in Supervisor
>         (though I haven't used them) for controlling order of
>         spawning.
>         
>         
>         Sigurd
>         
>         2010/7/20 Roger Hoover <[email protected]>
>         
>         
>                 Hi Sigurd,
>                 
>                 
>                 By process priority, do you mean the order for
>                 spawning processes or do you mean the Unix niceness
>                 value?
>                 
>                 
>                 Roger
>                 
>                 2010/7/20 Sigurd Høgsbro <[email protected]>
>                         
>                         Hi,
>                         
>                         
>                         We start a number of batch-processes from
>                         Supervisor, and it would be nice if we could
>                         set their process priority from within the
>                         configuration file.  Does this fit with the
>                         ethos of Supervisor?
>                         
>                         
>                         If not, we can obviously implement such
>                         functionality within the jobs, but we'd prefer
>                         to keep the binaries clean of such
>                         environmental aspects.
>                         
>                         
>                         Regards,
>                         
>                         
>                         Sigurd
>                         
>                         
>                         _______________________________________________
>                         Supervisor-users mailing list
>                         [email protected]
>                         
> http://lists.supervisord.org/mailman/listinfo/supervisor-users
>                         
>                 
>                 
>         
>         
> 
> 
> _______________________________________________
> Supervisor-users mailing list
> [email protected]
> http://lists.supervisord.org/mailman/listinfo/supervisor-users


_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to