mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #23989
[Bug 1417816] Re: Export queue to deal with big vs small exports differently
Just to be clear, what matters is how much server resources it will take
to generate an export. The whole reason we have the queue, is because if
30 people initiate exports of their whole portfolio at the same time, it
can use up enough server resources to slow down the site for everybody.
We're just using the filesize of the export, to estimate how much server
resources it will take to generate the export. It might behoove us,
though, to take a look and see where all the resources used during
export, are going. Is it the effort of copying all the files, that makes
it take a while? Or is it the complexity of XML-encoding a lot of pages,
even if they don't contain any files?
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1417816
Title:
Export queue to deal with big vs small exports differently
Status in Mahara ePortfolio:
New
Status in Mahara 1.10 series:
New
Bug description:
We should only export big archiving when server is not busy but we
should be able to do small exports at any time.
So we need to work out before an export begins approximately how big
it is going to be and record that in the export_queue table.
Currently in htdocs/export/lib.php (line 625) there is the following:
// Get an estimate of how big the unzipped export file would be
// so we can check that we have enough disk space for it
$space = $exporter->is_diskspace_available();
So we can take the value of $space and make a decision on it and bail
out if $space is big and server is busy. Something like:
if ($space > TOO_BIG && server_busy()) {
log_info('too busy');
return true;
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1417816/+subscriptions
References