Large dhcp leases file leads to tftp timeouts
Bug #1366212 reported by
David Britton
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Gavin Panella |
Bug Description
I run a maas cluster that does a lot of work. Eventually the leases file got to about 3M. At this point I installed 1.7 for testing purposes, and noticed almost every boot would timeout in tftp. Finally I discovered that truncating the leases file fixed the issue.
I have more debugging if you need it, but I suspect you probably know about this issue already and am just filing this defect for tracking.
Related branches
lp:~allenap/maas/pipefork
- Julian Edwards (community): Approve
- Graham Binns (community): Approve
-
Diff: 251 lines (+204/-1)2 files modifiedsrc/provisioningserver/utils/shell.py (+148/-1)
src/provisioningserver/utils/tests/test_shell.py (+56/-0)
lp:~allenap/maas/pipefork-dhcp-lease-parsing
- Gavin Panella (community): Approve
- Graham Binns: Pending requested
-
Diff: 38 lines (+13/-1)1 file modifiedsrc/provisioningserver/dhcp/leases.py (+13/-1)
lp:~allenap/maas/objectfork
- Raphaël Badin (community): Approve
-
Diff: 98 lines (+76/-0)2 files modifiedsrc/provisioningserver/utils/shell.py (+38/-0)
src/provisioningserver/utils/tests/test_shell.py (+38/-0)
lp:~allenap/maas/objectfork-dhcp-lease-parsing
- Raphaël Badin (community): Approve
-
Diff: 39 lines (+4/-7)1 file modifiedsrc/provisioningserver/dhcp/leases.py (+4/-7)
tags: | added: cloud-installer |
Changed in maas: | |
assignee: | nobody → Gavin Panella (allenap) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think we can blame the GIL. The leases parser is running for so long in its own thread that it's blocking I/O in the reactor thread. We need a way to defer leases parsing to a separate process I think.