[bind10-dev] Storing files by dhcp components

Shane Kerr shane at isc.org
Thu Jan 10 09:30:15 UTC 2013


Tomek,

On Tuesday, 2013-01-08 16:45:30 +0100, 
Tomek Mrugalski <tomasz at isc.org> wrote:
> On 08.01.2013 13:54, Shane Kerr wrote:
> >> The config manager is special-cased in boss. I don't like the
> >> idea of special-casing anything more (actually, I'd like to stop 
> >> special-casing auth and resolver). So, to pass that information,
> >> I believe we need some other mechanism, possibly over the msgq.
> > 
> > Whoops, good point. A much more reasonable idea is to simply make
> > this a configuration parameter. *blush*
> I'm not sure if it is optimal solution, but I'll play along. Any
> recommendations for default value for that parameter?

Hm... in Python we have bind10_config.DATA_PATH which is a reasonable
default (found in src/lib/python/bind10_config.py.in).

I'm not sure whether we have a standard way to find this for the C++
side of things.

> The problem I have with exposing this to user configuration is that if
> the user changes the directory, suddenly server will loose its server
> identifier after next restart. This would in turn cause server to
> reject existing clients' requests (because of server-id mismatch). But
> that problem can be solved by writing existing server-id to the new
> directory if it changes.

If the user changes the directory, shouldn't we immediately save state
into the new location to avoid this problem?

--
Shane


More information about the bind10-dev mailing list