It seems like a good idea to me.
On Tue, Feb 8, 2011 at 11:41 AM, Joseph Kondel <[email protected]> wrote:
> I wound up adding another "variable" to be accessible and used inside of
> the command string by editing options.py around line 786 -
>
>
> host_node_name = platform.node()
> for process_num in range(numprocs_start, numprocs +
> numprocs_start):
> expansions = {'here':self.here,
> 'process_num':process_num,
> 'program_name':program_name,
> 'host_node_name':host_node_name,
> 'group_name':group_name}
>
> Obviously I also imported platform at the beginning of the file.
>
> Is there any downside to this I might not be seeing? Seems like an easy fix
> to something that sure, not many people might need out of the box, but is
> easier than using another tool just to get host-unique identifiers for
> processes across a fleet of workers.
>
> -j
>
> On Aug 23, 2010, at 8:18 PM, Roger Hoover wrote:
>
> One option is to use a template engine to generate your supervisord config.
> We use Perl Template Toolkit.
>
> Roger
>
> On Fri, Aug 20, 2010 at 3:08 PM, Joseph Kondel <[email protected]> wrote:
>
>> Basically I want to run supervisor and have it administer celery workers
>> on a number of servers. The issue is that unless you give your celery
>> workers unique names it gets interesting trying to control them remotely.
>> Ideally I'd like to append the hostname to the process_name parameter in the
>> config. I tried setting an env variable but that obviously didn't work.
>> Short of either tweaking supervisors or celery's source, is there a known
>> way to do this kind of thing?
>>
>> here's my current config in any case:
>>
>> [program:celeryd]
>> command=/Users/joe/projects/platform/manage.py celeryd
>> --settings=settings.local_prod -l info
>> --hostname=%(program_name)s_%(process_num)03d
>> process_name=%(program_name)s_%(process_num)03d
>> numprocs=3
>>
>>
>> Thanks!
>> -j
>> _______________________________________________
>> 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