[2.x] MAAS should avoid updating DNS if nothing changed
Bug #1711700 reported by
Mark Shuttleworth
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.
Related branches
~blake-rouse/maas:improve-dns-triggers-2.2
- Blake Rouse (community): Approve
-
Diff: 2170 lines (+1288/-219)5 files modifiedsrc/maasserver/region_controller.py (+49/-8)
src/maasserver/tests/test_region_controller.py (+95/-12)
src/maasserver/triggers/system.py (+628/-132)
src/maasserver/triggers/testing.py (+11/-0)
src/maasserver/triggers/tests/test_system_listener.py (+505/-67)
~blake-rouse/maas:improved-dns-triggers
Merged
into
maas:master
- Blake Rouse (community): Approve
- Mike Pontillo (community): Approve
-
Diff: 2170 lines (+1288/-219)5 files modifiedsrc/maasserver/region_controller.py (+49/-8)
src/maasserver/tests/test_region_controller.py (+95/-12)
src/maasserver/triggers/system.py (+628/-132)
src/maasserver/triggers/testing.py (+11/-0)
src/maasserver/triggers/tests/test_system_listener.py (+505/-67)
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) |
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.
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.