Project

General

Profile

Bug #1090

When editing DHCP records, ISC backend times out if the number of subnets is large.

Added by Bash Shell almost 7 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

When adding hosts through Foreman, foreman-proxy times out if the number of subnets is large.

With 3k subnets, it takes 3-4 minutes to add the record.

In this time, the logs show that the proxy is "Enumerating hosts" for each subnet.

Something in-efficient is happening, and needs to be improved?

dhcpd3-subnets.conf dhcpd3-subnets.conf 355 KB Bash Shell, 11/15/2012 01:55 PM

Related issues

Related to Foreman - Bug #5847: Successfully adds DHCP record, while GUI reports timeoutNew2014-05-21
Related to Smart Proxy - Tracker #1051: Optimize the smart proxyRejected2011-07-18

Related to Smart Proxy - Bug #2687: Performance issues with large ISC dataset (DHCP smart proxy)Closed2013-06-20

History

#1 Updated by Ohad Levy over 6 years ago

could you provide (here or privately) an example of such configuration? its would be much easier to optimize this way.

thanks

#2 Updated by Bash Shell over 6 years ago

After the holidays, I'll privately send a similar config file.

#3 Updated by Ohad Levy about 6 years ago

  • Status changed from New to Need more information

#4 Updated by Bash Shell over 5 years ago

I can't provide the company dhcpd.conf file.

But this is easy to re-produce.

Create a large number of subnets (say 500) and this problem happens.

#5 Updated by Bash Shell over 5 years ago

Attached is a dhcpd subnets file which can be included in the main dhcpd.conf.

#6 Updated by Benjamin Papillon about 5 years ago

  • Status changed from Need more information to New

#7 Updated by Dominic Cleal almost 4 years ago

  • Related to Bug #5847: Successfully adds DHCP record, while GUI reports timeout added

#8 Updated by Daniel Gagnon over 3 years ago

I successfully used the isc provider to manage over 3000 subnets and while it was slow and took a while to load them each time, never had a timeout.
YMMV

#9 Updated by Ohad Levy over 2 years ago

#10 Updated by Dmitri Dolguikh about 2 years ago

  • Related to Bug #2687: Performance issues with large ISC dataset (DHCP smart proxy) added

#11 Updated by Dominic Cleal almost 2 years ago

  • Description updated (diff)
  • Category set to DHCP
  • Status changed from New to Feedback

The inotify-related changes from ticket #2687 have now been made in develop (nightly) for 1.13, which should drastically reduce the amount of re-parsing of config/lease files during smart proxy requests and moves the bulk of the work to the service startup. I'm moving this ticket state to feedback as hopefully the next release will resolve this issue.

#12 Updated by Michael Moll about 1 year ago

  • Status changed from Feedback to Resolved

Also available in: Atom PDF