[SSSD] [PATCH] Exit offline mode only if server is available.

Simo Sorce simo at redhat.com
Sun Jul 6 16:44:23 UTC 2014


On Sun, 2014-07-06 at 12:42 -0400, Simo Sorce wrote:
> On Fri, 2014-07-04 at 12:34 +0200, Michal Židek wrote:
> > Hi Sumit,
> > 
> > actually your suggestion was one of my first ideas, but
> > It looked like strange behaviour to me if the first
> > getent (or any request for data not present int the
> > cache) after offline_timeout period returned nothing
> > even if the server was already available and the second
> > (1 or 2 seconds after the first) returned proper data. I
> > thought this may be considered a bug for some people (even
> > if it is not a major regression :) ). The patch I sent
> > was then an improvement over this initial idea (from my POV).
> > 
> > I understand your suggestion and concern, but I would
> > prefer to stick with the approach in the patch I sent.
> 
> Can we at least use a backoff scheme where we increase timeout periods
> every time we try and find ourselves offline ?
> 
> Try 1 minute, then 2, then 4, then 8, 16, 32, 64, 128 ...

It would also probably be a good idea to randomize a little the delay,
otherwise we risk thundering herd situations.

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York




More information about the sssd-devel mailing list