Node listing page becomes unusable with increased number of nodes

Bug #1064672 reported by Francis J. Lacoste
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Martin Packman
maas (Ubuntu)
Fix Released
High
Andres Rodriguez
Precise
Fix Released
Undecided
Unassigned

Bug Description

The nodes listing page displays all nodes enlisted in MAAS. As the number of nodes increase, that page becomes slower and slower to render and build.

We should add some pagination to make this at least minimally usable for large scale MAAS deployment.

== TEST CASE ==
This fix has been tested on both canonistack and in the lenovo lab.
1. Add various nodes to MAAS
2. See node listing pages

Tested in the lenovo lab. $ while true; do maas-cli maas nodes new architecture="i386" mac_addresses=`printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))`; done;
Hit ctrl+c after the command adds more than 50 nodes. See the the pagination.

Related branches

Changed in maas:
assignee: nobody → Martin Packman (gz)
Revision history for this message
John A Meinel (jameinel) wrote :

Note that I just proposed a patch (nodes_perf) that changes the code so it doesn't do N lookup queries for N nodes.

I've tested with 10,000 nodes on the page, and while it was slow to load (5s) it still completed, vs failing with an OOPS after a couple of minutes without that change.

I agree that pagination is a good final place to be, but at least we can load pages with ~1000 nodes in a reasonable amount of time.

Martin Packman (gz)
Changed in maas:
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
tags: added: sru-12.10
Changed in maas:
status: Fix Committed → Fix Released
Changed in maas (Ubuntu):
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Andres Rodriguez (andreserl)
importance: Critical → High
description: updated
Revision history for this message
Dave Walker (davewalker) wrote : Please test proposed package

Hello Francis, or anyone else affected,

Accepted into quantal-proposed. The package will build now and be available in a few hours in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package maas - 0.1+bzr1269+dfsg-0ubuntu1

---------------
maas (0.1+bzr1269+dfsg-0ubuntu1) quantal-proposed; urgency=low

  * New upstream bugfix release
    - Fixes commissioning failing to set memory attribute. (LP: #1064638)
    - Fixes node listing by adding pagination (LP: #1064672)
    - Changes default bind rndc key which breaks initscripts (LP: #1066938)
    - Fixes invalid DNS config once node is enlisted (LP: #1066958)
    - Reference documentation link to correct URL (LP: #1067261)

  [ Andres Rodriguez ]
  * debian/rules: Change upstream branch.

  [ Gavin Panella ]
  * debian/maas-dns.postinst: Remove MAAS-related include lines from named's
    config before adding a new one (LP: #1066929)

  [ Raphael Badin ]
  * debian/extras/maas-region-celeryd: Remove whitespace that affects DNS
    rabbitmq queue. (LP: #1067929)
 -- Andres Rodriguez <email address hidden> Tue, 16 Oct 2012 10:31:37 -0400

Changed in maas (Ubuntu):
status: In Progress → Fix Released
description: updated
tags: added: verification-done
removed: verification-needed
Revision history for this message
Dave Walker (davewalker) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Dave Walker (davewalker)
Changed in maas (Ubuntu Precise):
status: New → Fix Released
no longer affects: maas/1.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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