[2.x] MAAS should avoid updating DNS if nothing changed

Bug #1711700 reported by Mark Shuttleworth
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Blake Rouse
2.2
Fix Released
High
Blake Rouse

Bug Description

I have a small MAAS and am not adding or removing servers or even connecting devices. So far today, MAAS has reloaded the bind configuration 3,200 times in 10 hours. Why is MAAS updating the DNS files 320 times an hour in a small, stable DC? I would expect the updates to DNS to correlate to the rate of change in the DC, and be comfortable scaling to 100,000 nodes in a MAAS region with 20,000 devices alongside them.

Tags: dns

Related branches

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Mark,

How many devices do you have in MAAS that DHCP from the dynamic range? The reason I believe this happens is because every time a device requests/renews its lease, MAAS will update DNS. (Note that Blake's fix for https://bugs.launchpad.net/maas/+bug/1710278 should help reduce the number of DNS updates, but not necessarily change the behavior you are experiencing).

As you know, the default lease time for the dynamic range is very short (600 seconds), since addresses within that range can be quickly reused by other commissioning machines.

However, since your environment is not such that requires a short lease time, I would recommend you add a 'DHCP snippet' for the 'subnet' in questions that changes the 'default-lease-time'/'max-lease-time' to something greater.

Changed in maas:
status: New → Incomplete
Changed in maas:
milestone: none → 2.3.0
Changed in maas:
importance: Undecided → High
status: Incomplete → Triaged
summary: - MAAS is updating DNS very often in a stable system
+ [2.x] MAAS is updating DNS very often in a stable system
tags: added: dns
Changed in maas:
assignee: nobody → Blake Rouse (blake-rouse)
Revision history for this message
Mike Pontillo (mpontillo) wrote : Re: [2.x] MAAS is updating DNS very often in a stable system

Note: I tested by deploying a single system with its IP assignment set to DHCP, and saw a spurious DNS update every ~5 minutes when the lease commits.

Either the trigger or the code processing its events should ignore DNS updates that are not material.

Changed in maas:
status: Triaged → In Progress
summary: - [2.x] MAAS is updating DNS very often in a stable system
+ [2.x] MAAS should avoid updating DNS if nothing changed
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: 2.3.0 → 2.3.0alpha3
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.