Closed Bug 991841 Opened 12 years ago Closed 11 years ago

[tracking] dev/stage: reduce database size for dev/stage instances

Categories

(Cloud Services :: Operations: Marketplace, task)

x86_64
Windows 7
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: oremj, Unassigned)

References

Details

(Whiteboard: [repoman])

We need to figure out how to reduce the size of our dev/stage databases, so we can host more instances and bring them up faster.
marketplace dbs are about to shrink like crazy when we remove the AMO stuff from them
Can we do anything to reduce the size of amo database? At first look I think we can prune *_counts tables on dev and stage.
Blocks: 987661
yeah, I think there is precedent for that. Can we reduce dev and not stage? If you want to delete anything older than Jan 1 2014 in those tables on -dev, I'd say go for it. CCing krupa so she knows.
(In reply to Wil Clouser [:clouserw] from comment #1) > marketplace dbs are about to shrink like crazy when we remove the AMO stuff > from them Are there any bugs open for removing data from the marketplace database?
Flags: needinfo?(clouserw)
Whiteboard: [repoman]
Yessir. Bug 999123 - [AMO] Clean up the FS after guillotine Bug 999125 - [Mkt] Clean up the FS after guillotine Bug 999117 - [AMO] Clean up the database after guillotine Bug 999119 - [Mkt] Clean up the database after guillotine
Flags: needinfo?(clouserw)
Depends on: 999123, 999125, 999117, 999119
I've truncated update_counts, download_counts and theme_user_counts in dev/stage.
No longer blocks: 987661
Wil, can we add a migration, so these are truncated everywhere?
Flags: needinfo?(clouserw)
fwiw I just committed this which drops those tables (plus a bunch of others) b/c the code that uses them is now gone: https://github.com/mozilla/zamboni/commit/a16cb6c3
Flags: needinfo?(clouserw)
Summary: Dev/Stage: reduce database size for dev/stage instances → [tracker] dev/stage: reduce database size for dev/stage instances
Summary: [tracker] dev/stage: reduce database size for dev/stage instances → [tracking] dev/stage: reduce database size for dev/stage instances
Component: Server Operations: AMO Operations → Operations: Marketplace
Product: mozilla.org → Mozilla Services
Version: other → unspecified
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.