>>> On 8/12/2008 at 7:14 AM, in message
<[EMAIL PROTECTED] 
, <[EMAIL PROTECTED]> wrote:

>> 
>> fair, and so for the sake of clarity let me explain again 
>> what are the specification constrains :
>> 
>> * must allow for nodes to specify where the configuration server is
>> * must allow for additional configurations to be included for modules
>> * must allow for configuration updates
>> * should allow for nodes to be notified when configuration changes
>>   require them to be reloaded
>> * should allow caching the configuration locally
>> * should fallback gracefully in case configuration server is 
>> not available
>> * should provide other applications (like gmetric) 
>> configuration services
> 
> 
> Here is my proposal:
> - insert a dynamic_configuration step immediately after parsing the text
> files and before any of the cfg_t structures are examined
> - the dynamic_configuration() code loads a user specified module
> - the mechanism is purely optional and can be bypassed if the module
> fails
> 
> Something like this is added to gmond.conf:
> 
> dynamic_configuration {
>   module_path = "/tmp/mod_config_test.so"
>   param = "http://localhost/get_ganglia_opts.php?host=%s";
> }
> 
> The module can use methods like cfg_setstr() to override the values
> loaded from the configuration files.
> 

I think that I could actually buy into this approach.  I was a little concerned 
before about bolting on a configuration management facility to gmond and what 
kind of impact that would have.  Especially if there other configuration 
services out there already.  However if a simple override facility that is 
plugable  were introduced, I think that is a much better concept.  This would 
allow different types of configuration overrides to happen whether it is LDAP, 
web service or whatever.  The question I have is still, how does a restart 
happen or how is new configuration detected by gmond?  There would still have 
to be something that pokes gmond to tell it to restart.  And if that is the 
case, then we are back to why not just use an existing configuration management 
service.

Brad


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to