Project

General

Profile

Actions

Bug #2478

closed

Implement Nightly/Weekly Cron (SQL)

Added by Michael Lee almost 18 years ago. Updated over 17 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
performance
Target version:
Start date:
06/28/2006
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
2478

Description

The URL describes tasks needed for nightly, or perhaps weekly for VegBank. MLee should write the SQL that accomplishes these things, then Chad could implement the cron job.

  • make automated caching of home page data + wget on all the cache data.
  • make backup of database (remove backups older than 4 months old too??)
  • plus we should probably vacuum analyze too each night
  • plut would be nice to run SQL each night: dba_current-table-stats.sql in src/sql - this gets stats on what's currently in the db in terms of record counts for each table.
  • delete anon datasets > 24 hours old
  • delete users datasets with stopDate more than one month ago
Actions #1

Updated by Michael Lee almost 18 years ago

(In reply to comment #0)

Some of the following is done, some of it can be done with SQL, some of it can't.

The URL describes tasks needed for nightly, or perhaps weekly for VegBank.
MLee should write the SQL that accomplishes these things, then Chad could
implement the cron job.

  • make automated caching of home page data + wget on all the cache data.
    DONE! make backup of database
    *remove backups older than 4 months old too??
    *SQL: plus we should probably vacuum analyze too each night
    *SQLFile: perhaps would be nice to run SQL each night: dba_current-table-stats.sql in src/sql - this gets stats on what's currently in the db in terms of record counts for each table.
    *SQL: delete anon datasets > 24 hours old
    *SQL: delete users datasets with stopDate more than one month ago
Actions #2

Updated by Michael Lee almost 18 years ago

OK, everything that can be done via SQL, including the VERY IMPORTANT VACUUM ANALYZE is now accomplished by "periodic_cron_sql.sql" in /src/sql/.

This needs to be run against the db, as well as "dba_current-table-stats.sql" in the same dir, probably weekly is fine.

There are a few outstanding tasks that should be done by the cron job, namely, but these are other bugs:
*make automated caching of home page data + wget on all the cache data. (bug #2482)
*remove backups of the database that are older than 4 months, except a few (bug #2395)

Actions #3

Updated by Michael Lee almost 18 years ago

I've come up with the SQL, but that's all I can do with this. Chad, can that be implemented with a Cron on a nightly or weekly basis?

Actions #4

Updated by Michael Lee over 17 years ago

caching of homepage data is CRITICAL that it be done somehow without ant.

Perhaps we could set a cron-job to run ant to get the data?????

Actions #5

Updated by Chad Berkley over 17 years ago

this is now running with a cron job.

Actions #6

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 2478

Actions

Also available in: Atom PDF