Bug 1041649 - [RFE][cinder]: Cinder DB Archiving
Summary: [RFE][cinder]: Cinder DB Archiving
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: RFEs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 8.0 (Liberty)
Assignee: RHOS Maint
QA Contact:
URL: https://blueprints.launchpad.net/cind...
Whiteboard: upstream_milestone_none upstream_stat...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 18:29 UTC by RHOS Integration
Modified: 2016-02-08 17:51 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-19 17:25:57 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description RHOS Integration 2013-12-12 18:29:22 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/cinder/+spec/db-archiving.

Description:

In Nova (Grizzly) we added new feature DB Archiving. 

The problem: 
We actually don't delete rows from db, we mark it only as deleted (we have special column).
So the DB is growing and growing, so this causes problem with performance.

The solution:
Create shadow tables and copy "deleted" rows from main to shadow table. 

Steps to implement:
1) sync utils for work with shadow table (create, check methods)
2) add db migration, that will create all shadow tables
3) write tests for shadowing (for example checking that all shadow tables are up-to-date)
4) add utils to work with shadowing (periodic task, manager method)

 

Specification URL (additional information):

None


Note You need to log in before you can comment on or make changes to this bug.