Possible speed up for DHCP serving - dhcp-authoritative & no-ping
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-calico |
New
|
Undecided
|
Unassigned |
Bug Description
Moved here from https:/
neiljerram commented on 11 Nov 2014
Felix Schüren writes at http://
In order to speed up DHCP replies for new VMs (and thus VM boot time), I
think adding
--dhcp-
--no-ping
to dnsmasq should be safe & sane.
--dhcp-
Should be set when dnsmasq is definitely the only DHCP server on a
network. For DHCPv4, it changes the behaviour from strict RFC
compliance so that DHCP requests on unknown leases from unknown hosts
are not ignored. This allows new hosts to get a lease without a tedious
timeout under all circumstances. It also allows dnsmasq to rebuild
its lease database without each client needing to reacquire a lease, if
the database is lost. For DHCPv6 it sets the priority in replies to 255
(the maximum) instead of 0 (the minimum).
--no-ping
(IPv4 only) By default, the DHCP server will attempt to ensure that an
address in not in use before allocating it to a host. It does this by
sending an ICMP echo request (aka "ping") to the address in question. If
it gets a reply, then the address must already be in use, and another is
tried. This flag disables this check. Use with caution.
@neiljerram neiljerram added the question label on 11 Nov 2014
@neiljerram neiljerram self-assigned this on 11 Nov 2014
@localpref
localpref commented on 12 Nov 2014
Btw, I think this might be an upstream thing and not even calico-related?
Lukasa commented on 12 Nov 2014
It's definitely upstream right now. What's interesting to think about is whether it will remain upstream forever or whether we'll subsume the function.
neiljerram commented on 28 Nov 2014
@Lukasa My impression is that dnsmasq is good at retaining features, once it has them, so I doubt these options will disappear.
@localpref I wonder if there's any relationship between your suggestions here and another piece of dnsmasq investigation that I'm currently working on, which is described at http://
Lukasa commented on 28 Nov 2014
@neiljerram Sorry, I meant 'upstream' in the sense of 'in openstack', not in the sense of 'in dnsmasq'.
nbartos commented on 9 Feb 2015
I agree, this sounds like a good idea.
fasaxc commented on 20 May 2015
Since DHCP has been a bottleneck, should we look into this again?
fasaxc commented on 23 Jul 2015
I believe --dhcp-
neiljerram commented just now
Note: For deployments using the Calico DHCP agent (as opposed to the reference Neutron one), @fasaxc's last comment doesn't apply, and so --dhcp-