Send dhcp-users mailing list submissions to dhcp-users@lists.isc.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.isc.org/mailman/listinfo/dhcp-users or, via email, send a message with subject or body 'help' to dhcp-users-requ...@lists.isc.org You can reach the person managing the list at dhcp-users-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of dhcp-users digest..." Today's Topics: 1. Re: DHCP restart with bulk lease data (Surya Teja) 2. Re: DHCP restart with bulk lease data (sth...@nethelp.no) 3. Re: DHCP restart with bulk lease data (Sten Carlsen) ---------------------------------------------------------------------- Message: 1 Date: Tue, 29 Oct 2019 15:29:25 +0530 From: Surya Teja <suryateja...@gmail.com> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: DHCP restart with bulk lease data Message-ID: <CA+0Ac3ybpZ4UabgiNk=T5AcGnNNcKjAj5Fa6Q0CsWu=vlgk...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" 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.satch...@uniq.com.au> wrote: > On 2019-10-29 07:31, Simon Hobson wrote: > > Surya Teja <suryateja...@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@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-0001.htm> ------------------------------ Message: 2 Date: Tue, 29 Oct 2019 11:20:41 +0100 (CET) From: sth...@nethelp.no To: dhcp-users@lists.isc.org, suryateja...@gmail.com Subject: Re: DHCP restart with bulk lease data Message-ID: <20191029.112041.79053316.sth...@nethelp.no> Content-Type: Text/Plain; charset=us-ascii > 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 If a dhcpd restart with 50 - 60k leases takes 5-6 minutes or more, you're doing something wrong. With a decent disk subsystem this is expected to take a few *seconds* (5 - 10 seconds would be my estimate based on what we see here with a larger leases file). Steinar Haug, Nethelp consulting, sth...@nethelp.no ------------------------------ Message: 3 Date: Tue, 29 Oct 2019 12:43:42 +0100 From: Sten Carlsen <st...@s-carlsen.dk> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: DHCP restart with bulk lease data Message-ID: <4d5505c1-e0f7-48c8-b366-979e282cf...@s-carlsen.dk> Content-Type: text/plain; charset=us-ascii > On 29 Oct 2019, at 11.20, sth...@nethelp.no wrote: > >> 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 > > If a dhcpd restart with 50 - 60k leases takes 5-6 minutes or more, > you're doing something wrong. With a decent disk subsystem this is > expected to take a few *seconds* (5 - 10 seconds would be my estimate > based on what we see here with a larger leases file). Could there be issues with file permissions? My guess is that the temporary file written can not be renamed because dhcpd does not have write permissions? > > Steinar Haug, Nethelp consulting, sth...@nethelp.no > _______________________________________________ > dhcp-users mailing list > dhcp-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ Subject: Digest Footer _______________________________________________ dhcp-users mailing list dhcp-users@lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 132, Issue 26 *******************************************