DHCP restart with bulk lease data

Surya Teja suryateja042 at gmail.com
Tue Oct 29 09:59:25 UTC 2019


Hi, I am not familiar with c code(source code) but I will try to go
through,
The main thing I am facing the issue is when the data is too high like
50-60k leases in the file, the dhcpd service restart is taking more time
(nearly 5-6 minutes) some times nearly 10-11 mins, At these duration the
network area will be like blackout, no user can connect to network
which is making me panic to perform restarts (I am doing the restarts
because If the config is changed like any new statement added then we need
to stop and start the dhcpd to get the new changes work)
 I am suspecting writing the data into lease file is taking time (not
sure)
Do we have any suggested techniques which can reduce the time taken by the
service to up, or any parameter which controls the behavior of lease file
writing


Thanks
Teja

On Tue, Oct 29, 2019 at 9:00 AM <glenn.satchell at uniq.com.au> wrote:

> On 2019-10-29 07:31, Simon Hobson wrote:
> > Surya Teja <suryateja042 at gmail.com> wrote:
> >
> >> will it generates the multiple backup files when the data is too big?
> >> like dhcpd.lease ----> org file
> >>       dhcpd.leases~ -----> backup1
> >>        dhcpd.leases.<time_stamp> ----> backup2
> >
> > No. The server writes out a new file, renames the existing one
> > (deleting the old backup in the process), then renames the new one
> > into place.
>
> Hi Surya,
>
> Maybe you need to look at the source code to see the conditions under
> which this file is created?
>
> regards,
> -glenn
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20191029/0acebd8d/attachment.htm>


More information about the dhcp-users mailing list