[lvs-users] ldirectord email features

Simon Horman horms at verge.net.au
Sat Nov 7 01:05:43 GMT 2009


On Fri, Nov 06, 2009 at 04:33:38PM -0500, anthony at duck.com wrote:
> Since I was the person that contributed the patch for the email alert code back in 2006, I could make another contribution attempt without making things too complex.
> 
> 1. i think that is a good idea. the option should probably be on a per
> virtual service basis.  before it sends the email, it would just compare
> the current time to whats defined in the exception period or alert period
> depending on how its implemented

Agreed, though it would probably also be worthwhile having global
directives too.

> 
> 2. with #1 implemented, you would just make sure the specific service
> does not have any alert exceptions
> 
> 3. if using multiple configuration files/ldirectord processes, you would
> then probably need to have something like a control file that is accessed
> (read/write) by any ldirectord process.  That means adding a lock file
> and checking.  I am not sure if there would be a better way to implement
> it.  There is the emailalertfreq option that limits how many times an
> email is sent on a per service basis.  You can set that to a higher value
> to limit the amount of emails you get per service when its down.

I'm not sure why you feel such locking would be necessary.
The configs in different config files should be independent of
each other.




More information about the lvs-users mailing list